mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-21 14:29:55 +00:00
-make the registry editing code windows only, because it's using windows api
This commit is contained in:
parent
6e197943c0
commit
c689eba8f2
1 changed files with 3 additions and 0 deletions
|
|
@ -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[])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue