distribution/packages/games/emulators/dosbox-x/patches/003-dosboxconf.patch

50 lines
1.5 KiB
Diff
Raw Normal View History

2022-02-05 14:23:32 +00:00
diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp
index ec6ba7b..f689b3c 100644
--- a/src/gui/sdlmain.cpp
+++ b/src/gui/sdlmain.cpp
@@ -947,7 +947,7 @@
#elif defined(HAIKU)
#define DEFAULT_CONFIG_FILE "~/config/settings/dosbox-x/dosbox-x.conf"
#else /*linux freebsd*/
-# define DEFAULT_CONFIG_FILE "/.dosboxrc"
+# define DEFAULT_CONFIG_FILE "/dosbox-x.conf"
#endif
#if C_SET_PRIORITY
diff --git a/src/misc/cross.cpp b/src/misc/cross.cpp
index 05a5893..74daf41 100644
--- a/src/misc/cross.cpp
+++ b/src/misc/cross.cpp
@@ -89,7 +89,7 @@
#elif defined(RISCOS)
in = "/<Choices$Write>/DosBox-X";
#elif !defined(HX_DOS)
- in = "~/.config/dosbox-x";
+ in = "/storage/.config/distribution/configs/dosbox-x";
ResolveHomedir(in);
#endif
in += CROSS_FILESPLIT;
@@ -97,11 +97,11 @@
void Cross::GetPlatformConfigName(std::string& in) {
#ifdef WIN32
-#define DEFAULT_CONFIG_FILE "dosbox-x-" VERSION ".conf"
+#define DEFAULT_CONFIG_FILE "dosbox-x.conf"
#elif defined(MACOSX)
#define DEFAULT_CONFIG_FILE "DOSBox-X " VERSION " Preferences"
#else /*linux freebsd*/
-#define DEFAULT_CONFIG_FILE "dosbox-x-" VERSION ".conf"
+#define DEFAULT_CONFIG_FILE "dosbox-x.conf"
#endif
in = DEFAULT_CONFIG_FILE;
}
@@ -123,7 +123,7 @@
in = "/<Choices$Write>/DosBox-X";
mkdir(in.c_str(),0700);
#elif !defined(HX_DOS)
- in = "~/.config/dosbox-x";
+ in = "/storage/.config/distribution/configs/dosbox-x";
ResolveHomedir(in);
mkdir(in.c_str(),0700);
#endif