Add GamedataInstall of osm

fix #14688
This commit is contained in:
sum2012 2022-09-17 21:23:15 +08:00 committed by Henrik Rydgård
parent 07658ef41a
commit e00a41702c

View file

@ -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");
}