no message

This commit is contained in:
BADIM-PC\Vadim 2018-02-15 17:06:03 +03:00
parent 05e1e78115
commit 091901ddfa
3 changed files with 7 additions and 1 deletions

View File

@ -158,7 +158,11 @@ static void processDoFile(void* data, char* dst)
static bool forceExit(void* data)
{
return getStudioMode() != TIC_RUN_MODE;
getSystem()->poll();
tic_mem* tic = ((Run*)data)->tic;
return tic->api.key(tic, tic_key_escape);
}
void initRun(Run* run, Console* console, tic_mem* tic)

View File

@ -968,6 +968,7 @@ static System systemInterface =
.openSystemPath = openSystemPath,
.preseed = preseed,
.poll = pollEvent,
};
#if defined(__EMSCRIPTEN__)

View File

@ -23,6 +23,7 @@ typedef struct
void (*openSystemPath)(const char* path);
void (*preseed)();
void (*poll)();
} System;