Skip to content

Commit 8df7d4d

Browse files
committed
Merge branch 'dev'
2 parents cb4ce3f + 5ac0c1e commit 8df7d4d

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Retro-Go 1.36.3 (2022-12-14)
2+
- SNES: Fixed freeze in controls menu (hopefully for real this time...)
3+
4+
15
# Retro-Go 1.36.2 (2022-12-07)
26
- SNES: Fixed crash in controls menu
37
- Launcher: Start wifi access point

components/retro-go/rg_gui.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ int rg_gui_dialog(const char *title, const rg_gui_option_t *options_const, int s
813813
free(text_buffer);
814814

815815
if (sel == -1)
816-
return -1;
816+
return RG_DIALOG_CANCELLED;
817817

818818
return options[sel].arg;
819819
}

snes9x-go/main/main.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -128,22 +128,25 @@ static rg_gui_event_t menu_keymap_cb(rg_gui_option_t *option, rg_gui_event_t eve
128128
{
129129
if (event == RG_DIALOG_ENTER)
130130
{
131-
rg_gui_option_t options[RG_COUNT(keymap.keys) + 4];
132-
char values[RG_COUNT(keymap.keys)][16];
133-
char profile[32];
134131
bool dismissed = false;
135132

136133
while (!dismissed)
137134
{
135+
rg_gui_option_t options[keymap.size + 4];
138136
rg_gui_option_t *option = options;
137+
char values[keymap.size][20];
138+
char profile[32];
139139

140140
option->label = "Profile";
141141
option->value = strcat(strcat(strcpy(profile, "< "), keymap.name), " >");
142142
option->flags = RG_DIALOG_FLAG_NORMAL;
143143
option->update_cb = &change_keymap_cb;
144144
option++;
145145

146+
option->label = "";
147+
option->value = NULL;
146148
option->flags = RG_DIALOG_FLAG_NORMAL;
149+
option->update_cb = &change_keymap_cb;
147150
option++;
148151

149152
option->label = "snes9x ";

0 commit comments

Comments
 (0)