gdbstub_plugin/src/patches.cpp

17 lines
525 B
C++
Raw Normal View History

2018-09-24 10:43:20 +02:00
#include <cstdint>
2022-02-08 14:48:41 +01:00
#include <wups.h>
2018-09-24 10:43:20 +02:00
2022-02-08 14:48:41 +01:00
DECL_FUNCTION(int, OSSetExceptionCallback) {
2022-02-08 14:44:53 +01:00
return 0;
2018-09-24 10:43:20 +02:00
}
2022-02-08 14:48:41 +01:00
DECL_FUNCTION(int, OSSetExceptionCallbackEx) {
2022-02-08 14:44:53 +01:00
return 0;
2018-09-24 10:43:20 +02:00
}
2022-02-08 14:48:41 +01:00
DECL_FUNCTION(int, OSIsDebuggerInitialized) {
2022-02-08 14:44:53 +01:00
return true;
2018-09-24 10:43:20 +02:00
}
2022-02-08 14:44:53 +01:00
2022-02-08 14:48:41 +01:00
WUPS_MUST_REPLACE(OSSetExceptionCallback, WUPS_LOADER_LIBRARY_COREINIT, OSSetExceptionCallback);
WUPS_MUST_REPLACE(OSSetExceptionCallbackEx, WUPS_LOADER_LIBRARY_COREINIT, OSSetExceptionCallbackEx);
WUPS_MUST_REPLACE(OSIsDebuggerInitialized, WUPS_LOADER_LIBRARY_COREINIT, OSIsDebuggerInitialized);