mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Fix overlay crash in games that load then unload steam api dll.
This commit is contained in:
parent
e0726f2e9d
commit
7c419e0afe
5 changed files with 40 additions and 2 deletions
|
|
@ -200,6 +200,17 @@ void Steam_Overlay::SetupOverlay()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void Steam_Overlay::UnSetupOverlay()
|
||||
{
|
||||
stop_renderer_detector();
|
||||
if (!Ready() && future_renderer.valid()) {
|
||||
if (future_renderer.wait_for(std::chrono::milliseconds{500}) == std::future_status::ready) {
|
||||
future_renderer.get();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Steam_Overlay::HookReady(bool ready)
|
||||
{
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue