From c689eba8f24ddba5a7ae394b154fa33ee77ffdf0 Mon Sep 17 00:00:00 2001 From: GIR GIR Date: Sat, 13 Nov 2021 23:10:35 -0800 Subject: [PATCH] -make the registry editing code windows only, because it's using windows api --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 252acd5..cf794d3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -195,6 +195,7 @@ static void setupWindowIcon(const Config &conf, SDL_Window *win) // mainly doing this so journal app knows where to load images from static void setGamePathInRegistry() { +#if defined WIN32 // this logic is currently windows specific char* dataDir = SDL_GetBasePath(); if (dataDir) @@ -229,6 +230,8 @@ static void setGamePathInRegistry() { } SDL_free(dataDir); } +#endif + //TODO handle this for Linux/Mac } int main(int argc, char *argv[])