From bb62bd80bd9e729798e807378ec76073e407a7cc Mon Sep 17 00:00:00 2001 From: jsgnextortex Date: Mon, 28 Oct 2024 16:38:44 -0300 Subject: [PATCH] Proper prep for post-coop updates --- dsound/dllmain.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/dsound/dllmain.cpp b/dsound/dllmain.cpp index 0d392cd37..f94be110f 100644 --- a/dsound/dllmain.cpp +++ b/dsound/dllmain.cpp @@ -159,7 +159,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser std::string version = GetExeVersion(); sLogger->Info("Isaac Version: %s\n", version.c_str()); - if ((version != "1.7.9b.J835") || HasCommandLineArgument("-repentogonoff") || HasCommandLineArgument("-repentogoff") || HasCommandLineArgument("-repentogone")) { + if (HasCommandLineArgument("-repentogonoff") || HasCommandLineArgument("-repentogoff") || HasCommandLineArgument("-repentogone")) { sLogger->Info("Repentogon Disabled!\n"); FILE* f = fopen("repentogon.log", "a"); if (f) { @@ -170,6 +170,16 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser } return TRUE; } + if (!HasCommandLineArgument("-skipupdates")) { + sLogger->Info("dsound: Checking for updates\n"); + CheckForUpdates(); + sLogger->Info("dsound: Update checking done\n"); + } + + if (version != "1.7.9b.J835") { + sLogger->Info("This Version of Isaac is not compatible!!\n"); + return TRUE; + } sLogger->Info("dsound: Overriding Lua 5.3.3 with Lua 5.4\n"); DWORD redirectResult = RedirectLua(&luaHandle); @@ -195,12 +205,6 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser ConsoleWindow::Init(); sLogger->Info("dsound: Initialized console window\n"); } - - if (!HasCommandLineArgument("-skipupdates")) { - sLogger->Info("dsound: Checking for updates\n"); - CheckForUpdates(); - sLogger->Info("dsound: Update checking done\n"); - } /*if(GetIsaacVersion() != ISAAC_REBIRTH) {