mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-04 16:28:00 +01:00
utils: Add Raspberry Pi override to FindDataFilePath
This commit is contained in:
parent
9560744930
commit
3bf4a88ce6
1 changed files with 10 additions and 0 deletions
10
src/utils.c
10
src/utils.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue