mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 00:03:37 +01:00
Fix bug in homebrew store with files with "." in their names.
Also, move the homebrew store button to the top bar instead of the bottom of the list.
This commit is contained in:
1 parent
eb0f0d39ba
commit
bd15ae4f75
4 files changed
+8
-19
No files matched your search
+2
-13
@@ -304,11 +304,8 @@ void ProductView::Update() {
|
||||
|
||||
std::string ProductView::DownloadURL() {
|
||||
if (entry_.downloadURL.empty()) {
|
||||
// Construct the URL, easy to predict from our server
|
||||
std::string shortName = entry_.file;
|
||||
if (shortName.find('.') == std::string::npos)
|
||||
shortName += ".zip";
|
||||
return storeBaseUrl + "files/" + shortName;
|
||||
// Construct the URL.
|
||||
return storeBaseUrl + "files/" + entry_.file + ".zip";
|
||||
} else {
|
||||
// Use the provided URL, for external hosting.
|
||||
return entry_.downloadURL;
|
||||
@@ -559,14 +556,6 @@ UI::EventReturn StoreScreen::OnRetry(UI::EventParams &e) {
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
||||
std::string StoreScreen::GetStoreJsonURL(std::string storePath) const {
|
||||
std::string path = storeBaseUrl + storePath;
|
||||
if (*path.rbegin() != '/')
|
||||
path += '/';
|
||||
path += "index.json";
|
||||
return path;
|
||||
}
|
||||
|
||||
std::string StoreScreen::GetTranslatedString(const json::JsonGet json, std::string key, const char *fallback) const {
|
||||
json::JsonGet dict = json.getDict("en_US");
|
||||
if (dict && json.hasChild(lang_.c_str(), JSON_OBJECT)) {
|
||||
|
||||
Reference in new issue
Block a user