Skip to content
Permalink
Browse files

Merge pull request #77 from negativeExponent/fix_cheat_search

Add missing break; lines for switch statements
  • Loading branch information
twinaphex committed Aug 17, 2019
2 parents b8afa8c + 9ccdeac commit 6bdd6d1b22e40cfe715f05bc6653936eae40658f
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 6bdd6d1

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