aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9a5effa..73c7617 100644
--- a/main.c
+++ b/main.c
@@ -541,7 +541,9 @@ int main(int argc, char **argv) {
}
int quit(int code) {
- sram_write();
+ if (current_core.initialized)
+ sram_write();
+
menu_finish();
core_unload();
plat_finish();