Merge pull request #4904 from JosJuice/oh0-usb-state-warning

Don't show savestate USB warning when not using USB passthrough
This commit is contained in:
Matthew Parlane 2017-02-13 14:36:26 +13:00 committed by GitHub
commit d1ade5de22

View File

@ -81,7 +81,7 @@ IPCCommandResult OH0::IOCtlV(const IOCtlVRequest& request)
void OH0::DoState(PointerWrap& p)
{
if (p.GetMode() == PointerWrap::MODE_READ)
if (p.GetMode() == PointerWrap::MODE_READ && !m_devices.empty())
{
Core::DisplayMessage("It is suggested that you unplug and replug all connected USB devices.",
5000);