From 46ea791356165993622dd1fe26c2c432fd1a9236 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Tue, 21 Nov 2017 19:49:27 +0300 Subject: [PATCH] added live cart reloading #374 --- src/studio.c | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/src/studio.c b/src/studio.c index 68fce6e..ffa7899 100644 --- a/src/studio.c +++ b/src/studio.c @@ -1732,20 +1732,23 @@ SDL_Event* pollEvent() #if defined(TIC80_PRO) - if(studio.mode != TIC_START_MODE && studioCartChanged()) + if(studio.mode != TIC_START_MODE) { - static const char* Rows[] = + if(studioCartChanged()) { - "", - "CART HAS CHANGED!", - "", - "DO YOU WANT", - "TO RELOAD IT?" - }; + static const char* Rows[] = + { + "", + "CART HAS CHANGED!", + "", + "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 {