|
|
|
@ -84,6 +84,11 @@ namespace Launcher
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
int getMaxNavMeshDbFileSizeMiB()
|
|
|
|
|
{
|
|
|
|
|
return static_cast<int>(Settings::Manager::getInt64("max navmeshdb file size", "Navigator") / (1024 * 1024));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -164,6 +169,8 @@ void Launcher::DataFilesPage::buildView()
|
|
|
|
|
|
|
|
|
|
bool Launcher::DataFilesPage::loadSettings()
|
|
|
|
|
{
|
|
|
|
|
ui.navMeshMaxSizeSpinBox->setValue(getMaxNavMeshDbFileSizeMiB());
|
|
|
|
|
|
|
|
|
|
QStringList profiles = mLauncherSettings.getContentLists();
|
|
|
|
|
QString currentProfile = mLauncherSettings.getCurrentContentListName();
|
|
|
|
|
|
|
|
|
@ -217,6 +224,9 @@ QStringList Launcher::DataFilesPage::filesInProfile(const QString& profileName,
|
|
|
|
|
|
|
|
|
|
void Launcher::DataFilesPage::saveSettings(const QString &profile)
|
|
|
|
|
{
|
|
|
|
|
if (const int value = ui.navMeshMaxSizeSpinBox->value(); value != getMaxNavMeshDbFileSizeMiB())
|
|
|
|
|
Settings::Manager::setInt64("max navmeshdb file size", "Navigator", static_cast<std::int64_t>(value) * 1024 * 1024);
|
|
|
|
|
|
|
|
|
|
QString profileName = profile;
|
|
|
|
|
|
|
|
|
|
if (profileName.isEmpty())
|
|
|
|
|