minor fixes

This commit is contained in:
m 2024-01-20 21:42:36 -06:00
parent 6f449b16a0
commit 0f6ada95ec
3 changed files with 8 additions and 8 deletions

View File

@ -15,7 +15,7 @@ namespace logger
{
void sys_print_stub(const char* msg)
{
console::info("%s\n", msg);
console::info("%s", msg);
}
void print_info(const char* msg, ...)
@ -29,7 +29,7 @@ namespace logger
va_end(ap);
console::info("%s\n", buffer);
console::info("%s", buffer);
}
void print_warn(const char* msg, ...)
@ -43,7 +43,7 @@ namespace logger
va_end(ap);
console::warn("%s\n", buffer);
console::warn("%s", buffer);
}
void print_error(const char* msg, ...)
@ -57,7 +57,7 @@ namespace logger
va_end(ap);
console::error("%s\n", buffer);
console::error("%s", buffer);
}
void print_debug(const char* msg, ...)
@ -71,13 +71,13 @@ namespace logger
va_end(ap);
console::debug("%s\n", buffer);
console::debug("%s", buffer);
}
void r_warn_once_per_frame_vsnprintf_stub(char* buffer, size_t buffer_length, char* msg, va_list va)
{
vsnprintf(buffer, buffer_length, msg, va);
console::warn("%s\n", buffer);
console::warn("%s", buffer);
}
void com_init_pre()

View File

@ -148,7 +148,7 @@ namespace rcon
}
auto status_buffer = build_status_buffer();
console::info("%s\n", status_buffer.data());
console::info("%s", status_buffer.data());
});
if (!game::environment::is_dedi())

View File

@ -116,7 +116,7 @@ namespace steam
bool SteamAPI_Init()
{
const std::filesystem::path steam_path = steam::SteamAPI_GetSteamInstallPath();
if (steam_path.empty()) return true; // h1-mod has this as true, is this right?
if (steam_path.empty()) return false;
::utils::nt::library::load(steam_path / "tier0_s64.dll");
::utils::nt::library::load(steam_path / "vstdlib_s64.dll");