From 16f9531484d886d8346b8b05741d7c09fb66e273 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Wed, 13 Dec 2017 20:25:40 +0300 Subject: [PATCH] temporary removed embed cart section and disabled native export --- src/console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/console.c b/src/console.c index f9212b4..7e0e940 100644 --- a/src/console.c +++ b/src/console.c @@ -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);