fix(game): disable steam overlay #1

Closed
Wanted wants to merge 1 commits from Wanted:steam_overlay into master
2 changed files with 9 additions and 10 deletions
Showing only changes of commit 69654049b3 - Show all commits

View File

@ -72,14 +72,14 @@ namespace steam_proxy
}
}
[[nodiscard]] const utils::nt::library& get_overlay_module() const
{
return steam_overlay_module_;
}
// [[nodiscard]] const utils::nt::library& get_overlay_module() const
// {
// return steam_overlay_module_;
// }
private:
utils::nt::library steam_client_module_{};
utils::nt::library steam_overlay_module_{};
// utils::nt::library steam_overlay_module_{};
steam::interface client_engine_{};
steam::interface client_user_{};
@ -109,7 +109,7 @@ namespace steam_proxy
utils::nt::library::load(steam_path / "tier0_s64.dll");
utils::nt::library::load(steam_path / "vstdlib_s64.dll");
this->steam_overlay_module_ = utils::nt::library::load(steam_path / "gameoverlayrenderer64.dll");
// this->steam_overlay_module_ = utils::nt::library::load(steam_path / "gameoverlayrenderer64.dll");
this->steam_client_module_ = utils::nt::library::load(steam_path / "steamclient64.dll");
if (!this->steam_client_module_) return;

View File

@ -82,13 +82,14 @@ namespace steam
result_handlers_[result.call]->run(result.data, false, result.call);
}
for (const auto& callback : callback_list_)
// small chance of a crash when exiting lobby menus (INVALID_POINTER_READ)
/* for (const auto& callback : callback_list_)
{
if (callback && callback->get_i_callback() == result.type)
{
callback->run(result.data, false, 0);
}
}
}*/
if (result.data)
{
@ -165,7 +166,6 @@ namespace steam
return install_path.data();
}
bool SteamGameServer_Init()
{
return true;
@ -179,7 +179,6 @@ namespace steam
{
}
friends* SteamFriends()
{
static friends friends;