mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-22 21:09:52 +00:00
Android buildfix, warning fix
This commit is contained in:
parent
50baf6f8e3
commit
66993c8ff2
@ -237,7 +237,7 @@ void InstallZipScreen::update() {
|
||||
|
||||
if (existingSaveView_) {
|
||||
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(screenManager()->getDrawContext(), savedataToOverwrite_, GameInfoFlags::FILE_TYPE | GameInfoFlags::PARAM_SFO | GameInfoFlags::ICON | GameInfoFlags::SIZE);
|
||||
existingSaveView_->Update(ginfo.get());
|
||||
existingSaveView_->UpdateGame(ginfo.get());
|
||||
}
|
||||
UIDialogScreenWithBackground::update();
|
||||
}
|
||||
|
@ -305,7 +305,7 @@ UI::EventReturn MemStickScreen::SetFolderManually(UI::EventParams ¶ms) {
|
||||
// The old way, from before scoped storage. Write in the full path.
|
||||
#if PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(SWITCH)
|
||||
auto sy = GetI18NCategory(I18NCat::SYSTEM);
|
||||
System_InputBoxGetString(GetRequesterToken(), sy->T("Memory Stick Folder"), g_Config.memStickDirectory.ToString(), [&](const std::string &value, int) {
|
||||
System_InputBoxGetString(GetRequesterToken(), sy->T("Memory Stick Folder"), g_Config.memStickDirectory.ToString(), false, [&](const std::string &value, int) {
|
||||
auto sy = GetI18NCategory(I18NCat::SYSTEM);
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
|
||||
|
@ -92,7 +92,7 @@ SavedataView::SavedataView(UIContext &dc, const Path &savePath, IdentifiedFileTy
|
||||
}
|
||||
}
|
||||
|
||||
void SavedataView::Update(GameInfo *ginfo) {
|
||||
void SavedataView::UpdateGame(GameInfo *ginfo) {
|
||||
if (!ginfo->Ready(GameInfoFlags::PARAM_SFO | GameInfoFlags::SIZE)) {
|
||||
return;
|
||||
}
|
||||
@ -123,7 +123,7 @@ SavedataView::SavedataView(UIContext &dc, GameInfo *ginfo, IdentifiedFileType ty
|
||||
showIcon,
|
||||
layoutParams) {
|
||||
if (ginfo) {
|
||||
Update(ginfo);
|
||||
UpdateGame(ginfo);
|
||||
}
|
||||
}
|
||||
|
||||
@ -140,7 +140,7 @@ public:
|
||||
return;
|
||||
}
|
||||
if (savedataView_) {
|
||||
savedataView_->Update(ginfo.get());
|
||||
savedataView_->UpdateGame(ginfo.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -152,7 +152,7 @@ public:
|
||||
SavedataView(UIContext &dc, GameInfo *ginfo, IdentifiedFileType type, bool showIcon, UI::LayoutParams *layoutParams = nullptr);
|
||||
SavedataView(UIContext &dc, const Path &savePath, IdentifiedFileType type, std::string_view title, std::string_view savedataTitle, std::string_view savedataDetail, std::string_view fileSize, std::string_view mtime, bool showIcon, UI::LayoutParams *layoutParams = nullptr);
|
||||
|
||||
void Update(GameInfo *ginfo);
|
||||
void UpdateGame(GameInfo *ginfo);
|
||||
private:
|
||||
UI::TextView *savedataTitle_ = nullptr;
|
||||
UI::TextView *detail_ = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user