Add a UNIX_PORTABLE build option, turning it off makes a build of melonDS suitable for systemwide installation.

This commit is contained in:
Nadia Holmquist Pedersen
2019-12-04 22:46:33 +01:00
parent 3f7bc1a6c1
commit 7af658f089
6 changed files with 117 additions and 8 deletions

View File

@ -815,7 +815,7 @@ bool ReadROMParams(u32 gamecode, u32* params)
// [gamecode] [ROM size] [save type] [reserved]
// list must be sorted by gamecode
FILE* f = Platform::OpenLocalFile("romlist.bin", "rb");
FILE* f = Platform::OpenDataFile("romlist.bin");
if (!f) return false;
fseek(f, 0, SEEK_END);