mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-04-21 21:52:06 +02:00
also allow setting the mod "score" in the mods.json
This commit is contained in:
parent
9822f4d766
commit
4121101400
1 changed files with 1 additions and 1 deletions
|
@ -823,7 +823,7 @@ static void parse_mods_folder(class Settings *settings_client, Settings *setting
|
||||||
newMod.workshopItemURL = mod.value().value("workshop_item_url", std::string(""));
|
newMod.workshopItemURL = mod.value().value("workshop_item_url", std::string(""));
|
||||||
newMod.votesUp = mod.value().value("upvotes", (uint32)1);
|
newMod.votesUp = mod.value().value("upvotes", (uint32)1);
|
||||||
newMod.votesDown = mod.value().value("downvotes", (uint32)0);
|
newMod.votesDown = mod.value().value("downvotes", (uint32)0);
|
||||||
newMod.score = 1.0f;
|
newMod.score = mod.value().value("score", 1.0f);
|
||||||
newMod.numChildren = mod.value().value("num_children", (uint32)0);
|
newMod.numChildren = mod.value().value("num_children", (uint32)0);
|
||||||
newMod.previewURL = mod.value().value("preview_url", std::string(""));
|
newMod.previewURL = mod.value().value("preview_url", std::string(""));
|
||||||
if (newMod.previewURL.empty()) {
|
if (newMod.previewURL.empty()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue