From: tobtoht Date: Thu, 19 Aug 2021 17:54:31 +0000 (+0200) Subject: Allow .portable.txt for portable mode X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=c15426fee40d20cd0988aca9a0b0ad4c93f059f1;p=gamesguru%2Ffeather.git Allow .portable.txt for portable mode --- diff --git a/src/utils/Utils.cpp b/src/utils/Utils.cpp index 6bbe9580..f754c0fb 100644 --- a/src/utils/Utils.cpp +++ b/src/utils/Utils.cpp @@ -100,7 +100,7 @@ bool dirExists(const QString &path) { QString defaultWalletDir() { QString portablePath = QCoreApplication::applicationDirPath().append("/%1"); - if (QFile::exists(portablePath.arg(".portable"))) { + if (QFile::exists(portablePath.arg(".portable")) || QFile::exists(portablePath.arg(".portable.txt"))) { return portablePath.arg("feather_data/wallets"); } diff --git a/src/utils/config.cpp b/src/utils/config.cpp index 2e434ea5..51f17ad2 100644 --- a/src/utils/config.cpp +++ b/src/utils/config.cpp @@ -158,7 +158,7 @@ Config::Config(QObject* parent) QDir Config::defaultConfigDir() { QString portablePath = QCoreApplication::applicationDirPath().append("/%1"); - if (QFile::exists(portablePath.arg(".portable"))) { + if (QFile::exists(portablePath.arg(".portable")) || QFile::exists(portablePath.arg(".portable.txt"))) { return portablePath.arg("feather_data"); }