From 505e71e9f6f1bc303d9fff72986ff38ee3f279b6 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 27 Nov 2017 20:46:32 +0300 Subject: [PATCH] tic80 0.5 prerelease crashes with ctrl+s or save #417 --- src/console.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/console.c b/src/console.c index 442874e..88bb59d 100644 --- a/src/console.c +++ b/src/console.c @@ -486,7 +486,7 @@ static void onConsoleLoadDemoCommandConfirmed(Console* console, const char* para const char* name = getCartName(param); - setCartName(console->romName, name); + setCartName(console, name); loadRom(console->tic, data, size, true); @@ -501,7 +501,7 @@ static void onConsoleLoadDemoCommandConfirmed(Console* console, const char* para static void onCartLoaded(Console* console, const char* name) { - setCartName(console->romName, name); + setCartName(console, name); studioRomLoaded(); @@ -1895,7 +1895,7 @@ static CartSaveResult saveCartName(Console* console, const char* name) if(size && fsSaveFile(console->fs, name, buffer, size, true)) { - setCartName(console->romName, name); + setCartName(console, name); success = true; studioRomSaved(); } @@ -2633,7 +2633,7 @@ static void cmdLoadCart(Console* console, const char* name) if(hasProjectExt(name)) { loadProject(console, name, data, size, &embed.file); - setCartName(console->romName, fsFilename(name)); + setCartName(console, fsFilename(name)); embed.yes = true; embed.fast = true; } @@ -2643,7 +2643,7 @@ static void cmdLoadCart(Console* console, const char* name) if(hasExt(name, CART_EXT)) { loadCart(console->tic, &embed.file, data, size, true); - setCartName(console->romName, fsFilename(name)); + setCartName(console, fsFilename(name)); embed.yes = true; }