From e00a41702ce5522d15793e5f36aca6bfb650c42f Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sat, 17 Sep 2022 21:23:15 +0800 Subject: [PATCH] Add GamedataInstall of osm fix #14688 --- Core/Dialog/PSPGamedataInstallDialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Core/Dialog/PSPGamedataInstallDialog.cpp b/Core/Dialog/PSPGamedataInstallDialog.cpp index 0f43cfbc4d..1c21aef520 100644 --- a/Core/Dialog/PSPGamedataInstallDialog.cpp +++ b/Core/Dialog/PSPGamedataInstallDialog.cpp @@ -25,6 +25,8 @@ #include "Core/System.h" #include "Core/FileSystems/MetaFileSystem.h" #include "Core/Dialog/PSPGamedataInstallDialog.h" +#include "Common/Data/Text/I18n.h" +#include "UI/OnScreenDisplay.h" std::string saveBasePath = "ms0:/PSP/SAVEDATA/"; @@ -270,7 +272,9 @@ void PSPGamedataInstallDialog::UpdateProgress() { progressValue = (int)((allReadSize * 100) / allFilesSize); else progressValue = 100; - + auto di = GetI18NCategory("Dialog"); + std::string temp = di->T("Save"); + osm.Show(temp + " " + std::to_string(progressValue) + " / 100", 0.5f); param->progress = progressValue; param.NotifyWrite("DialogResult"); }