Lagrange [work/v1.13]

Terminal: Separately saved state

=> 9dde79687cf91080e29f45a33766a433d61b4c5c

diff --git a/src/app.c b/src/app.c
index c663e02b..c2d778bb 100644
--- a/src/app.c
+++ b/src/app.c
@@ -115,10 +115,15 @@ static const char *defaultDataDir_App_ = "~/.config/lagrange";
 static const char *defaultDataDir_App_ = "~/config/settings/lagrange";
 #endif
 #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 */
+#else
+#   define STATE_NAME "state"
+#endif
 static const char *prefsFileName_App_      = "prefs.cfg";
-static const char *oldStateFileName_App_   = "state.binary";
-static const char *stateFileName_App_      = "state.lgr";
-static const char *tempStateFileName_App_  = "state.lgr.tmp";
+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";
 static const char *defaultDownloadDir_App_ = "~/Downloads";
 
 static const int idleThreshold_App_ = 1000; /* ms */
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.13/cdiff/9dde79687cf91080e29f45a33766a433d61b4c5c
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
73.477977 milliseconds
Gemini-to-HTML Time
0.192215 milliseconds

This content has been proxied by September (3851b).