Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the error 'folder <folder> doesn't exist' under Windows XP (win32 build) #2558

Merged

Conversation

aliceisjustplaying
Copy link
Collaborator

There is a bug in the toolchain we use for the Windows XP builds that makes stat not work and give false errors. The recommended solution is to use GetFileAttributesEx instead. The cleanest way I see for it is to create a shim that maps to stat and conditionally #include it.

Tested on a Windows XP VM, freshly compiled on Windows 11 with the v141_xp toolchain and works.

Fixes #1844, #2357, #1924.

@aliceisjustplaying aliceisjustplaying self-assigned this May 2, 2024
@aliceisjustplaying aliceisjustplaying changed the title Fix the error 'folder <folder> doesn't exist' under Windows XP Fix the error 'folder <folder> doesn't exist' under Windows XP (win32 build) May 2, 2024
Copy link
Owner

@nesbox nesbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't reproduce this bug, were you able to reproduce it?

@nesbox nesbox merged commit 4911144 into nesbox:main May 5, 2024
33 checks passed
@aliceisjustplaying
Copy link
Collaborator Author

@nesbox yes repro'd on XP

@aliceisjustplaying aliceisjustplaying deleted the fix-windows-xp-doesnt-exist-error branch May 5, 2024 22:31
aliceisjustplaying added a commit to aliceisjustplaying/TIC-80 that referenced this pull request May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Locally compiled version won't start, claims a folder doesn't exist even though it does
2 participants