Add missing break; lines for switch statements

- As discussed at #cheats on discord, using the search engine will cause RetroArch to crash as
soon as you click on Start or Restart Cheat Search.
- This PR adds the missing break lines for the switch statements that is causing the core to crash
This commit is contained in:
negativeExponent 2019-08-15 15:23:10 +08:00
parent b8afa8c57c
commit 9ccdeac3aa
1 changed files with 4 additions and 0 deletions

View File

@ -338,6 +338,7 @@ void* retro_get_memory_data(unsigned id)
data = vram;
break;
}
break;
case IMAGE_GB:
switch (id) {
@ -356,6 +357,7 @@ void* retro_get_memory_data(unsigned id)
data = gb_rtcdata_prt();
break;
}
break;
default: break;
}
@ -384,6 +386,7 @@ size_t retro_get_memory_size(unsigned id)
size = SIZE_VRAM - 0x2000; // usuable vram is only 0x18000
break;
}
break;
case IMAGE_GB:
switch (id) {
@ -401,6 +404,7 @@ size_t retro_get_memory_size(unsigned id)
size = gb_rtcdata_size();
break;
}
break;
default: break;
}