From f40b3d162da708e77bea2836701b867060ce9f6d Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Wed, 27 Jul 2022 22:43:50 +0300 Subject: 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 --- include/aoutils.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/aoutils.h (limited to 'include') diff --git a/include/aoutils.h b/include/aoutils.h new file mode 100644 index 0000000..a4fd7bb --- /dev/null +++ b/include/aoutils.h @@ -0,0 +1,15 @@ +#ifndef AOUTILS_H +#define AOUTILS_H + +#include + +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 -- cgit