Reduce requirements for running homebrew (#1053)
* Reduce requirements for running homebrews This commit change the following behaviours: - TimeZoneBinary system archive isn't required until guest code call LoadTimeZoneRule. - Fonts system archives aren't requred until a "pl:u" IPC call is made. - Custom font support was dropped. - TimeZoneBinary missing message is now an error and not a warning. * Address comments
This commit is contained in:
parent
f9c859c8ba
commit
8f21db810d
3 changed files with 32 additions and 31 deletions
|
@ -23,6 +23,7 @@ namespace Ryujinx.HLE.FileSystem.Content
|
|||
private Dictionary<StorageId, LinkedList<LocationEntry>> _locationEntries;
|
||||
|
||||
private Dictionary<string, long> _sharedFontTitleDictionary;
|
||||
private Dictionary<long, string> _systemTitlesNameDictionary;
|
||||
private Dictionary<string, string> _sharedFontFilenameDictionary;
|
||||
|
||||
private SortedDictionary<(ulong titleId, NcaContentType type), string> _contentDictionary;
|
||||
|
@ -46,6 +47,16 @@ namespace Ryujinx.HLE.FileSystem.Content
|
|||
{ "FontNintendoExtended", 0x0100000000000810 }
|
||||
};
|
||||
|
||||
_systemTitlesNameDictionary = new Dictionary<long, string>()
|
||||
{
|
||||
{ 0x010000000000080E, "TimeZoneBinary" },
|
||||
{ 0x0100000000000810, "FontNintendoExtension" },
|
||||
{ 0x0100000000000811, "FontStandard" },
|
||||
{ 0x0100000000000812, "FontKorean" },
|
||||
{ 0x0100000000000813, "FontChineseTraditional" },
|
||||
{ 0x0100000000000814, "FontChineseSimple" },
|
||||
};
|
||||
|
||||
_sharedFontFilenameDictionary = new Dictionary<string, string>
|
||||
{
|
||||
{ "FontStandard", "nintendo_udsg-r_std_003.bfttf" },
|
||||
|
@ -344,6 +355,11 @@ namespace Ryujinx.HLE.FileSystem.Content
|
|||
return _sharedFontFilenameDictionary.TryGetValue(fontName, out filename);
|
||||
}
|
||||
|
||||
public bool TryGetSystemTitlesName(long titleId, out string name)
|
||||
{
|
||||
return _systemTitlesNameDictionary.TryGetValue(titleId, out name);
|
||||
}
|
||||
|
||||
private LocationEntry GetLocation(long titleId, NcaContentType contentType, StorageId storageId)
|
||||
{
|
||||
LinkedList<LocationEntry> locationList = _locationEntries[storageId];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue