SDL_BaseDir was returning the directory that contains the app, now it returns the resources directory
This commit is contained in:
marauder2k7 2023-10-20 22:23:38 +01:00
parent f10520e751
commit 9bc06f0887
3 changed files with 7 additions and 2 deletions

View file

@ -646,7 +646,7 @@ StringTableEntry Platform::getExecutablePath()
return cwd;
}
NSString* string = [[NSBundle mainBundle] pathForResource:@"main" ofType:@"cs"];
NSString* string = [[NSBundle mainBundle] pathForResource:@"main" ofType:@"tscript"];
if(!string)
string = [[NSBundle mainBundle] bundlePath];