Added the new ftb settings path

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-04-07 13:48:34 +03:00
parent 27e76d0dcb
commit 1c3c9d2457
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -44,7 +44,9 @@ QString getFTBRoot()
QString getDynamicPath()
{
auto settingsPath = FS::PathCombine(getFTBRoot(), "bin", "settings.json");
auto settingsPath = FS::PathCombine(getFTBRoot(), "storage", "settings.json");
if (!QFileInfo::exists(settingsPath))
settingsPath = FS::PathCombine(getFTBRoot(), "bin", "settings.json");
if (!QFileInfo::exists(settingsPath)) {
qWarning() << "The ftb app setings doesn't exist.";
return {};