From 73d9dde2a6aaa4c38f78eea6ba143295cd62a634 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 21 Jul 2022 06:02:06 +0200 Subject: [PATCH] utils: Add Steam Link override to FindDataFilePath --- src/utils.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/utils.c b/src/utils.c index ce32517..7cf77da 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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);