|
|
|
@ -303,13 +303,15 @@ void Config::ReadDataStorageValues() {
|
|
|
|
|
|
|
|
|
|
Settings::values.use_virtual_sd = ReadSetting(QStringLiteral("use_virtual_sd"), true).toBool();
|
|
|
|
|
std::string nan_dir = FileUtil::GetUserPath(FileUtil::UserPath::NANDDir);
|
|
|
|
|
Settings::values.nand_dir = ReadSetting(QStringLiteral("nand_directory"), QString::fromStdString(nan_dir))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString();
|
|
|
|
|
Settings::values.nand_dir =
|
|
|
|
|
ReadSetting(QStringLiteral("nand_directory"), QString::fromStdString(nan_dir))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString();
|
|
|
|
|
std::string sdmc_dir = FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir);
|
|
|
|
|
Settings::values.sdmc_dir = ReadSetting(QStringLiteral("sdmc_directory"), QString::fromStdString(sdmc_dir))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString();
|
|
|
|
|
Settings::values.sdmc_dir =
|
|
|
|
|
ReadSetting(QStringLiteral("sdmc_directory"), QString::fromStdString(sdmc_dir))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString();
|
|
|
|
|
|
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
}
|
|
|
|
@ -861,9 +863,9 @@ void Config::SaveDataStorageValues() {
|
|
|
|
|
|
|
|
|
|
WriteSetting(QStringLiteral("use_virtual_sd"), Settings::values.use_virtual_sd, true);
|
|
|
|
|
WriteSetting(QStringLiteral("nand_directory"),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::NANDDir)));
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::NANDDir)));
|
|
|
|
|
WriteSetting(QStringLiteral("sdmc_directory"),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)));
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)));
|
|
|
|
|
|
|
|
|
|
qt_config->endGroup();
|
|
|
|
|
}
|
|
|
|
|