added live cart reloading #374

This commit is contained in:
BADIM-PC\Vadim 2017-11-21 19:49:27 +03:00
parent 31929e5550
commit 46ea791356
1 changed files with 13 additions and 10 deletions

View File

@ -1732,20 +1732,23 @@ SDL_Event* pollEvent()
#if defined(TIC80_PRO) #if defined(TIC80_PRO)
if(studio.mode != TIC_START_MODE && studioCartChanged()) if(studio.mode != TIC_START_MODE)
{ {
static const char* Rows[] = if(studioCartChanged())
{ {
"", static const char* Rows[] =
"CART HAS CHANGED!", {
"", "",
"DO YOU WANT", "CART HAS CHANGED!",
"TO RELOAD IT?" "",
}; "DO YOU WANT",
"TO RELOAD IT?"
};
showDialog(Rows, COUNT_OF(Rows), reloadConfirm, NULL); showDialog(Rows, COUNT_OF(Rows), reloadConfirm, NULL);
}
else studio.console.updateProject(&studio.console);
} }
else studio.console.updateProject(&studio.console);
#endif #endif
{ {