From c660dfcbd9ff427381b4d0688c73f0d6dc21ee7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 15 May 2017 19:20:29 +0200 Subject: [PATCH] DVDInterface: Fix a regression with changing discs We were not clearing s_disc_path_to_insert, which would cause disc changes to be only possible once. --- Source/Core/Core/HW/DVD/DVDInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/HW/DVD/DVDInterface.cpp b/Source/Core/Core/HW/DVD/DVDInterface.cpp index 11812f6f54..f8ce0e2afe 100644 --- a/Source/Core/Core/HW/DVD/DVDInterface.cpp +++ b/Source/Core/Core/HW/DVD/DVDInterface.cpp @@ -459,6 +459,8 @@ static void InsertDiscCallback(u64 userdata, s64 cyclesLate) SetDisc(std::move(new_volume)); else PanicAlertT("The disc that was about to be inserted couldn't be found."); + + s_disc_path_to_insert.clear(); } // Can only be called by the host thread