aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/helpers/OverrideUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/modplatform/helpers/OverrideUtils.h')
-rw-r--r--launcher/modplatform/helpers/OverrideUtils.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/launcher/modplatform/helpers/OverrideUtils.h b/launcher/modplatform/helpers/OverrideUtils.h
new file mode 100644
index 00000000..536261a2
--- /dev/null
+++ b/launcher/modplatform/helpers/OverrideUtils.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <QString>
+
+namespace Override {
+
+/** This creates a file in `parent_folder` that holds information about which
+ * overrides are in `override_path`.
+ *
+ * If there's already an existing such file, it will be ovewritten.
+ */
+void createOverrides(const QString& name, const QString& parent_folder, const QString& override_path);
+
+/** This reads an existing overrides archive, returning a list of overrides.
+ *
+ * If there's no such file in `parent_folder`, it will return an empty list.
+ */
+QStringList readOverrides(const QString& name, const QString& parent_folder);
+
+} // namespace Override