Skip to content

Set error code when XCreateFileA fails on non-Windows#8

Merged
ga2mer merged 1 commit into
sonicnext-dev:mainfrom
squidbus:create-error
Jul 19, 2025
Merged

Set error code when XCreateFileA fails on non-Windows#8
ga2mer merged 1 commit into
sonicnext-dev:mainfrom
squidbus:create-error

Conversation

@squidbus

Copy link
Copy Markdown
Collaborator

Add logic to call SetLastError on non-Windows, translating from the errno. Some known possible error codes here are translated from their POSIX equivalent, and ERROR_PATH_NOT_FOUND is used as a fallback for any others.

Fixes crash in some cutscenes when game tries to open an xma file that does not exist.

@ga2mer
ga2mer merged commit 04defda into sonicnext-dev:main Jul 19, 2025
2 of 12 checks passed
@squidbus
squidbus deleted the create-error branch July 21, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants