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; }