mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
fix mingw debug build
This commit is contained in:
parent
b34ec49a13
commit
4b7fe8531e
4
Makefile
4
Makefile
@ -8,6 +8,10 @@ LIBS = -lgdi32 -lwinmm -lpsapi -ldbghelp -lole32
|
|||||||
CC = i686-w64-mingw32-gcc
|
CC = i686-w64-mingw32-gcc
|
||||||
WINDRES ?= i686-w64-mingw32-windres
|
WINDRES ?= i686-w64-mingw32-windres
|
||||||
|
|
||||||
|
ifdef DEBUG
|
||||||
|
CFLAGS += -D _DEBUG -D _DEBUG_X
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
@ -5,4 +5,5 @@ REM
|
|||||||
set PATH=C:\w64devkit\bin
|
set PATH=C:\w64devkit\bin
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
|
REM make DEBUG=1
|
||||||
pause
|
pause
|
||||||
|
@ -646,12 +646,13 @@ void hook_exit()
|
|||||||
|
|
||||||
hook_revert((HOOKLIST*)&g_hook_hooklist);
|
hook_revert((HOOKLIST*)&g_hook_hooklist);
|
||||||
|
|
||||||
#if defined(_DEBUG) && defined(_MSC_VER)
|
#if defined(_DEBUG)
|
||||||
|
#if defined(_MSC_VER)
|
||||||
DetourTransactionBegin();
|
DetourTransactionBegin();
|
||||||
DetourUpdateThread(GetCurrentThread());
|
DetourUpdateThread(GetCurrentThread());
|
||||||
DetourDetach((PVOID*)&real_SetUnhandledExceptionFilter, (PVOID)fake_SetUnhandledExceptionFilter);
|
DetourDetach((PVOID*)&real_SetUnhandledExceptionFilter, (PVOID)fake_SetUnhandledExceptionFilter);
|
||||||
DetourTransactionCommit();
|
DetourTransactionCommit();
|
||||||
|
#endif
|
||||||
real_SetUnhandledExceptionFilter(g_dbg_exception_filter);
|
real_SetUnhandledExceptionFilter(g_dbg_exception_filter);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user