utils: Add Raspberry Pi override to FindDataFilePath

This commit is contained in:
Sebastian Krzyszkowiak 2022-07-21 05:45:04 +02:00
parent 9560744930
commit 3bf4a88ce6
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -426,6 +426,16 @@ SYMBOL_EXPORT const char* FindDataFilePath(struct Game* game, const char* filena
}
#endif
#ifdef RASPBERRYPI
char origfn[255] = "raspberrypi/";
strncat(origfn, filename, 242);
result = TestDataFilePath(game, origfn);
if (result) {
return AddGarbage(game, result);
}
#endif
#ifdef __EMSCRIPTEN__
char origfn[255] = "emscripten/";
strncat(origfn, filename, 243);