From a0e05db1279d830e27cda10d0528694ecaf29905 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 5 Feb 2013 22:47:12 -0500 Subject: [PATCH] fix jump table offset. --- loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader.cpp b/loader.cpp index a6d9118..cd5e48f 100644 --- a/loader.cpp +++ b/loader.cpp @@ -151,7 +151,7 @@ uint32_t load(const char *file) address = EmulatedNewPtr(a5size); a5 = address + below; - std::memcpy(memory + a5, data, above); + std::memcpy(memory + a5 + jtOffset, data + 16 , jtSize); segments[resID] = std::make_pair(address, a5size);