From 8a6b8f7b53eab05fcf1d25a90b5bea120d644b27 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 12 Feb 2017 18:16:26 +0100 Subject: [PATCH] Don't show savestate USB warning when not using USB passthrough --- Source/Core/Core/IOS/USB/OH0/OH0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/USB/OH0/OH0.cpp b/Source/Core/Core/IOS/USB/OH0/OH0.cpp index 08461f9f99..4a19e5cc21 100644 --- a/Source/Core/Core/IOS/USB/OH0/OH0.cpp +++ b/Source/Core/Core/IOS/USB/OH0/OH0.cpp @@ -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);