Merge pull request #807 from devnexen/config_settings_haiku

saving data into Haiku system user config.
This commit is contained in:
Yamagi 2022-04-03 17:44:06 +02:00 committed by GitHub
commit 8fa5ea3599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -492,7 +492,11 @@ Sys_GetHomeDir(void)
return NULL;
}
#ifndef __HAIKU__
snprintf(gdir, sizeof(gdir), "%s/%s/", home, cfgdir);
#else
snprintf(gdir, sizeof(gdir), "%s/config/settings/%s", home, cfgdir);
#endif
Sys_Mkdir(gdir);
return gdir;

View file

@ -50,7 +50,11 @@
#ifdef _WIN32
#define CFGDIR "YamagiQ2"
#else
#define CFGDIR ".yq2"
#ifndef __HAIKU__
#define CFGDIR ".yq2"
#else
#define CFGDIR "yq2"
#endif
#endif
/* ================================================================== */