added live cart reloading #374
This commit is contained in:
parent
31929e5550
commit
46ea791356
23
src/studio.c
23
src/studio.c
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue