Skip to content

Commit

Permalink
Merge pull request #77 from negativeExponent/fix_cheat_search
Browse files Browse the repository at this point in the history
Add missing break; lines for switch statements
  • Loading branch information
inactive123 committed Aug 17, 2019
2 parents b8afa8c + 9ccdeac commit 6bdd6d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libretro/libretro.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ void* retro_get_memory_data(unsigned id)
data = vram; data = vram;
break; break;
} }
break;


case IMAGE_GB: case IMAGE_GB:
switch (id) { switch (id) {
Expand All @@ -356,6 +357,7 @@ void* retro_get_memory_data(unsigned id)
data = gb_rtcdata_prt(); data = gb_rtcdata_prt();
break; break;
} }
break;


default: break; default: break;
} }
Expand Down Expand Up @@ -384,6 +386,7 @@ size_t retro_get_memory_size(unsigned id)
size = SIZE_VRAM - 0x2000; // usuable vram is only 0x18000 size = SIZE_VRAM - 0x2000; // usuable vram is only 0x18000
break; break;
} }
break;


case IMAGE_GB: case IMAGE_GB:
switch (id) { switch (id) {
Expand All @@ -401,6 +404,7 @@ size_t retro_get_memory_size(unsigned id)
size = gb_rtcdata_size(); size = gb_rtcdata_size();
break; break;
} }
break;


default: break; default: break;
} }
Expand Down

0 comments on commit 6bdd6d1

Please sign in to comment.