saving data into Haiku system user config.

This commit is contained in:
David Carlier 2022-04-02 04:22:55 +00:00
parent 5535773521
commit 7ce0964b9b
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
/* ================================================================== */