From 805c778f91193c1165692ad628c01adf9d9fe888 Mon Sep 17 00:00:00 2001 From: Josh Pruim Date: Mon, 16 May 2016 11:42:35 -0700 Subject: [PATCH] Added confirm to delete (#1698) --- rpcs3/Gui/GameViewer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rpcs3/Gui/GameViewer.cpp b/rpcs3/Gui/GameViewer.cpp index 2048ae93d9..283725b2f7 100644 --- a/rpcs3/Gui/GameViewer.cpp +++ b/rpcs3/Gui/GameViewer.cpp @@ -233,8 +233,11 @@ void GameViewer::RemoveGame(wxCommandEvent& event) { long i = GetFirstSelected(); if (i < 0) return; - - fs::remove_all(vfs::get(m_path) + this->GetItemText(i, 6).ToStdString()); + + if (wxMessageBox("Permanently delete game files?", "Confirm Delete", wxYES_NO | wxNO_DEFAULT) == wxYES) + { + fs::remove_all(vfs::get(m_path) + this->GetItemText(i, 6).ToStdString()); + } Refresh(); }