From aedfa4ec19acb16c0f47726cb064a06ad4a7a4ec Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi

Date: Wed, 13 Apr 2022 11:31:29 +0300

Subject: [PATCH 1/1] Terminal: Console-specific preferences file


src/app.c | 4 +++-

1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/app.c b/src/app.c

index c2d778bb..89c60698 100644

--- a/src/app.c

+++ b/src/app.c

@@ -117,10 +117,12 @@ static const char *defaultDataDir_App_ = "~/config/settings/lagrange";

#define EMB_BIN_EXEC "../resources.lgr" /* fallback from build/executable dir */

#if defined (iPlatformTerminal)

define STATE_NAME "cstate" /* separate for console since it's a different environment */

+# define PREFS_NAME "cprefs"

#else

define STATE_NAME "state"

+# define PREFS_NAME "prefs"

#endif

-static const char *prefsFileName_App_ = "prefs.cfg";

+static const char *prefsFileName_App_ = PREFS_NAME ".cfg";

static const char *oldStateFileName_App_ = STATE_NAME ".binary";

static const char *stateFileName_App_ = STATE_NAME ".lgr";

static const char *tempStateFileName_App_ = STATE_NAME ".lgr.tmp";

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.13/patch/aedfa4ec19acb16c0f47726cb064a06ad4a7a4ec.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
69.291088 milliseconds
Gemini-to-HTML Time
0.883994 milliseconds

This content has been proxied by September (ba2dc).