Replace D3D9 proxy wrappers with vtable hooks

This commit is contained in:
henderkes
2026-06-03 22:11:28 +00:00
committed by DubbleClick
parent 63110be15a
commit 17c7d5bdfc
32 changed files with 1191 additions and 3105 deletions
+5 -5
View File
@@ -6,10 +6,10 @@
#include <Main.h>
__declspec(noreturn) void FatalAssert(
const char *expr,
const char *file,
unsigned int line,
const char *function)
const char* expr,
const char* file,
unsigned int line,
const char* function)
{
char module_path[MAX_PATH]{};
if (gl_hThisInstance) {
@@ -21,7 +21,7 @@ const char *function)
const char* fmt = "Module: %s\n\nExpr: %s\n\nFile: %s\n\nFunction: %s, line %d";
int len = snprintf(NULL, 0, fmt, module_path, expr, file, function, line);
char* buf = new char[len + 1];
snprintf(buf,len + 1, fmt, module_path, expr, file, function, line);
snprintf(buf, len + 1, fmt, module_path, expr, file, function, line);
MessageBox(0, buf, "uMod Assertion Failure", MB_OK | MB_ICONERROR);