diff --git a/src/client/component/discord.cpp b/src/client/component/discord.cpp index 6ab049ce..42f6c846 100644 --- a/src/client/component/discord.cpp +++ b/src/client/component/discord.cpp @@ -193,8 +193,8 @@ namespace discord discord_presence.startTimestamp = saved_time; //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 - if (!game_initialized || game::Com_FrontEndScene_IsActive()) + //const auto game_initialized = false; // TODO: figure out a way to do this + if (/*!game_initialized || */game::Com_FrontEndScene_IsActive()) { update_discord_frontend(); } diff --git a/src/client/component/server_list.cpp b/src/client/component/server_list.cpp index e4883705..f6eb466b 100644 --- a/src/client/component/server_list.cpp +++ b/src/client/component/server_list.cpp @@ -235,12 +235,7 @@ namespace server_list bool is_server_list_open() { -#ifdef DEBUG - return false; -#else - // TODO - return game::Menu_IsMenuOpenAndVisible(0, "menu_systemlink_join"); -#endif + return game::Menu_IsMenuOpenAndVisible(0, "SystemLinkMenu"); } bool is_scrolling_disabled() diff --git a/src/client/game/symbols.hpp b/src/client/game/symbols.hpp index 36ca040a..7fa60b2c 100644 --- a/src/client/game/symbols.hpp +++ b/src/client/game/symbols.hpp @@ -161,6 +161,8 @@ namespace game WEAK symbol Material_RegisterHandle{ 0xE11CE0 }; + WEAK symbol Menu_IsMenuOpenAndVisible{ 0x61CA70 }; + WEAK symbol NetadrToSockadr{ 0xCE6B90 }; WEAK symbol NET_OutOfBandPrint{ 0xBB4EE0 }; WEAK symbol NET_SendLoopPacket{ 0xBB50A0 };