Fix scenario editor launch scenario feature run from .app

Fix #729
This commit is contained in:
2025-05-17 08:38:12 -05:00
parent 0f79f6fc9f
commit 99b0c9a227
2 changed files with 12 additions and 1 deletions

View File

@@ -174,3 +174,8 @@ bool sync_prefs_mac() {
return [[NSUserDefaults standardUserDefaults] synchronize];
}
// Used in scen.main.cpp to find BoE app bundle, but uses a static function (convertValue()) in this file.
fs::path bundlePath() {
NSBundle *main = [NSBundle mainBundle];
return convertValue(main.bundlePath);
}