diff options
author | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 01:50:44 +0100 |
---|---|---|
committer | Paul Oliver <contact@pauloliver.dev> | 2024-02-29 01:50:44 +0100 |
commit | ac1312be2d4357e77244137ce0f349b1665ecb62 (patch) | |
tree | 2d6fdbb5dac761fbbe0165b1a93a8163ed308096 /tsalis/src | |
parent | 3f5fc698284c5fee0e46b1b3b15a8c74325ac1fe (diff) |
Added exit without saving command.
Diffstat (limited to 'tsalis/src')
-rw-r--r-- | tsalis/src/handler.c | 5 | ||||
-rw-r--r-- | tsalis/src/tsalis.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tsalis/src/handler.c b/tsalis/src/handler.c index ded2d9a..265df47 100644 --- a/tsalis/src/handler.c +++ b/tsalis/src/handler.c @@ -163,6 +163,11 @@ runConsole(void) switch (command[0]) { case 'q': + s_save(g_simName); + g_exit = STRUE; + break; + + case 'x': g_exit = STRUE; break; diff --git a/tsalis/src/tsalis.c b/tsalis/src/tsalis.c index 6840a02..f578e8f 100644 --- a/tsalis/src/tsalis.c +++ b/tsalis/src/tsalis.c @@ -106,7 +106,6 @@ static void quit(void) { tsp_quit(); - s_save(g_simName); s_quit(); } |