blob: 0c5f2060628ace4aa7405a9fe8272b3ef27138d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
diff -Naur xu4-1.2.1/src/settings.cpp xu4-1.2.1.patched/src/settings.cpp
--- xu4-1.2.1/src/settings.cpp 2022-12-06 13:21:00.000000000 -0500
+++ xu4-1.2.1.patched/src/settings.cpp 2023-01-13 03:37:36.452626171 -0500
@@ -55,15 +55,6 @@
* Initialize the settings.
*/
void Settings::init(const char* profileName) {
- if (profileName && profileName[0]) {
- userPath = "./profiles/";
- userPath += profileName;
- userPath += "/";
-
- profile = profileName;
- if (profile.length() > 20)
- errorFatal("Profile name must be no more than 20 characters.");
- } else {
profile.clear();
#if defined(ANDROID)
@@ -123,6 +114,14 @@
userPath = "./";
#endif
+ if (profileName && profileName[0]) {
+ userPath += "profiles/";
+ userPath += profileName;
+ userPath += "/";
+
+ profile = profileName;
+ if (profile.length() > 20)
+ errorFatal("Profile name must be no more than 20 characters.");
}
#ifndef ANDROID
|