summaryrefslogtreecommitdiff
path: root/gui/Config.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-16 00:36:51 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-16 00:36:51 +0100
commit788fb20656c8450a3f2da8b3f8b1905242103193 (patch)
treeae6e1a2c9e7da0fe72b070d2db580adf26e410af /gui/Config.c
parent8349bf45e9b19d83506e1bb52f2053a7976922e5 (diff)
downloadpcsxr-sio.tar.gz
WIP TCP/SIOsio
Diffstat (limited to 'gui/Config.c')
-rw-r--r--gui/Config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/Config.c b/gui/Config.c
index 16c29c9a..0c183086 100644
--- a/gui/Config.c
+++ b/gui/Config.c
@@ -24,6 +24,9 @@
#include "Linux.h"
+char cfgfile[MAXPATHLEN];
+char cfgfile_basename[MAXPATHLEN];
+
/* TODO escaping/unescaping would be nice, as would maxchars */
static void GetValue(char *src, char *name, char *outvar) {
char *tmp;
@@ -32,7 +35,7 @@ static void GetValue(char *src, char *name, char *outvar) {
tmp = strstr(src, name);
if (tmp == NULL) return;
- tmp += strlen(name);
+ tmp += strlen(name);
while ((*tmp == ' ') || (*tmp == '=')) tmp++;
while (*tmp != '\n' && *tmp != 0)