feat: add parser for current impl of packwiz mod.toml

This reads a local mod.toml file and extract information from it. Using
C libs in C++ is kind of a pain tho :(
This commit is contained in:
flow
2022-04-13 21:25:08 -03:00
committed by flow
parent eaa5ce4467
commit 8e4438b375
3 changed files with 96 additions and 1 deletions

View File

@ -39,4 +39,9 @@ class Packwiz {
* TODO: Ask the user if they want to override, and delete the old mod's files, or keep the old one.
* */
static void updateModIndex(QDir& index_dir, Mod& mod);
/* Gets the metadata for a mod with a particular name.
* If the mod doesn't have a metadata, it simply returns an empty Mod object.
* */
static auto getIndexForMod(QDir& index_dir, QString mod_name) -> Mod;
};