all repos — mgba @ 0cf30069525cd031bcf3e5206ecc438084fea502

mGBA Game Boy Advance Emulator

GBA Thread: Fix possible hang when loading an archive
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Jan 2015 00:12:33 -0800
commit

0cf30069525cd031bcf3e5206ecc438084fea502

parent

c50b228243bb6c381c13b290e2d864075dc34194

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -27,6 +27,7 @@ - GBA Audio: Audio buffer sizes are now correct sizes for both sample rates

- GBA BIOS: Fix BIOS prefetch after returning from an IRQ - GBA BIOS: Fix BIOS prefetch after reset - GBA Memory: Fix alignment of open bus 8- and 16-bit loads + - GBA Thread: Fix possible hang when loading an archive Misc: - GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples - GBA Memory: Simplify memory API and use fixed bus width
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -315,6 +315,7 @@ while (dirent) {

struct Patch patchTemp; struct VFile* vf = threadContext->gameDir->openFile(threadContext->gameDir, dirent->name(dirent), O_RDONLY); if (!vf) { + dirent = threadContext->gameDir->listNext(threadContext->gameDir); continue; } if (!threadContext->rom && GBAIsROM(vf)) {