mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-30 14:25:36 +08:00
also allow setting the mod "score" in the mods.json
This commit is contained in:
parent
9822f4d766
commit
4121101400
@ -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.votesUp = mod.value().value("upvotes", (uint32)1);
|
||||
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.previewURL = mod.value().value("preview_url", std::string(""));
|
||||
if (newMod.previewURL.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user