--- src/Starfighter.cpp.orig 2017-01-26 02:23:47.000000000 +1100 +++ src/Starfighter.cpp 2018-12-22 12:18:25.000000000 +1100 @@ -24,10 +24,6 @@ along with this program. If not, see #include -#ifdef __APPLE__ -#include "CoreFoundation/CoreFoundation.h" -#endif - #include "SDL.h" #ifndef NOSOUND @@ -59,20 +55,6 @@ int main(int argc, char **argv) if (chdir(DATADIR) == -1) printf("Warning: failed to change directory to \"%s\"\n", DATADIR); - // This makes relative paths work in C++ in Xcode by changing directory to the Resources folder inside the .app bundle -#ifdef __APPLE__ - CFBundleRef mainBundle = CFBundleGetMainBundle(); - CFURLRef resourcesURL = CFBundleCopyResourcesDirectoryURL(mainBundle); - char path[PATH_MAX]; - if (!CFURLGetFileSystemRepresentation(resourcesURL, TRUE, (UInt8 *)path, PATH_MAX)) - { - // error! - } - CFRelease(resourcesURL); - - chdir(path); - printf("Current directory \"%s\"\n", path); -#endif // ----------------------------------------------------------------------------