diff options
author | flow <flowlnlnln@gmail.com> | 2022-10-18 12:00:47 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-10-18 12:22:42 -0300 |
commit | 32cdfb871c5cb0008cd34b5d5c1ff133920382d9 (patch) | |
tree | 343368f2abff57bfdb3180591255afbb825ac508 /launcher/Application.cpp | |
parent | 801e7da5ee07521b81f405dae1af5097be45fccf (diff) | |
download | PrismLauncher-32cdfb871c5cb0008cd34b5d5c1ff133920382d9.tar.gz PrismLauncher-32cdfb871c5cb0008cd34b5d5c1ff133920382d9.tar.bz2 PrismLauncher-32cdfb871c5cb0008cd34b5d5c1ff133920382d9.zip |
fix: add fallback for polymc.cfg
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r-- | launcher/Application.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp index e94e96a9..b85729f0 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -488,7 +488,8 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv) // Initialize application settings { - m_settings.reset(new INISettingsObject(BuildConfig.LAUNCHER_CONFIGFILE, this)); + // Provide a fallback for migration from PolyMC + m_settings.reset(new INISettingsObject({ BuildConfig.LAUNCHER_CONFIGFILE, "polymc.cfg" }, this)); // Updates // Multiple channels are separated by spaces m_settings->registerSetting("UpdateChannel", BuildConfig.VERSION_CHANNEL); |