|
|
|
@ -459,6 +459,30 @@ void Config::ReadDataStorageValues() {
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString());
|
|
|
|
|
FileUtil::GetUserPath(
|
|
|
|
|
FileUtil::UserPath::LoadDir,
|
|
|
|
|
qt_config
|
|
|
|
|
->value("load_directory",
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::LoadDir)))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString());
|
|
|
|
|
FileUtil::GetUserPath(
|
|
|
|
|
FileUtil::UserPath::DumpDir,
|
|
|
|
|
qt_config
|
|
|
|
|
->value("dump_directory",
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::DumpDir)))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString());
|
|
|
|
|
FileUtil::GetUserPath(
|
|
|
|
|
FileUtil::UserPath::CacheDir,
|
|
|
|
|
qt_config
|
|
|
|
|
->value("cache_directory",
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::CacheDir)))
|
|
|
|
|
.toString()
|
|
|
|
|
.toStdString());
|
|
|
|
|
Settings::values.gamecard_inserted = ReadSetting("gamecard_inserted", false).toBool();
|
|
|
|
|
Settings::values.gamecard_current_game = ReadSetting("gamecard_current_game", false).toBool();
|
|
|
|
|
Settings::values.gamecard_path = ReadSetting("gamecard_path", "").toString().toStdString();
|
|
|
|
|
Settings::values.nand_total_size = static_cast<Settings::NANDTotalSize>(
|
|
|
|
|
ReadSetting(QStringLiteral("nand_total_size"), static_cast<u64>(Settings::NANDTotalSize::S29_1GB))
|
|
|
|
|
.toULongLong());
|
|
|
|
@ -886,6 +910,18 @@ void Config::SaveDataStorageValues() {
|
|
|
|
|
WriteSetting(QStringLiteral("sdmc_directory"),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)));
|
|
|
|
|
WriteSetting(QStringLiteral("load_directory"),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::LoadDir)),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::LoadDir)));
|
|
|
|
|
WriteSetting(QStringLiteral("dump_directory"),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::DumpDir)),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::DumpDir)));
|
|
|
|
|
WriteSetting(QStringLiteral("cache_directory"),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::CacheDir)),
|
|
|
|
|
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::CacheDir)));
|
|
|
|
|
WriteSetting(QStringLiteral("gamecard_inserted"), Settings::values.gamecard_inserted, false);
|
|
|
|
|
WriteSetting(QStringLiteral("gamecard_current_game"), Settings::values.gamecard_current_game, false);
|
|
|
|
|
WriteSetting(QStringLiteral("gamecard_path"), QString::fromStdString(Settings::values.gamecard_path), "");
|
|
|
|
|
WriteSetting(QStringLiteral("nand_total_size"), static_cast<u64>(Settings::values.nand_total_size),
|
|
|
|
|
static_cast<u64>(Settings::NANDTotalSize::S29_1GB));
|
|
|
|
|
WriteSetting(QStringLiteral("nand_user_size"), static_cast<u64>(Settings::values.nand_user_size),
|
|
|
|
|