mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
saving data into Haiku system user config.
This commit is contained in:
parent
5535773521
commit
7ce0964b9b
2 changed files with 9 additions and 1 deletions
|
@ -492,7 +492,11 @@ Sys_GetHomeDir(void)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __HAIKU__
|
||||||
snprintf(gdir, sizeof(gdir), "%s/%s/", home, cfgdir);
|
snprintf(gdir, sizeof(gdir), "%s/%s/", home, cfgdir);
|
||||||
|
#else
|
||||||
|
snprintf(gdir, sizeof(gdir), "%s/config/settings/%s", home, cfgdir);
|
||||||
|
#endif
|
||||||
Sys_Mkdir(gdir);
|
Sys_Mkdir(gdir);
|
||||||
|
|
||||||
return gdir;
|
return gdir;
|
||||||
|
|
|
@ -50,7 +50,11 @@
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define CFGDIR "YamagiQ2"
|
#define CFGDIR "YamagiQ2"
|
||||||
#else
|
#else
|
||||||
#define CFGDIR ".yq2"
|
#ifndef __HAIKU__
|
||||||
|
#define CFGDIR ".yq2"
|
||||||
|
#else
|
||||||
|
#define CFGDIR "yq2"
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ================================================================== */
|
/* ================================================================== */
|
||||||
|
|
Loading…
Reference in a new issue