GetDataFilePath: add "maemo5" directory handling similar to what's already done for android

This commit is contained in:
Sebastian Krzyszkowiak 2018-12-18 13:19:16 +01:00
parent 7cdcb7475a
commit db096e7e97
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -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");