Skip to content

Commit

Permalink
Proper prep for post-coop updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgnextortex committed Oct 28, 2024
1 parent d4c5491 commit bb62bd8
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions dsound/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand All @@ -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)
{
Expand Down

0 comments on commit bb62bd8

Please sign in to comment.