fix build on release

This commit is contained in:
quaK 2024-05-30 01:20:45 +03:00
parent fa75692dd5
commit 7e588f40c5
3 changed files with 5 additions and 8 deletions

View File

@ -193,8 +193,8 @@ namespace discord
discord_presence.startTimestamp = saved_time; discord_presence.startTimestamp = saved_time;
//const auto game_initialized = game::client_actives_something[0] == 1; // 196 * client num = resultc //const auto game_initialized = game::client_actives_something[0] == 1; // 196 * client num = resultc
const auto game_initialized = false; // TODO: figure out a way to do this //const auto game_initialized = false; // TODO: figure out a way to do this
if (!game_initialized || game::Com_FrontEndScene_IsActive()) if (/*!game_initialized || */game::Com_FrontEndScene_IsActive())
{ {
update_discord_frontend(); update_discord_frontend();
} }

View File

@ -235,12 +235,7 @@ namespace server_list
bool is_server_list_open() bool is_server_list_open()
{ {
#ifdef DEBUG return game::Menu_IsMenuOpenAndVisible(0, "SystemLinkMenu");
return false;
#else
// TODO
return game::Menu_IsMenuOpenAndVisible(0, "menu_systemlink_join");
#endif
} }
bool is_scrolling_disabled() bool is_scrolling_disabled()

View File

@ -161,6 +161,8 @@ namespace game
WEAK symbol<Material* (const char* material)> Material_RegisterHandle{ 0xE11CE0 }; WEAK symbol<Material* (const char* material)> Material_RegisterHandle{ 0xE11CE0 };
WEAK symbol<bool(int localClientNum, const char* menuName)> Menu_IsMenuOpenAndVisible{ 0x61CA70 };
WEAK symbol<void(netadr_s*, sockaddr*)> NetadrToSockadr{ 0xCE6B90 }; WEAK symbol<void(netadr_s*, sockaddr*)> NetadrToSockadr{ 0xCE6B90 };
WEAK symbol<void(netsrc_t, netadr_s*, const char*)> NET_OutOfBandPrint{ 0xBB4EE0 }; WEAK symbol<void(netsrc_t, netadr_s*, const char*)> NET_OutOfBandPrint{ 0xBB4EE0 };
WEAK symbol<void(netsrc_t sock, int length, const void* data, const netadr_s* to)> NET_SendLoopPacket{ 0xBB50A0 }; WEAK symbol<void(netsrc_t sock, int length, const void* data, const netadr_s* to)> NET_SendLoopPacket{ 0xBB50A0 };