diff --git a/src/console.c b/src/console.c index 05bd661..9e872df 100644 --- a/src/console.c +++ b/src/console.c @@ -2629,18 +2629,19 @@ static void cmdLoadCart(Console* console, const char* name) if(hasProjectExt(name)) { loadProject(console, name, data, size, &embed.file); + embed.cmd = true; } else #endif { loadCart(console->tic, &embed.file, data, size, true); + embed.cmd = false; } strcpy(console->romName, fsFilename(name)); embed.yes = true; - embed.cmd = true; - + SDL_free(data); } }