config: Drop passive migration code
Removed in favor of actively moving all config files at once.
This commit is contained in:
@@ -28,17 +28,6 @@ Config::Config(u64 title_id, bool is_global) {
|
||||
qt_config_loc = fmt::format("{}custom" DIR_SEP "{:016X}.ini",
|
||||
FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir), title_id);
|
||||
FileUtil::CreateFullPath(qt_config_loc);
|
||||
|
||||
// TODO: Remove migration code sometime mid-2021
|
||||
std::string old_filename = fmt::format(
|
||||
"{}{:016X}.ini", FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir), title_id);
|
||||
if (FileUtil::Exists(old_filename)) {
|
||||
FileUtil::Copy(old_filename, qt_config_loc);
|
||||
if (FileUtil::Exists(qt_config_loc)) {
|
||||
FileUtil::Delete(old_filename);
|
||||
}
|
||||
}
|
||||
|
||||
qt_config =
|
||||
std::make_unique<QSettings>(QString::fromStdString(qt_config_loc), QSettings::IniFormat);
|
||||
global = is_global;
|
||||
|
||||
Reference in New Issue
Block a user