Skip to content

Commit 00f08bf

Browse files
authored
Merge pull request #731 from AZero13/exit
Close file when done readine
2 parents 4c57a76 + 2c01d64 commit 00f08bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/gb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ int GB_load_battery(GB_gameboy_t *gb, const char *path)
10921092
/* We must reset RTC here, or it will not advance. */
10931093
goto reset_rtc;
10941094
}
1095-
return 0;
1095+
goto exit;
10961096
}
10971097

10981098
if (gb->cartridge_type->mbc_type == GB_HUC3) {
@@ -1111,7 +1111,7 @@ int GB_load_battery(GB_gameboy_t *gb, const char *path)
11111111
/* We must reset RTC here, or it will not advance. */
11121112
goto reset_rtc;
11131113
}
1114-
return 0;
1114+
goto exit;
11151115
}
11161116

11171117
rtc_save_t rtc_save;

0 commit comments

Comments
 (0)