Skip to content

Conversation

@NotHyper-474
Copy link
Contributor

@NotHyper-474 NotHyper-474 commented Nov 3, 2025

Linked Issues

None, though it came from this report of a mod failing to create a file on Linux on the Discord server

Description

There's some inconsistency with how fullPath which is used by sanitizePath works on Linux and Windows, on the former it will return null if the path doesn't exist and on the latter it'll work regardless, ironic considering that the documentation for the function in HXCPP says it shouldn't be used like that in these cases.
The fact it returns null means that on Linux using FileUtil.writeStringToPath would fail on most cases.

Screenshots/Videos

Kooha-2025-11-02-23-06-44.webm

@github-actions github-actions bot added status: pending triage Awaiting review. size: medium A medium pull request with 100 or fewer changes. pr: haxe PR modifies game code. labels Nov 3, 2025
@AbnormalPoof AbnormalPoof added the type: minor bug Involves a minor bug or issue. label Nov 3, 2025
@NotHyper-474 NotHyper-474 marked this pull request as ready for review November 3, 2025 02:12
@Hundrec Hundrec added the platform: linux Specific to Linux Desktop platforms. label Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: linux Specific to Linux Desktop platforms. pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. status: pending triage Awaiting review. type: minor bug Involves a minor bug or issue.

Development

Successfully merging this pull request may close these issues.

3 participants