* read modlist.txt files immediately on launch, textures still loaded on d3d creation
This commit is contained in:
DubbleClick
2024-11-10 23:06:49 +07:00
committed by GitHub
parent 93032262c3
commit 175002a9e4
10 changed files with 55 additions and 46 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ const char *function)
GetModuleFileName(gl_hThisInstance, module_path, _countof(module_path));
}
if (!*module_path) {
strcpy(module_path, "Unknown");
strcpy_s(module_path, "Unknown");
}
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);