2025-06-09 01:40:21 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2025-05-08 22:16:07 +00:00
|
|
|
// Copyright Citra Emulator Project / Azahar Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2025-05-11 23:58:25 +00:00
|
|
|
#include "migration_worker.h"
|
2025-05-08 22:16:07 +00:00
|
|
|
|
2025-08-31 14:56:25 -04:00
|
|
|
// TODO(crueter): Quick implementation
|
2025-05-08 22:16:07 +00:00
|
|
|
class UserDataMigrator {
|
|
|
|
public:
|
|
|
|
UserDataMigrator(QMainWindow* main_window);
|
|
|
|
|
2025-06-11 22:57:13 +00:00
|
|
|
bool migrated{false};
|
|
|
|
Emulator selected_emu;
|
|
|
|
|
2025-05-08 22:16:07 +00:00
|
|
|
private:
|
|
|
|
void ShowMigrationPrompt(QMainWindow* main_window);
|
|
|
|
void ShowMigrationCancelledMessage(QMainWindow* main_window);
|
2025-05-11 23:58:25 +00:00
|
|
|
void MigrateUserData(QMainWindow* main_window,
|
2025-06-11 22:57:13 +00:00
|
|
|
const Emulator selected_legacy_emu,
|
2025-05-11 23:58:25 +00:00
|
|
|
const bool clear_shader_cache,
|
|
|
|
const MigrationWorker::MigrationStrategy strategy);
|
2025-05-08 22:16:07 +00:00
|
|
|
};
|