Skip to content

Commit 6d3287e

Browse files
upgrade the horrible errors to critical in logs
1 parent 2f76e6d commit 6d3287e

4 files changed

Lines changed: 4 additions & 43 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

include/nethook.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ namespace wavebreaker
9292
g_httpopenrequesta_hook = safetyhook::create_inline((void *)HttpOpenRequestA, (void *)OpenRequestHook);
9393
if (!g_getserver_hook || !g_getserverunicode_hook || !g_internetconnecta_hook || !g_httpopenrequesta_hook)
9494
{
95-
spdlog::error("Failed to attach hook(s). Hook addresses: {0:p} {1:p} {2:p} {3:p}", fmt::ptr(&g_getserver_hook), fmt::ptr(&g_getserverunicode_hook), fmt::ptr(&g_internetconnecta_hook), fmt::ptr(&g_httpopenrequesta_hook));
95+
spdlog::critical("Failed to attach hook(s). Hook addresses: {0:p} {1:p} {2:p} {3:p}", fmt::ptr(&g_getserver_hook), fmt::ptr(&g_getserverunicode_hook), fmt::ptr(&g_internetconnecta_hook), fmt::ptr(&g_httpopenrequesta_hook));
9696
throw std::runtime_error("Hook failed");
9797
}
9898
}

include/utility.hpp

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/dllmain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ uint32_t __stdcall init(void *args)
2222
spdlog::set_default_logger(logger);
2323
spdlog::set_level(spdlog::level::info);
2424
spdlog::flush_on(spdlog::level::debug);
25-
spdlog::info("Init");
25+
spdlog::info("Initializing Wavebreaker client.");
2626

2727
try
2828
{
2929
wavebreaker::config::init();
3030
}
3131
catch (const std::exception &e)
3232
{
33-
spdlog::error("Exception thrown when loading config: {}", e.what());
33+
spdlog::critical("Exception thrown when loading config: {}", e.what());
3434
MessageBoxA(nullptr, "Wavebreaker client config error!", "Error", MB_OK | MB_ICONERROR);
3535
return 1;
3636
}
@@ -42,7 +42,7 @@ uint32_t __stdcall init(void *args)
4242
}
4343

4444
while (!GetModuleHandleA("HTTP_Fetch_Unicode.dll") || !GetModuleHandleA("17C5B19F-4273-423C-A158-CA6F73046D43.dll"))
45-
Sleep(100);
45+
Sleep(125);
4646

4747
try
4848
{

0 commit comments

Comments
 (0)