feat: add a ModUtils::validate

moves the reading of mod files into `ModUtils` namespace

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2022-12-10 00:52:50 -07:00
parent 25e23e50ca
commit 878614ff68
9 changed files with 136 additions and 62 deletions

View File

@ -39,9 +39,10 @@ bool processFolder(DataPack& pack, ProcessingLevel level = ProcessingLevel::Full
bool processMCMeta(DataPack& pack, QByteArray&& raw_data);
/** Checks whether a file is valid as a resource pack or not. */
/** Checks whether a file is valid as a data pack or not. */
bool validate(QFileInfo file);
} // namespace ResourcePackUtils
} // namespace DataPackUtils
class LocalDataPackParseTask : public Task {
Q_OBJECT