utils: Add Steam Link override to FindDataFilePath

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

View file

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