mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
utils: Add Steam Link override to FindDataFilePath
This commit is contained in:
parent
3bf4a88ce6
commit
73d9dde2a6
1 changed files with 10 additions and 0 deletions
10
src/utils.c
10
src/utils.c
|
@ -436,6 +436,16 @@ SYMBOL_EXPORT const char* FindDataFilePath(struct Game* game, const char* filena
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef STEAMLINK
|
||||||
|
char origfn[255] = "steamlink/";
|
||||||
|
strncat(origfn, filename, 244);
|
||||||
|
|
||||||
|
result = TestDataFilePath(game, origfn);
|
||||||
|
if (result) {
|
||||||
|
return AddGarbage(game, result);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
char origfn[255] = "emscripten/";
|
char origfn[255] = "emscripten/";
|
||||||
strncat(origfn, filename, 243);
|
strncat(origfn, filename, 243);
|
||||||
|
|
Loading…
Reference in a new issue