dolphin/Source/Core/Core/WiiRoot.h

43 lines
916 B
C++

// Copyright 2016 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <optional>
#include <vector>
#include "DiscIO/RiivolutionPatcher.h"
class BootSessionData;
namespace IOS::HLE::FS
{
struct NandRedirect;
}
namespace Core
{
enum class RestoreReason
{
EmulationEnd,
CrashRecovery,
};
void InitializeWiiRoot(bool use_temporary);
void ShutdownWiiRoot();
bool WiiRootIsInitialized();
bool WiiRootIsTemporary();
void BackupWiiSettings();
void RestoreWiiSettings(RestoreReason reason);
// Initialize or clean up the filesystem contents.
void InitializeWiiFileSystemContents(
std::optional<DiscIO::Riivolution::SavegameRedirect> save_redirect,
const BootSessionData& boot_session_data);
void CleanUpWiiFileSystemContents(const BootSessionData& boot_session_data);
const std::vector<IOS::HLE::FS::NandRedirect>& GetActiveNandRedirects();
} // namespace Core