summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-06-06 21:29:43 +0200
committerJosJuice <josjuice@gmail.com>2015-06-06 21:29:43 +0200
commit23f9ccf59b929164f01b0df6579af64aaa8d4d62 (patch)
treef4096767a0563f4693b7fa18f6c43f5292698bc5 /Source/Core
parent95d682dfd5f0fbbe27f5d6a38da98f0535fa6845 (diff)
DVDInterface: Fix newFileName variable not being printed correctly
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/DVDInterface.cpp4
1 files 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);
}