Skip to content

Fix macOS export crash: resolve data paths relative to executable#869

Merged
TomWerner merged 1 commit intoC7-Game:Developmentfrom
fragmede:macos-code-signing-fixes
Feb 7, 2026
Merged

Fix macOS export crash: resolve data paths relative to executable#869
TomWerner merged 1 commit intoC7-Game:Developmentfrom
fragmede:macos-code-signing-fixes

Conversation

@fragmede
Copy link
Contributor

@fragmede fragmede commented Feb 7, 2026

GamePaths used ./ relative paths which resolve against the CWD. When launched from Finder or open, the CWD is /, so Lua/, Text/, and Assets/ directories were not found, causing crashes.

Now resolves paths relative to the executable location, navigating out of the .app/Contents/MacOS/ bundle on macOS.

GamePaths used `./` relative paths which resolve against the CWD. When
launched from Finder or `open`, the CWD is `/`, so Lua/, Text/, and
Assets/ directories were not found, causing crashes.

Now resolves paths relative to the executable location, navigating out
of the .app/Contents/MacOS/ bundle on macOS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

@TomWerner TomWerner left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

As you may have seen, none of the regular devs have a Mac to test this on, so I can't verify this fixes the issue, but it still works on Linux when built from source and from the release.

@TomWerner TomWerner merged commit 0850c1e into C7-Game:Development Feb 7, 2026
3 checks passed
@WildWeazel WildWeazel linked an issue Feb 10, 2026 that may be closed by this pull request
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.

Even when selecting standalone mode, the screen does not advance.

2 participants