|
@@ -23,6 +23,7 @@ namespace Ryujinx.HLE.FileSystem.Content
|
|
|
private Dictionary<StorageId, LinkedList<LocationEntry>> _locationEntries;
|
|
private Dictionary<StorageId, LinkedList<LocationEntry>> _locationEntries;
|
|
|
|
|
|
|
|
private Dictionary<string, long> _sharedFontTitleDictionary;
|
|
private Dictionary<string, long> _sharedFontTitleDictionary;
|
|
|
|
|
+ private Dictionary<long, string> _systemTitlesNameDictionary;
|
|
|
private Dictionary<string, string> _sharedFontFilenameDictionary;
|
|
private Dictionary<string, string> _sharedFontFilenameDictionary;
|
|
|
|
|
|
|
|
private SortedDictionary<(ulong titleId, NcaContentType type), string> _contentDictionary;
|
|
private SortedDictionary<(ulong titleId, NcaContentType type), string> _contentDictionary;
|
|
@@ -46,6 +47,16 @@ namespace Ryujinx.HLE.FileSystem.Content
|
|
|
{ "FontNintendoExtended", 0x0100000000000810 }
|
|
{ "FontNintendoExtended", 0x0100000000000810 }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ _systemTitlesNameDictionary = new Dictionary<long, string>()
|
|
|
|
|
+ {
|
|
|
|
|
+ { 0x010000000000080E, "TimeZoneBinary" },
|
|
|
|
|
+ { 0x0100000000000810, "FontNintendoExtension" },
|
|
|
|
|
+ { 0x0100000000000811, "FontStandard" },
|
|
|
|
|
+ { 0x0100000000000812, "FontKorean" },
|
|
|
|
|
+ { 0x0100000000000813, "FontChineseTraditional" },
|
|
|
|
|
+ { 0x0100000000000814, "FontChineseSimple" },
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
_sharedFontFilenameDictionary = new Dictionary<string, string>
|
|
_sharedFontFilenameDictionary = new Dictionary<string, string>
|
|
|
{
|
|
{
|
|
|
{ "FontStandard", "nintendo_udsg-r_std_003.bfttf" },
|
|
{ "FontStandard", "nintendo_udsg-r_std_003.bfttf" },
|
|
@@ -344,6 +355,11 @@ namespace Ryujinx.HLE.FileSystem.Content
|
|
|
return _sharedFontFilenameDictionary.TryGetValue(fontName, out filename);
|
|
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)
|
|
private LocationEntry GetLocation(long titleId, NcaContentType contentType, StorageId storageId)
|
|
|
{
|
|
{
|
|
|
LinkedList<LocationEntry> locationList = _locationEntries[storageId];
|
|
LinkedList<LocationEntry> locationList = _locationEntries[storageId];
|