From 90cddfd0391c36196e98db59972334db8ba6273f Mon Sep 17 00:00:00 2001 From: Ghabry Date: Sun, 3 Mar 2019 19:52:54 +0100 Subject: [PATCH] Show the requested RTP name and the japanese name in the warning message --- src/filefinder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filefinder.cpp b/src/filefinder.cpp index 59efbecd2a..190dd3b1d9 100644 --- a/src/filefinder.cpp +++ b/src/filefinder.cpp @@ -233,10 +233,10 @@ namespace { } if (!disable_rtp_warnings && !rtp_name.empty()) { - std::string msg = "Cannot find: %s/%s. " + std::string(search_paths.empty() ? + std::string msg = "Cannot find: %s/%s (%s). " + std::string(search_paths.empty() ? "Install RTP %d to resolve this warning." : "RTP %d was probably not installed correctly."); - Output::Warning(msg.c_str(), dir.c_str(), rtp_name.c_str(), Player::EngineVersion()); + Output::Warning(msg.c_str(), dir.c_str(), name.c_str(), rtp_name.c_str(), Player::EngineVersion()); } else { // not an RTP asset or RTP support was disabled Output::Debug("Cannot find: %s/%s", dir.c_str(), name.c_str());