small fixes
This commit is contained in:
parent
157967eb3e
commit
5465005d59
@ -108,7 +108,7 @@ namespace console
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void __fastcall Conbuf_AppendText(const char* pMsg)
|
void Conbuf_AppendText(const char* pMsg)
|
||||||
{
|
{
|
||||||
char* b = s_wcd.cleanBuffer;
|
char* b = s_wcd.cleanBuffer;
|
||||||
const char* msg;
|
const char* msg;
|
||||||
@ -378,11 +378,11 @@ namespace console
|
|||||||
{
|
{
|
||||||
if (native::is_enabled())
|
if (native::is_enabled())
|
||||||
{
|
{
|
||||||
printf("%s\n", message.data());
|
printf(message.data());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sys::Sys_Print(utils::string::va("%s\n", message.data()));
|
sys::Sys_Print(message.data());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -528,11 +528,11 @@ namespace console
|
|||||||
{
|
{
|
||||||
if (PeekMessageA(&msg, nullptr, NULL, NULL, PM_REMOVE))
|
if (PeekMessageA(&msg, nullptr, NULL, NULL, PM_REMOVE))
|
||||||
{
|
{
|
||||||
//if (msg.message == WM_QUIT)
|
if (msg.message == WM_QUIT)
|
||||||
//{
|
{
|
||||||
// game::Cbuf_AddText(0, "quit");
|
game::Cbuf_AddText(0, "quit");
|
||||||
// break;
|
break;
|
||||||
//}
|
}
|
||||||
|
|
||||||
TranslateMessage(&msg);
|
TranslateMessage(&msg);
|
||||||
DispatchMessage(&msg);
|
DispatchMessage(&msg);
|
||||||
|
@ -440,20 +440,13 @@ namespace demonware
|
|||||||
void bd_logger_stub(int type, const char* const /*channelName*/, const char* /*fileLoc*/, const char* const /*file*/,
|
void bd_logger_stub(int type, const char* const /*channelName*/, const char* /*fileLoc*/, const char* const /*file*/,
|
||||||
const char* const function, const unsigned int /*line*/, const char* const msg, ...)
|
const char* const function, const unsigned int /*line*/, const char* const msg, ...)
|
||||||
{
|
{
|
||||||
//static auto* enabled =
|
|
||||||
// game::Dvar_RegisterBool("bd_logger", false, game::DVAR_FLAG_SAVED, "Log bd info to the console.");
|
|
||||||
//if (!enabled->current.enabled)
|
|
||||||
//{
|
|
||||||
// return;
|
|
||||||
//}
|
|
||||||
|
|
||||||
char buffer[2048];
|
char buffer[2048];
|
||||||
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, msg);
|
va_start(ap, msg);
|
||||||
|
|
||||||
vsnprintf_s(buffer, sizeof(buffer), _TRUNCATE, msg, ap);
|
vsnprintf_s(buffer, sizeof(buffer), _TRUNCATE, msg, ap);
|
||||||
console::print(type, "%s: %s", function, buffer);
|
console::print(type, "%s: %s\n", function, buffer);
|
||||||
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
@ -583,7 +576,9 @@ namespace demonware
|
|||||||
|
|
||||||
void post_unpack() override
|
void post_unpack() override
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG
|
||||||
utils::hook::jump(0x1285040_b, bd_logger_stub, true);
|
utils::hook::jump(0x1285040_b, bd_logger_stub, true);
|
||||||
|
#endif
|
||||||
|
|
||||||
utils::hook::set<uint8_t>(0xB5BB96F_b, 0x0); // CURLOPT_SSL_VERIFYPEER
|
utils::hook::set<uint8_t>(0xB5BB96F_b, 0x0); // CURLOPT_SSL_VERIFYPEER
|
||||||
utils::hook::set<uint8_t>(0xB7C6CB1_b, 0xAF); // CURLOPT_SSL_VERIFYHOST
|
utils::hook::set<uint8_t>(0xB7C6CB1_b, 0xAF); // CURLOPT_SSL_VERIFYHOST
|
||||||
|
Loading…
Reference in New Issue
Block a user