diff options
author | flow <thiagodonato300@gmail.com> | 2022-04-13 21:25:08 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-05-23 14:42:27 -0300 |
commit | 8e4438b375ee904aa8225b569899355372e5987c (patch) | |
tree | 9ac32f968d9b05591e6fe8140fe8912a1f3f6132 /launcher/modplatform/packwiz/Packwiz.h | |
parent | eaa5ce446765ef4305a1462d68e278b0797966ee (diff) | |
download | PrismLauncher-8e4438b375ee904aa8225b569899355372e5987c.tar.gz PrismLauncher-8e4438b375ee904aa8225b569899355372e5987c.tar.bz2 PrismLauncher-8e4438b375ee904aa8225b569899355372e5987c.zip |
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 :(
Diffstat (limited to 'launcher/modplatform/packwiz/Packwiz.h')
-rw-r--r-- | launcher/modplatform/packwiz/Packwiz.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/launcher/modplatform/packwiz/Packwiz.h b/launcher/modplatform/packwiz/Packwiz.h index 9c90f7de..08edaab9 100644 --- a/launcher/modplatform/packwiz/Packwiz.h +++ b/launcher/modplatform/packwiz/Packwiz.h @@ -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; }; |