Use RPATH for lib folder, use PHYSFS_getBaseDir on all platforms.

The next official VVVVVV build removes 32-bit Linux (like all my other games),
and I need to get rid of the shell script on macOS at some point, so this
basically brings it up to what my other games are doing. Plus, this probably
fixes a bug where someone tries to run their executable away from the root...
This commit is contained in:
Ethan Lee
2020-01-11 11:23:49 -05:00
parent 1312c10d11
commit a977f49725
2 changed files with 27 additions and 24 deletions

View File

@@ -70,12 +70,8 @@ int FILESYSTEM_init(char *argvZero)
}
/* Mount the stock content last */
#ifdef _WIN32
strcpy(output, PHYSFS_getBaseDir());
strcat(output, "data.zip");
#else
strcpy(output, "data.zip");
#endif
if (!PHYSFS_mount(output, NULL, 1))
{
puts("Error: data.zip missing!");