mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-18 06:10:35 +00:00
89199f4d27
- add `#pragma once` to remainder files - "correcter" defines (ANDROID), see https://groups.google.com/g/android-ndk/c/cf9_f1SLXls - extra miscelly fixups Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4039 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev>
65 lines
1.8 KiB
C++
65 lines
1.8 KiB
C++
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include "common/common_types.h"
|
|
#include "frontend_common/data_manager.h"
|
|
#include "frontend_common/firmware_manager.h"
|
|
#include "qt_common/qt_string_lookup.h"
|
|
|
|
namespace QtCommon::Content {
|
|
|
|
//
|
|
bool CheckGameFirmware(u64 program_id);
|
|
|
|
enum class FirmwareInstallResult {
|
|
Success,
|
|
NoNCAs,
|
|
FailedDelete,
|
|
FailedCopy,
|
|
FailedCorrupted,
|
|
};
|
|
|
|
inline const QString GetFirmwareInstallResultString(FirmwareInstallResult result) {
|
|
return LOOKUP_ENUM(result, FwInstallSuccess);
|
|
}
|
|
|
|
/**
|
|
* \brief Get a string representation of a result from InstallKeys.
|
|
* \param result The result code.
|
|
* \return A string representation of the passed result code.
|
|
*/
|
|
inline const QString GetKeyInstallResultString(FirmwareManager::KeyInstallResult result) {
|
|
return LOOKUP_ENUM(result, KeyInstallSuccess);
|
|
}
|
|
|
|
void InstallFirmware(const QString& location, bool recursive);
|
|
QString UnzipFirmwareToTmp(const QString& location);
|
|
|
|
bool CheckKeys();
|
|
void InstallFirmware();
|
|
void InstallFirmwareZip();
|
|
|
|
// Keys //
|
|
void InstallKeys();
|
|
|
|
// Content //
|
|
void VerifyGameContents(const std::string& game_path);
|
|
void VerifyInstalledContents();
|
|
|
|
void ClearDataDir(FrontendCommon::DataManager::DataDir dir, const std::string& user_id = "");
|
|
void ExportDataDir(FrontendCommon::DataManager::DataDir dir, const std::string& user_id = "",
|
|
const QString& name = QStringLiteral("export"),
|
|
std::function<void()> callback = {});
|
|
void ImportDataDir(FrontendCommon::DataManager::DataDir dir, const std::string& user_id = "",
|
|
std::function<void()> callback = {});
|
|
|
|
// Loader //
|
|
void configureFilesystemProvider(const std::string& filepath);
|
|
|
|
// Profiles //
|
|
void FixProfiles();
|
|
} // namespace QtCommon::Content
|