tic80 0.5 prerelease crashes with ctrl+s or save #417
This commit is contained in:
parent
627122c4b6
commit
505e71e9f6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue