From 1eb1a69096bd6b0bbb351af1419441014ad4a813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 20 Jul 2024 00:14:02 +0200 Subject: [PATCH] Zip Installation: Show the failed filename in the message --- Core/Util/GameManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/Util/GameManager.cpp b/Core/Util/GameManager.cpp index d52c3bae34..12d93c8639 100644 --- a/Core/Util/GameManager.cpp +++ b/Core/Util/GameManager.cpp @@ -540,7 +540,7 @@ bool GameManager::ExtractFile(struct zip *z, int file_index, const Path &outFile return true; } else { auto iz = GetI18NCategory(I18NCat::INSTALLZIP); - g_OSD.Show(OSDType::MESSAGE_ERROR, iz->T("Installation failed")); + g_OSD.Show(OSDType::MESSAGE_ERROR, iz->T("Installation failed"), outFilename.ToVisualString()); ERROR_LOG(Log::HLE, "Failed to open file for writing: %s", outFilename.c_str()); return false; } @@ -601,6 +601,8 @@ bool GameManager::InstallMemstickGame(struct zip *z, const Path &zipfile, const g_OSD.SetProgressBar("install", di->T("Installing..."), 0.0f, info.numFiles, (i + 1) * 0.1f, 0.1f); } + INFO_LOG(Log::HLE, "Created %d directories", (int)createdDirs.size()); + // Now, loop through again in a second pass, writing files. std::vector createdFiles; for (int i = 0; i < info.numFiles; i++) {