HomeWildfire Games

Mod data parsing rework

Description

Mod data parsing rework

Parses mod.json data not only in temporary JS values, but in a proper C++ struct.
This will ultimately make it more convenient to pass more than just the version to JS in D3968, and it enforces the schema a bit more.

Differential Revision: https://code.wildfiregames.com/D3988

Event Timeline

Silier raised a concern with this commit.Aug 9 2021, 8:47 PM
Silier added a subscriber: Silier.

This broke showing installed pyromod in available mods until next start

This commit now has outstanding concerns.Aug 9 2021, 8:47 PM

Think I failed to notice that because that's always been broken on mac OS :/

Silier added inline comments.Aug 10 2021, 5:48 PM
/ps/trunk/source/ps/Mod.cpp
202

I am a bit puzzled, what does this make here?
This is called everytime on Enabling mods, where is m_Availablemods cleared then?
Should not this be elsewhere?

Silier resigned from this commit.Aug 27 2021, 9:20 PM
This commit no longer requires audit.Aug 27 2021, 9:20 PM
Silier removed an auditor: Silier.Aug 27 2021, 9:20 PM
Silier raised a concern with this commit.Oct 28 2021, 9:32 PM
Silier added inline comments.
/ps/trunk/source/ps/Mod.cpp
232

broken, dependencies need to have path as key

This commit now has outstanding concerns.Oct 28 2021, 9:32 PM
Silier resigned from this commit.Oct 28 2021, 10:34 PM
This commit no longer requires audit.Oct 28 2021, 10:34 PM
Silier removed an auditor: Silier.Oct 28 2021, 10:35 PM