Commit 527a712d authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Now works on 32bit Windows

parent 25b0e3d1
......@@ -7,6 +7,7 @@ NO_THREADS := 1
NO_EXCEPTIONS := 0
NO_NVMEM := 0
NO_VERIFY := 1
HAVE_LTCG := 1
HAVE_GENERIC_JIT := 1
HAVE_GL3 := 0
FORCE_GLES := 0
......@@ -469,6 +470,10 @@ RZDCY_CFLAGS += $(HOST_CPU_FLAGS)
include Makefile.common
ifeq ($(WITH_DYNAREC), x86)
HAVE_LTCG = 0
endif
ifeq ($(DEBUG),1)
OPTFLAGS := -O0
LDFLAGS += -g
......@@ -479,12 +484,17 @@ ifneq (,$(findstring msvc,$(platform)))
else
OPTFLAGS := -O3
endif
CORE_DEFINES += -DNDEBUG -flto
CORE_DEFINES += -DNDEBUG
LDFLAGS += -DNDEBUG
ifeq ($(HAVE_LTCG), 1)
CORE_DEFINES += -flto
endif
CORE_DEFINES += -DRELEASE
endif
ifeq ($(HAVE_GL3), 1)
HAVE_CORE = 1
CORE_DEFINES += -DHAVE_GL3
......
......@@ -685,7 +685,7 @@ void common_libretro_setup(void)
// setup_seh();
AddVectoredExceptionHandler(1, ExceptionHandler);
#endif
SetUnhandledExceptionFilter(0);
SetUnhandledExceptionFilter(&ExceptionHandler);
#else
exception_handler_install_platform();
signal(SIGINT, exit);
......
......@@ -9,7 +9,7 @@
.globl _cycle_counter
.globl _loop_no_update
.globl _intc_sched
.globl _bm_GetCode
.globl __Z10bm_GetCodej
.globl _UpdateSystem
.globl _rdv_DoInterrupts
.globl _rdv_BlockCheckFail
......@@ -91,7 +91,7 @@ _ngen_mainloop:
# next_pc _MUST_ be on ecx
no_update:
mov esi,ecx
call _bm_GetCode #bm_GetCode
call __Z10bm_GetCodej #bm_GetCode
jmp eax
intc_sched_offs:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment