mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-04 00:38:51 +00:00
Add nightly/prerelease warnings
This commit is contained in:
@@ -506,6 +506,26 @@ std::string Store::GetFileSizes(int index, const std::string &entry) const {
|
||||
return "";
|
||||
}
|
||||
|
||||
/*
|
||||
Get file script type for each download entry.
|
||||
|
||||
int index: The index.
|
||||
const std::string &entry: The entry name.
|
||||
*/
|
||||
std::string Store::GetFileTypes(int index, const std::string &entry) const {
|
||||
if (!this->valid) return "";
|
||||
|
||||
if (index > (int)this->storeJson["storeContent"].size() - 1) return "";
|
||||
|
||||
if (this->storeJson["storeContent"][index].contains(entry) && this->storeJson["storeContent"][index][entry].type() == nlohmann::json::value_t::object) {
|
||||
if (this->storeJson["storeContent"][index][entry].contains("type") && this->storeJson["storeContent"][index][entry]["type"].is_string()) {
|
||||
return this->storeJson["storeContent"][index][entry]["type"];
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
/*
|
||||
Get Screenshot URL list.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user