mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-05-04 23:36:36 +08:00
Only display CIA info if successfully obtained.
This commit is contained in:
parent
558ace6bc5
commit
854766b04d
@ -287,8 +287,7 @@ void uiGetDirContents(std::vector<SelectableElement> &elements, const std::strin
|
|||||||
std::string extension = fs::extension(path);
|
std::string extension = fs::extension(path);
|
||||||
if(extension.compare("cia") == 0) {
|
if(extension.compare("cia") == 0) {
|
||||||
app::App app;
|
app::App app;
|
||||||
app::ciaInfo(&app, path, fs::SD);
|
if(app::ciaInfo(&app, path, fs::SD) == app::APP_SUCCESS) {
|
||||||
|
|
||||||
std::stringstream titleId;
|
std::stringstream titleId;
|
||||||
titleId << "0x" << std::setfill('0') << std::setw(16) << std::hex << app.titleId;
|
titleId << "0x" << std::setfill('0') << std::setw(16) << std::hex << app.titleId;
|
||||||
|
|
||||||
@ -309,6 +308,7 @@ void uiGetDirContents(std::vector<SelectableElement> &elements, const std::strin
|
|||||||
info.push_back("Category: " + app::categoryString(app.category));
|
info.push_back("Category: " + app::categoryString(app.category));
|
||||||
info.push_back("Version: " + version.str());
|
info.push_back("Version: " + version.str());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
elements.push_back({path, name, info});
|
elements.push_back({path, name, info});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user