mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 02:56:43 +01:00
GetDataFilePath: add "maemo5" directory handling similar to what's already done for android
This commit is contained in:
parent
7cdcb7475a
commit
db096e7e97
1 changed files with 10 additions and 0 deletions
10
src/utils.c
10
src/utils.c
|
@ -382,6 +382,16 @@ SYMBOL_EXPORT char* GetDataFilePath(struct Game* game, const char* filename) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef MAEMO5
|
||||
char origfn[255] = "maemo5/";
|
||||
strncat(origfn, filename, 246);
|
||||
|
||||
result = TestDataFilePath(game, origfn);
|
||||
if (result) {
|
||||
return AddGarbage(game, result);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if (defined __EMSCRIPTEN__) || (defined ALLEGRO_ANDROID)
|
||||
char* file = AddGarbage(game, strdup(filename));
|
||||
char* sub = strstr(file, ".flac");
|
||||
|
|
Loading…
Reference in a new issue