Skip to content

Commit d36847f

Browse files
authored
add disable logging INI setting
1 parent 0fce7a1 commit d36847f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

skee64backports.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[SKEEBackports]
22
normal_delay_milliseconds=1000
33
ubeonly=false
4-
nooverlaynormals=false
4+
nooverlaynormals=false
5+
disablelogging=true

src/GameEventHandler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ namespace plugin {
528528
if (ini["SKEEBackports"]["nooverlaynormals"] == "true") {
529529
nooverlaynormals = true;
530530
}
531+
if (ini["SKEEBackports"]["disablelogging"] == "true") {
532+
spdlog::default_logger()->set_level(spdlog::level::level_enum::err);
533+
}
531534
task_pool_ptr = (bool (*)(void)) REL::VariantID(38079, 39033, 0x6488a0).address();
532535
if (HMODULE handle = GetModuleHandleA("skee64.dll")) {
533536
MODULEINFO skee64_info;

0 commit comments

Comments
 (0)