From 3bf4a88ce61c2e9b6c77e6baf6269674cb9be409 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 21 Jul 2022 05:45:04 +0200 Subject: [PATCH] utils: Add Raspberry Pi override to FindDataFilePath --- src/utils.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/utils.c b/src/utils.c index abbf006..ce32517 100644 --- a/src/utils.c +++ b/src/utils.c @@ -426,6 +426,16 @@ SYMBOL_EXPORT const char* FindDataFilePath(struct Game* game, const char* filena } #endif +#ifdef RASPBERRYPI + char origfn[255] = "raspberrypi/"; + strncat(origfn, filename, 242); + + result = TestDataFilePath(game, origfn); + if (result) { + return AddGarbage(game, result); + } +#endif + #ifdef __EMSCRIPTEN__ char origfn[255] = "emscripten/"; strncat(origfn, filename, 243);