Skip to content

Commit f2e9760

Browse files
committed
cleaned up community bugfix log message
1 parent 78c04f1 commit f2e9760

1 file changed

Lines changed: 38 additions & 91 deletions

File tree

src/warnings/bugfix_mod_checks.cpp

Lines changed: 38 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,43 @@ void BugfixMods::Check()
293293

294294
HardResetIfEnvironmentChanged(cache, cacheFile);
295295

296+
297+
if (eGameType & (MGS2 | MGS3))
298+
{
299+
// ------------------------------------------------------
300+
// MGS2 & MGS3 Community Bugfix Compilation
301+
// ------------------------------------------------------
302+
303+
{
304+
std::filesystem::path CommunityBugfixCompilationASI = sExePath / "plugins" / ((eGameType & MGS2) ? "MGS2-Community-Bugfix-Compilation.asi" : "MGS3-Community-Bugfix-Compilation.asi");
305+
306+
spdlog::info("Bugfix Mod Checks: Checking for {} Community Bugfix Compilation.", (eGameType & MGS2) ? "MGS2" : "MGS3", CommunityBugfixCompilationASI.string());
307+
if (!std::filesystem::exists(CommunityBugfixCompilationASI))
308+
{
309+
spdlog::info("");
310+
spdlog::info("===================================== Bugfix Mod Checks =====================================");
311+
spdlog::info("{} Community Bugfix Compilation mod is not currently installed.", (eGameType & MGS2) ? "MGS2" : "MGS3");
312+
if (eGameType & MGS2)
313+
{
314+
spdlog::info("This mod fixes nearly 14,000 texture issues, hundreds of transparent textures / models, missing audio / music, and countless localization errors / typos introduced by the 2011 Bluepoint HD remaster.");
315+
}
316+
else
317+
{
318+
spdlog::info("This mod fixes nearly 4000 texture issues, over 500 transparent textures / models, restores missing regional content, and corrects countless localization errors / typos introduced by the 2011 Bluepoint HD remaster.");
319+
}
320+
spdlog::info("===================================== Bugfix Mod Checks =====================================");
321+
spdlog::info("");
322+
323+
}
324+
else
325+
{
326+
spdlog::info("Bugfix Mod Checks: {} Community Bugfix Compilation Check: Mod is installed.", (eGameType & MGS2) ? "MGS2" : "MGS3");
327+
}
328+
}
329+
}
330+
331+
332+
296333
if (eGameType & MGS2)
297334
{
298335
spdlog::info("Bugfix Mod Checks: Checking for missing MGS2 Bugfix Mods...");
@@ -302,7 +339,7 @@ void BugfixMods::Check()
302339
// ------------------------------------------------------
303340
// MGS2: Better Audio Mod Crash Fix Check
304341
// ------------------------------------------------------
305-
spdlog::info("== Bugfix Mod Checks: US/EU DAT language pack detected, checking for MGS2 Better Audio Mod / Crash Fix. ==");
342+
spdlog::info("Bugfix Mod Checks: US/EU DAT language pack detected, checking for MGS2 Better Audio Mod / Crash Fix.");
306343
{
307344
const std::string key = "MGS2_BetterAudioMod";
308345
const auto sdtPath = sExePath / "us" / "demo" / "_bp" / "p070_01_p01.sdt";
@@ -390,97 +427,7 @@ void BugfixMods::Check()
390427
}
391428
}
392429
}
393-
/*
394-
// ------------------------------------------------------
395-
// MGS2: MGS2 Community Bugfix Compilation
396-
// ------------------------------------------------------
397-
398-
{
399-
spdlog::info("== Bugfix Mod Checks: Checking for MGS2 Community Bugfix Compilation. ==");
400-
const std::string key = "MGS2_CommunityBugfixCompilation";
401-
std::filesystem::path CommunityBugfixCompilationASI = sExePath / "plugins" / "MGS2-Community-Bugfix-Compilation.asi";
402430

403-
spdlog::info("Bugfix Mod Checks: MGS2 Community Bugfix Compilation Check: Checking for plugin: {}", CommunityBugfixCompilationASI.string());
404-
if (!std::filesystem::exists(CommunityBugfixCompilationASI))
405-
{
406-
const WarningPolicy policy { 2, 120 };
407-
const uint32_t remaining = GetWarningsRemaining(cache, key, policy);
408-
409-
if (ShouldWarn(cache, key, policy))
410-
{
411-
const bool inInitialPhase = !cache.warn[key].initialPhaseComplete;
412-
413-
std::string message;
414-
if (inInitialPhase)
415-
{
416-
const uint32_t remainingAfterThis = (remaining > 0) ? (remaining - 1) : 0;
417-
message =
418-
"Warning: MGS2 Community Bugfix Compilation is not currently installed.\n"
419-
"\n"
420-
"This mod fixes nearly 14,000 texture issues, hundreds of transparent textures/models, missing audio/music, and countless localization errors/typos introduced by the 2011 Bluepoint HD remaster.\n"
421-
"\n"
422-
"Would you like to open the mod page now?\n"
423-
"\n" +
424-
BuildInitialPhaseTail(remainingAfterThis, policy.cooldownDays);
425-
}
426-
else
427-
{
428-
message =
429-
"Reminder: MGS2 Community Bugfix Compilation is not currently installed.\n"
430-
"\n"
431-
"This mod fixes nearly 14,000 texture issues, hundreds of transparent textures/models, missing audio/music, and countless localization errors/typos introduced by the 2011 Bluepoint HD remaster.\n"
432-
"\n"
433-
"Would you like to open the mod page now?\n"
434-
"\n" +
435-
BuildCooldownTail(policy.cooldownDays);
436-
}
437-
438-
spdlog::warn(message);
439-
440-
if (bEnableVisibleWarnings)
441-
{
442-
if (Util::IsSteamOS())
443-
{
444-
std::cout
445-
<< "\n================ MGSHDFix WARNING ================\n\n"
446-
<< message
447-
<< "\nMod page:\n"
448-
<< "https://www.nexusmods.com/metalgearsolid2mc/mods/52\n"
449-
<< "\n=================================================\n\n";
450-
}
451-
else
452-
{
453-
if (int result = MessageBoxA(
454-
g_D3D11Hooks.MainHwnd,
455-
message.c_str(),
456-
"MGSHDFix - Bugfix Warning",
457-
MB_ICONWARNING | MB_YESNO);
458-
result == IDYES)
459-
{
460-
ShellExecuteA(
461-
nullptr,
462-
"open",
463-
"https://www.nexusmods.com/metalgearsolid2mc/mods/52",
464-
nullptr,
465-
nullptr,
466-
SW_SHOWNORMAL
467-
);
468-
}
469-
}
470-
}
471-
472-
RecordWarning(cache, cacheFile, key, policy);
473-
}
474-
else
475-
{
476-
spdlog::info("Bugfix Mod Checks: MGS2 Community Bugfix Compilation Check: Not currently installed.");
477-
}
478-
}
479-
else
480-
{
481-
spdlog::info("Bugfix Mod Checks: MGS2 Community Bugfix Compilation Check: Mod is installed.");
482-
}
483-
} */
484431
}
485432

486433
}

0 commit comments

Comments
 (0)