From a1b3c330548e9ba2a2b31445c06719c412607478 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 3 Oct 2017 05:33:31 +0200 Subject: [PATCH] Moved codegen_init() back to after mem_init() in pc.c:pc_init_modules(), fixes the emulator crashing on initialization with the recompiler enabled. --- src/pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pc.c b/src/pc.c index e2f86c7c1..af86deb82 100644 --- a/src/pc.c +++ b/src/pc.c @@ -350,11 +350,13 @@ pc_init_modules(void) cpuspeed2 = (AT) ? 2 : 1; atfullspeed = 0; - codegen_init(); random_init(); mem_init(); + + codegen_init(); + rom_load_bios(romset); mem_add_bios();