Added config logging

This commit is contained in:
acidicoala
2025-08-27 23:38:56 +05:00
parent 1174dcb57a
commit ec5778d452
10 changed files with 84 additions and 76 deletions

View File

@@ -1,6 +1,7 @@
#include <koalabox/logger.hpp>
#include "steam_api/steam_interface.hpp"
#include "steam_client.hpp"
namespace steam_client {
void* GetGenericInterface(
@@ -11,13 +12,13 @@ namespace steam_client {
try {
auto* const interface = original_function();
LOG_DEBUG("{} -> '{}' @ {}", function_name, interface_version, interface);
LOG_DEBUG("'{}' -> '{}' @ {}", function_name, interface_version, interface);
steam_interface::hook_virtuals(interface, interface_version);
return interface;
} catch(const std::exception& e) {
LOG_ERROR("{} -> Error: '{}' @ {}", function_name, interface_version, e.what());
LOG_ERROR("'{}' -> Error: '{}' @ {}", function_name, interface_version, e.what());
return nullptr;
}
}