We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fd245f commit e4ba442Copy full SHA for e4ba442
src/files/config.cpp
@@ -67,7 +67,11 @@ void SaveConfig(void)
67
sprintf(extension, "PROTCFGF");
68
Status_Box("Saving 'ptk.cfg'...");
69
70
+#ifdef __linux__
71
+ sprintf(FileName, "%s/.ptk.cfg", getenv("HOME"));
72
+#else
73
sprintf(FileName, "%s"SLASH"ptk.cfg", ExePath);
74
+#endif
75
76
memset(KeyboardName, 0, sizeof(KeyboardName));
77
sprintf(KeyboardName, "%s", Keyboard_Name);
@@ -170,7 +174,11 @@ void LoadConfig(void)
170
174
char Win_Coords[64];
171
175
SDL_Surface *Desktop = NULL;
172
176
177
178
179
173
180
181
182
183
184
0 commit comments