11diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp
2- index aedb5d82f..8bfb4642b 100644
2+ index c500868b2..4417f9842 100644
33--- a/src/gui/sdlmain.cpp
44+++ b/src/gui/sdlmain.cpp
5- @@ -830 ,7 +830 ,7 @@ const char *modifier;
5+ @@ -931 ,7 +931 ,7 @@ const char *modifier;
66 #elif defined(HAIKU)
77 #define DEFAULT_CONFIG_FILE "~/config/settings/dosbox-x/dosbox-x.conf"
88 #else /*linux freebsd*/
@@ -12,33 +12,33 @@ index aedb5d82f..8bfb4642b 100644
1212
1313 #if C_SET_PRIORITY
1414diff --git a/src/misc/cross.cpp b/src/misc/cross.cpp
15- index 36e558c8c..8cadd571d 100644
15+ index 2ba476994..b4375352e 100644
1616--- a/src/misc/cross.cpp
1717+++ b/src/misc/cross.cpp
18- @@ -167 ,7 +167 ,7 @@ void Cross::GetPlatformConfigDir(std::string& in) {
19- #elif !defined(HX_DOS)
20- const char *xdg_conf_home = getenv("XDG_CONFIG_HOME") ;
21- const std::string conf_home = xdg_conf_home && xdg_conf_home[0] == '/' ? xdg_conf_home: "~/.config";
22- - in = conf_home + "/dosbox-x";
23- + in = conf_home + "/dosbox";
24- ResolveHomedir(in );
18+ @@ -194 ,7 +194 ,7 @@ std::string Cross::GetPlatformConfigDir()
19+ ? xdg_conf_home
20+ : "~/.config" ;
21+
22+ - dir = conf_home + "/dosbox-x";
23+ + dir = conf_home + "/dosbox";
24+ ResolveHomedir(dir );
2525 #endif
26- //LOG_MSG("Config dir: %s", in.c_str());
27- @@ -180 ,7 +180 ,7 @@ void Cross::GetPlatformConfigName(std::string& in) {
28- #elif defined(MACOSX )
29- #define DEFAULT_CONFIG_FILE "DOSBox-X " VERSION " Preferences "
30- #else /*linux freebsd*/
26+
27+ @@ -216 ,7 +216 ,7 @@ std::string Cross::GetPlatformConfigName()
28+ #elif defined(OS2) && defined(C_SDL2 )
29+ #define DEFAULT_CONFIG_FILE "dosbox-x-" PACKAGE_VERSION ".conf "
30+ #else /* linux, freebsd */
3131- #define DEFAULT_CONFIG_FILE "dosbox-x-" VERSION ".conf"
3232+ #define DEFAULT_CONFIG_FILE "dosboxx.conf"
3333 #endif
34- in = DEFAULT_CONFIG_FILE;
35- }
36- @@ -204 ,7 +204 ,7 @@ void Cross::CreatePlatformConfigDir(std::string& in) {
37- #elif !defined(HX_DOS)
38- const char *xdg_conf_home = getenv("XDG_CONFIG_HOME");
39- const std::string conf_home = xdg_conf_home && xdg_conf_home[0] == '/' ? xdg_conf_home: "~/.config";
40- - in = conf_home + "/dosbox-x";
41- + in = conf_home + "/dosbox";
42- ResolveHomedir(in );
43- mkdir(in .c_str(),0700);
34+
35+ name = DEFAULT_CONFIG_FILE;
36+ @@ -250 ,7 +250 ,7 @@ std::string Cross::CreatePlatformConfigDir()
37+ const char* xdg_conf_home = getenv("XDG_CONFIG_HOME");
38+ const std::string conf_home =
39+ ( xdg_conf_home && xdg_conf_home[0] == '/') ? xdg_conf_home : "~/.config";
40+ - path = conf_home + "/dosbox-x";
41+ + path = conf_home + "/dosbox";
42+ ResolveHomedir(path );
43+ mkdir(path .c_str(), 0700);
4444 #endif
0 commit comments