Skip to content

Commit

Permalink
Merge pull request #2542 from JosJuice/how-to-not-print-variables
Browse files Browse the repository at this point in the history
DVDInterface: Fix newFileName variable not being printed correctly
  • Loading branch information
lioncash committed Jun 6, 2015
2 parents d3e47df + 23f9ccf commit 8707d68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/HW/DVDInterface.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8707d68

Please sign in to comment.