From 070ec63a8b68000ebbb2045092eb69175aa85b09 Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Tue, 2 Jul 2024 10:47:36 -0500 Subject: [PATCH] Update dllmain.cpp --- source/Crysis3Remastered.Patches/dllmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Crysis3Remastered.Patches/dllmain.cpp b/source/Crysis3Remastered.Patches/dllmain.cpp index c2d02b2..5a201ee 100644 --- a/source/Crysis3Remastered.Patches/dllmain.cpp +++ b/source/Crysis3Remastered.Patches/dllmain.cpp @@ -31,7 +31,7 @@ void ReadConfig(void) { // no ini, lets generate one. std::wstring ini_defaults = L"[Settings]\n" - wstr(bBenchmarkingOnly)" false\n" + wstr(bBenchmarkingOnly)" = false\n" wstr(bVerboseConsoleOutput)" = false\n" "; Benchmark types:\n" "; 1 = CPU Benchmark\n" @@ -162,7 +162,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, { case DLL_PROCESS_ATTACH: { - CreateThread(NULL, 0, Main, 0, NULL, 0); + Main(NULL); } case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: