-make the registry editing code windows only, because it's using windows api

This commit is contained in:
GIR GIR 2021-11-13 23:10:35 -08:00
parent 6e197943c0
commit c689eba8f2

View file

@ -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 // mainly doing this so journal app knows where to load images from
static void setGamePathInRegistry() { static void setGamePathInRegistry() {
#if defined WIN32
// this logic is currently windows specific // this logic is currently windows specific
char* dataDir = SDL_GetBasePath(); char* dataDir = SDL_GetBasePath();
if (dataDir) if (dataDir)
@ -229,6 +230,8 @@ static void setGamePathInRegistry() {
} }
SDL_free(dataDir); SDL_free(dataDir);
} }
#endif
//TODO handle this for Linux/Mac
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])