Skip to content
Permalink
Browse files

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
  • Loading branch information
negativeExponent committed Aug 15, 2019
1 parent b8afa8c commit 9ccdeac3aa9db00720bb80eff5c9924362144efa
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/libretro/libretro.cpp
@@ -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;
}

0 comments on commit 9ccdeac

Please sign in to comment.
You can’t perform that action at this time.