temporary removed embed cart section and disabled native export

This commit is contained in:
BADIM-PC\Vadim 2017-12-13 20:25:40 +03:00
parent b7a148a85e
commit 16f9531484
1 changed files with 3 additions and 3 deletions

View File

@ -2955,7 +2955,7 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config,
#if defined(__EMSCRIPTEN__)
if(!embed.yes)
if(!console->embed.yes)
{
void* cartPtr = (void*)EM_ASM_INT_V
(
@ -2972,13 +2972,13 @@ void initConsole(Console* console, tic_mem* tic, FileSystem* fs, Config* config,
if(cartPtr)
{
embed.yes = true;
console->embed.yes = true;
s32 cartSize = EM_ASM_INT_V(return cartridge.length;);
u8* data = NULL;
s32 size = unzip(&data, cartPtr, cartSize);
loadCart(tic, &embed.file, data, size, true);
loadCart(tic, console->embed.file, data, size, true);
SDL_free(data);