aboutsummaryrefslogtreecommitdiff
path: root/include/aoutils.h
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2022-07-27 22:43:50 +0300
committerGitHub <noreply@github.com>2022-07-27 21:43:50 +0200
commitf40b3d162da708e77bea2836701b867060ce9f6d (patch)
tree40145b6fedce55623372326ac5933cde5f477ee5 /include/aoutils.h
parentb9e9e029778e3feb63bfab47157e46496cbcbafa (diff)
Code to support effects ini version 2 (#813)
* Code to support effects ini version 2 * Update theme commit * Get it to actually work properly * Rework effect loading code * Added auto-migration to new format * Reorganised code for improved readability and clarity * Add functional checks for operation to not run into missing file issues * Minor logic fix * Add debug message * Trim any empty items from the list * Add mandatory culling * See https://discord.com/channels/278529040497770496/323377366997008394/998661402669617233 * Reworked implementation * Resolve warning of temporary container allocation * Unbreak what I broke last commit * Also make it a QStringLiteral to cheat clazy. * Set default layer * Ignore that for realization, that one covers the screen. * Document migration regex * This should clarify the ambiguity of its functionality and reason why it exists. Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com> Co-authored-by: TrickyLeifa <date.epoch@gmail.com>
Diffstat (limited to 'include/aoutils.h')
-rw-r--r--include/aoutils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/aoutils.h b/include/aoutils.h
new file mode 100644
index 00000000..a4fd7bb8
--- /dev/null
+++ b/include/aoutils.h
@@ -0,0 +1,15 @@
+#ifndef AOUTILS_H
+#define AOUTILS_H
+
+#include <QSettings>
+
+namespace AOUtils
+{
+/**
+ * @brief Migrates the effects from the old format to version 2.
+ * @param QSettings object reference of the old effects.ini
+ */
+void migrateEffects(QSettings &p_fileName);
+};
+
+#endif // AOUTILS_H