this repo has no description
0
fork

Configure Feed

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

fixed confirmation dialog on exit from game menu #1969

nesbox 679c7f4a eb59272e

+19 -19
+19 -19
src/studio/studio.c
··· 1371 1371 { 1372 1372 studio->menuMode = studio->mode; 1373 1373 studio->mode = TIC_MENU_MODE; 1374 + } 1374 1375 1375 - static MenuItem Answers[] = 1376 - { 1377 - {"", NULL}, 1378 - {"(N)O", confirmNo}, 1379 - {"(Y)ES", confirmYes}, 1380 - }; 1376 + static MenuItem Answers[] = 1377 + { 1378 + {"", NULL}, 1379 + {"(N)O", confirmNo}, 1380 + {"(Y)ES", confirmYes}, 1381 + }; 1381 1382 1382 - Answers[1].hotkey = tic_key_n; 1383 - Answers[2].hotkey = tic_key_y; 1383 + Answers[1].hotkey = tic_key_n; 1384 + Answers[2].hotkey = tic_key_y; 1384 1385 1385 - s32 count = rows + COUNT_OF(Answers); 1386 - MenuItem* items = malloc(sizeof items[0] * count); 1387 - SCOPE(free(items)) 1388 - { 1389 - for(s32 i = 0; i != rows; ++i) 1390 - items[i] = (MenuItem){text[i], NULL}; 1386 + s32 count = rows + COUNT_OF(Answers); 1387 + MenuItem* items = malloc(sizeof items[0] * count); 1388 + SCOPE(free(items)) 1389 + { 1390 + for(s32 i = 0; i != rows; ++i) 1391 + items[i] = (MenuItem){text[i], NULL}; 1391 1392 1392 - memcpy(items + rows, Answers, sizeof Answers); 1393 + memcpy(items + rows, Answers, sizeof Answers); 1393 1394 1394 - studio_menu_init(studio->menu, items, count, count - 2, 0, 1395 - NULL, MOVE((ConfirmData){studio, callback, data})); 1395 + studio_menu_init(studio->menu, items, count, count - 2, 0, 1396 + NULL, MOVE((ConfirmData){studio, callback, data})); 1396 1397 1397 - playSystemSfx(studio, 0); 1398 - } 1398 + playSystemSfx(studio, 0); 1399 1399 } 1400 1400 } 1401 1401