aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/VirtualFileSystem.cs
diff options
context:
space:
mode:
authorThomas Guillemard <thog@protonmail.com>2018-08-04 23:38:49 +0200
committergdkchan <gab.dark.100@gmail.com>2018-08-04 18:38:49 -0300
commiteeb626947eac81b9d9d9a90ad6e29035c21d54a7 (patch)
tree4a1f0b2417db6670b098244ef3702f75775c50f6 /Ryujinx.HLE/VirtualFileSystem.cs
parent5f34353dce716bca2e3fc1c7e82be6276b95d61a (diff)
Implement Shared Fonts (#215)
* Implement Shared Fonts This fully implements shared fonts. This commit is provided without fonts. This commit also add Size to HSharedMem.Positions to be able to add fonts to shared zones when RequestLoad is called. * Require the user to provide fonts in RyuFS/system * Use File.Exits instead of relying ona try/catch and change system resource exception format a bit * Make sure that font sum doesn't exceed 17MB Also rename font data dictionary for coherence.
Diffstat (limited to 'Ryujinx.HLE/VirtualFileSystem.cs')
-rw-r--r--Ryujinx.HLE/VirtualFileSystem.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Ryujinx.HLE/VirtualFileSystem.cs b/Ryujinx.HLE/VirtualFileSystem.cs
index df1fc9db..31b8e184 100644
--- a/Ryujinx.HLE/VirtualFileSystem.cs
+++ b/Ryujinx.HLE/VirtualFileSystem.cs
@@ -8,6 +8,7 @@ namespace Ryujinx.HLE
private const string BasePath = "RyuFs";
private const string NandPath = "nand";
private const string SdCardPath = "sdmc";
+ private const string SystemPath = "system";
public Stream RomFs { get; private set; }
@@ -45,6 +46,8 @@ namespace Ryujinx.HLE
public string GetGameSavesPath() => MakeDirAndGetFullPath(NandPath);
+ public string GetSystemPath() => MakeDirAndGetFullPath(SystemPath);
+
public string SwitchPathToSystemPath(string SwitchPath)
{
string[] Parts = SwitchPath.Split(":");