mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Merge pull request #807 from devnexen/config_settings_haiku
saving data into Haiku system user config.
This commit is contained in:
commit
8fa5ea3599
2 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -50,7 +50,11 @@
|
|||
#ifdef _WIN32
|
||||
#define CFGDIR "YamagiQ2"
|
||||
#else
|
||||
#define CFGDIR ".yq2"
|
||||
#ifndef __HAIKU__
|
||||
#define CFGDIR ".yq2"
|
||||
#else
|
||||
#define CFGDIR "yq2"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* ================================================================== */
|
||||
|
|
Loading…
Reference in a new issue