Rework system title handling with up-to-date title list and region detection support. (#6356)
This commit is contained in:
parent
b5d6f645bd
commit
5346ca27b5
12 changed files with 1292 additions and 806 deletions
28
src/core/system_titles.h
Normal file
28
src/core/system_titles.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Copyright 2023 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace Core {
|
||||
|
||||
constexpr u32 NUM_SYSTEM_TITLE_REGIONS = 7;
|
||||
|
||||
enum SystemTitleSet : u32 { Minimal = 1 << 0, Old3ds = 1 << 1, New3ds = 1 << 2 };
|
||||
|
||||
/// Returns a list of firmware title IDs for a specific set and region.
|
||||
std::vector<u64> GetSystemTitleIds(SystemTitleSet set, u32 region);
|
||||
|
||||
/// Gets the home menu title ID for a specific region.
|
||||
u64 GetHomeMenuTitleId(u32 region);
|
||||
|
||||
/// Gets the home menu NCCH path for a specific region.
|
||||
std::string GetHomeMenuNcchPath(u32 region);
|
||||
|
||||
/// Returns the region of a system title, if it can be determined.
|
||||
std::optional<u32> GetSystemTitleRegion(u64 title_id);
|
||||
|
||||
} // namespace Core
|
Loading…
Add table
Add a link
Reference in a new issue