mirror of
https://github.com/encounter/oot-gc.git
synced 2026-07-10 12:18:42 -07:00
Add missing breaks in sramEvent
This commit is contained in:
+4
-5
@@ -81,11 +81,7 @@ bool sramEvent(Sram* pObject, s32 nEvent, void* pArgument) {
|
||||
switch (nEvent) {
|
||||
case 2:
|
||||
pSram->pHost = pArgument;
|
||||
case 0:
|
||||
case 1:
|
||||
case 3:
|
||||
break;
|
||||
|
||||
case 0x1002:
|
||||
if (!cpuSetDevicePut(SYSTEM_CPU(pSram->pHost), pArgument, (Put8Func)sramPut8, (Put16Func)sramPut16,
|
||||
(Put32Func)sramPut32, (Put64Func)sramPut64)) {
|
||||
@@ -95,9 +91,12 @@ bool sramEvent(Sram* pObject, s32 nEvent, void* pArgument) {
|
||||
(Get32Func)sramGet32, (Get64Func)sramGet64)) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
case 1:
|
||||
case 3:
|
||||
case 0x1003:
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user