mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #11038 from AdmiralCurtiss/steam-overlay-crash-fix-wgi
WGInput: Work around crash with Steam overlay.
This commit is contained in:
commit
710210365a
@ -544,8 +544,12 @@ private:
|
||||
{
|
||||
try
|
||||
{
|
||||
// Workaround for Steam. If Steam's GameOverlayRenderer64.dll is loaded, battery_info is null.
|
||||
auto battery_info = m_raw_controller.try_as<WGI::IGameControllerBatteryInfo>();
|
||||
if (!battery_info)
|
||||
return false;
|
||||
const winrt::Windows::Devices::Power::BatteryReport report =
|
||||
m_raw_controller.TryGetBatteryReport();
|
||||
battery_info.TryGetBatteryReport();
|
||||
if (!report)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user