this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

load confirm message fix

nesbox 54d5eb8d 556b2a92

+9 -18
+9 -18
src/studio/screens/console.c
··· 1032 1032 free(demoData); 1033 1033 } 1034 1034 1035 + static const char* LoadWarningRows[] = 1036 + { 1037 + "WARNING!", 1038 + "You have unsaved changes", 1039 + "Do you really want to load cart?", 1040 + }; 1041 + 1035 1042 static void onLoadDemoCommand(Console* console, tic_script_config* script) 1036 1043 { 1037 1044 if(studioCartChanged(console->studio)) 1038 1045 { 1039 - static const char* Rows[] = 1040 - { 1041 - "WARNING!", 1042 - "You have unsaved changes", 1043 - "Do you really want to load cart?", 1044 - }; 1045 - 1046 1046 LoadDemoConfirmData data = {console, onLoadDemoCommandConfirmed, script}; 1047 - confirmDialog(console->studio, Rows, COUNT_OF(Rows), onLoadDemoConfirm, MOVE(data)); 1047 + confirmDialog(console->studio, LoadWarningRows, COUNT_OF(LoadWarningRows), onLoadDemoConfirm, MOVE(data)); 1048 1048 } 1049 1049 else 1050 1050 { ··· 1056 1056 { 1057 1057 if(studioCartChanged(console->studio)) 1058 1058 { 1059 - static const char* Rows[] = 1060 - { 1061 - "YOU HAVE", 1062 - "UNSAVED CHANGES", 1063 - "", 1064 - "DO YOU REALLY WANT", 1065 - "TO LOAD CART?", 1066 - }; 1067 - 1068 - confirmCommand(console, Rows, COUNT_OF(Rows), onLoadCommandConfirmed); 1059 + confirmCommand(console, LoadWarningRows, COUNT_OF(LoadWarningRows), onLoadCommandConfirmed); 1069 1060 } 1070 1061 else 1071 1062 {