diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-16 00:36:51 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-16 00:36:51 +0100 |
| commit | 788fb20656c8450a3f2da8b3f8b1905242103193 (patch) | |
| tree | ae6e1a2c9e7da0fe72b070d2db580adf26e410af /gui | |
| parent | 8349bf45e9b19d83506e1bb52f2053a7976922e5 (diff) | |
WIP TCP/SIOsio
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/Config.c | 5 | ||||
| -rw-r--r-- | gui/Linux.h | 6 |
2 files changed, 8 insertions, 3 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) diff --git a/gui/Linux.h b/gui/Linux.h index 2a939050..51310ee1 100644 --- a/gui/Linux.h +++ b/gui/Linux.h @@ -44,8 +44,10 @@ extern gboolean UseGui; extern int StatesC; -char cfgfile[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */ -char cfgfile_basename[MAXPATHLEN]; /* ADB Comment this out - make a local var, or at least use gchar funcs */ +/* ADB Comment this out - make a local var, or at least use gchar funcs */ +extern char cfgfile[MAXPATHLEN]; +/* ADB Comment this out - make a local var, or at least use gchar funcs */ +extern char cfgfile_basename[MAXPATHLEN]; int LoadConfig(); void SaveConfig(); |
