aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-12-04 07:29:41 +0100
committercrueter <crueter@eden-emu.dev>2025-12-04 07:29:41 +0100
commitdfd042c809a061efa9b1690384e9e41d635294b0 (patch)
treedc4c521253ab5fcc6c284bad41d1577745f74b73 /src
parent16ca7851c5cded923d53047486c621b10ddeadfc (diff)
[qt] remove unused config migrator (#3130)
Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3130 Reviewed-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main_window.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/yuzu/main_window.cpp b/src/yuzu/main_window.cpp
index a301ae077e..d0ece67028 100644
--- a/src/yuzu/main_window.cpp
+++ b/src/yuzu/main_window.cpp
@@ -571,8 +571,6 @@ MainWindow::MainWindow(bool has_broken_vulkan)
connect(&update_input_timer, &QTimer::timeout, this, &MainWindow::UpdateInputDrivers);
update_input_timer.start();
- MigrateConfigFiles();
-
if (has_broken_vulkan) {
UISettings::values.has_broken_vulkan = true;
@@ -4122,33 +4120,6 @@ void MainWindow::OnCaptureScreenshot() {
render_window->CaptureScreenshot(filename);
}
-// TODO: Written 2020-10-01: Remove per-game config migration code when it is irrelevant
-void MainWindow::MigrateConfigFiles() {
- const auto config_dir_fs_path = Common::FS::GetEdenPath(Common::FS::EdenPath::ConfigDir);
- const QDir config_dir =
- QDir(QString::fromStdString(Common::FS::PathToUTF8String(config_dir_fs_path)));
- const QStringList config_dir_list = config_dir.entryList(QStringList(QStringLiteral("*.ini")));
-
- if (!Common::FS::CreateDirs(config_dir_fs_path / "custom")) {
- LOG_ERROR(Frontend, "Failed to create new config file directory");
- }
-
- for (auto it = config_dir_list.constBegin(); it != config_dir_list.constEnd(); ++it) {
- const auto filename = it->toStdString();
- if (filename.find_first_not_of("0123456789abcdefACBDEF", 0) < 16) {
- continue;
- }
- const auto origin = config_dir_fs_path / filename;
- const auto destination = config_dir_fs_path / "custom" / filename;
- LOG_INFO(Frontend, "Migrating config file from {} to {}", origin.string(),
- destination.string());
- if (!Common::FS::RenameFile(origin, destination)) {
- // Delete the old config file if one already exists in the new location.
- Common::FS::RemoveFile(origin);
- }
- }
-}
-
#ifdef ENABLE_UPDATE_CHECKER
void MainWindow::OnEmulatorUpdateAvailable() {
QString version_string = update_future.result();