mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
c22d1d68ab
It's used by both the GUI to do things like install WADs and check up on the system menu, in which case the global root should be used, and by /dev/es, in which case the local one should. The latter isn't *terribly* useful today, since no contents will ever be installed in temporary roots (although it's still relevant for data directories), but converting the whole thing makes sense because then it will Just Work once the entire NAND is synced. Because it would have been a bit of work to split it up (but I can if desired), this commit also contains some basic cleanup of NANDContentLoader: (1) The useless interface class INANDContentLoader is removed and the methods are changed to just return CNANDContentLoader (the only implementation); (2) CNANDContentManager is changed to use unique_ptr and cleaned up a bit.
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
static const u64 TITLEID_SYSMENU = 0x0000000100000002;
|
|
static const std::string TITLEID_SYSMENU_STRING = "0000000100000002";
|
|
|
|
namespace Common
|
|
{
|
|
typedef std::pair<char, std::string> replace_t;
|
|
typedef std::vector<replace_t> replace_v;
|
|
|
|
void InitializeWiiRoot(bool use_temporary);
|
|
void ShutdownWiiRoot();
|
|
|
|
enum FromWhichRoot
|
|
{
|
|
FROM_CONFIGURED_ROOT, // not related to currently running game - use D_WIIROOT_IDX
|
|
FROM_SESSION_ROOT, // request from currently running game - use D_SESSION_WIIROOT_IDX
|
|
};
|
|
|
|
std::string GetTicketFileName(u64 _titleID, FromWhichRoot from);
|
|
std::string GetTMDFileName(u64 _titleID, FromWhichRoot from);
|
|
std::string GetTitleDataPath(u64 _titleID, FromWhichRoot from);
|
|
std::string GetTitleContentPath(u64 _titleID, FromWhichRoot from);
|
|
bool CheckTitleTMD(u64 _titleID, FromWhichRoot from);
|
|
bool CheckTitleTIK(u64 _titleID, FromWhichRoot from);
|
|
void ReadReplacements(replace_v& replacements);
|
|
}
|