mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 08:40:06 +02:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
From cb39e660b74da8cc799da8512b24dff0146bd1eb Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 18 Jun 2017 10:23:41 +0200
|
|
Subject: [PATCH] Config file location
|
|
|
|
---
|
|
src/gui/sdlmain.cpp | 16 +++++++++-------
|
|
src/misc/cross.cpp | 3 +++
|
|
2 files changed, 12 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp
|
|
index 6bbc24c..59fd732 100644
|
|
--- a/src/gui/sdlmain.cpp
|
|
+++ b/src/gui/sdlmain.cpp
|
|
@@ -117,6 +117,8 @@ struct private_hwdata {
|
|
#define DEFAULT_CONFIG_FILE "/dosbox.conf"
|
|
#elif defined(MACOSX)
|
|
#define DEFAULT_CONFIG_FILE "/Library/Preferences/DOSBox Preferences"
|
|
+#elif defined(__HAIKU__)
|
|
+#define DEFAULT_CONFIG_FILE "~/config/settings/dosbox/dosboxrc"
|
|
#else /*linux freebsd*/
|
|
#define DEFAULT_CONFIG_FILE "/.dosboxrc"
|
|
#endif
|
|
diff --git a/src/misc/cross.cpp b/src/misc/cross.cpp
|
|
index bc4557e..d5f0e65 100644
|
|
--- a/src/misc/cross.cpp
|
|
+++ b/src/misc/cross.cpp
|
|
@@ -62,6 +62,9 @@ void Cross::GetPlatformConfigDir(std::string& in) {
|
|
#elif defined(MACOSX)
|
|
in = "~/Library/Preferences";
|
|
ResolveHomedir(in);
|
|
+#elif defined(__HAIKU__)
|
|
+ in = "~/config/settings/dosbox/";
|
|
+ ResolveHomedir(in);
|
|
#else
|
|
in = "~/.dosbox";
|
|
ResolveHomedir(in);
|
|
--
|
|
2.12.2
|
|
|