From 8952a9005e34e0726c20175901c45f61a6222cab Mon Sep 17 00:00:00 2001 From: mtabachenko Date: Thu, 30 Jul 2009 16:32:49 +0000 Subject: [PATCH] - typo fix (unpacked no$gba saves); --- desmume/src/mc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/mc.cpp b/desmume/src/mc.cpp index 374c9ae48..7b5df7661 100644 --- a/desmume/src/mc.cpp +++ b/desmume/src/mc.cpp @@ -581,7 +581,7 @@ int no_gba_unpackSAV(void *in_buf, u32 fsize, void *out_buf, u32 &size) if (compressMethod == 0) // unpacked { - size_unpacked = *((u32*)(src+0x4C)); + size_unpacked = *((u32*)(src+0x48)); src_pos = 0x4C; for (int i = 0; i < size_unpacked; i++) { @@ -661,7 +661,7 @@ u32 no_gba_fillLeft(u32 size) { for (int i = 1; i < ARRAY_SIZE(save_types); i++) { - if (size < save_types[i][1]) + if (size <= save_types[i][1]) return (size + (save_types[i][1] - size)); } return size;