From 23f9ccf59b929164f01b0df6579af64aaa8d4d62 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 6 Jun 2015 21:29:43 +0200 Subject: [PATCH] DVDInterface: Fix newFileName variable not being printed correctly --- Source/Core/Core/HW/DVDInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HW/DVDInterface.cpp b/Source/Core/Core/HW/DVDInterface.cpp index 3a6ad579d0..1b1900708d 100644 --- a/Source/Core/Core/HW/DVDInterface.cpp +++ b/Source/Core/Core/HW/DVDInterface.cpp @@ -532,8 +532,8 @@ void ChangeDisc(const std::string& newFileName) auto sizeofpath = fileName.find_last_of("/\\") + 1; if (fileName.substr(sizeofpath).length() > 40) { - PanicAlertT("The disc change to \"newFileName\" could not be saved in the .dtm.\n" - "The filename of the disc image must not be longer than 40 characters."); + PanicAlertT("The disc change to \"%s\" could not be saved in the .dtm file.\n" + "The filename of the disc image must not be longer than 40 characters.", newFileName.c_str()); } Movie::g_discChange = fileName.substr(sizeofpath); }