mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
main dir
SDL_BaseDir was returning the directory that contains the app, now it returns the resources directory
This commit is contained in:
parent
f10520e751
commit
9bc06f0887
3 changed files with 7 additions and 2 deletions
|
|
@ -646,7 +646,7 @@ StringTableEntry Platform::getExecutablePath()
|
||||||
return cwd;
|
return cwd;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString* string = [[NSBundle mainBundle] pathForResource:@"main" ofType:@"cs"];
|
NSString* string = [[NSBundle mainBundle] pathForResource:@"main" ofType:@"tscript"];
|
||||||
if(!string)
|
if(!string)
|
||||||
string = [[NSBundle mainBundle] bundlePath];
|
string = [[NSBundle mainBundle] bundlePath];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,6 @@
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.0</string>
|
<string>1.0</string>
|
||||||
<key>SDL_FILESYSTEM_BASE_DIR_TYPE</key>
|
<key>SDL_FILESYSTEM_BASE_DIR_TYPE</key>
|
||||||
<string>parent</string>
|
<string>resource</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
||||||
|
|
@ -157,3 +157,8 @@ endif()
|
||||||
set(CMAKE_MACOSX_RPATH 1)
|
set(CMAKE_MACOSX_RPATH 1)
|
||||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||||
|
|
||||||
|
# Debug configuration for quicker debug builds
|
||||||
|
set(CMAKE_XCODE_ATTRIBUTE_LINKER_DISPLAYS_MANGLED_NAMES[variant=Debug] YES)
|
||||||
|
set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] YES)
|
||||||
|
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_TESTABILITY[variant=Debug] YES)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue