aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/FileSystem/VirtualFileSystem.cs')
-rw-r--r--Ryujinx.HLE/FileSystem/VirtualFileSystem.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs b/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs
index 347b4fa4..58890995 100644
--- a/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs
+++ b/Ryujinx.HLE/FileSystem/VirtualFileSystem.cs
@@ -17,11 +17,12 @@ namespace Ryujinx.HLE.FileSystem
public const string NandPath = "bis";
public const string SdCardPath = "sdcard";
public const string SystemPath = "system";
+ public const string ModsPath = "mods";
public static string SafeNandPath = Path.Combine(NandPath, "safe");
public static string SystemNandPath = Path.Combine(NandPath, "system");
public static string UserNandPath = Path.Combine(NandPath, "user");
-
+
private static bool _isInitialized = false;
public Keyset KeySet { get; private set; }
@@ -30,9 +31,12 @@ namespace Ryujinx.HLE.FileSystem
public EmulatedGameCard GameCard { get; private set; }
public EmulatedSdCard SdCard { get; private set; }
+ public ModLoader ModLoader {get; private set;}
+
private VirtualFileSystem()
{
Reload();
+ ModLoader = new ModLoader(); // Should only be created once
}
public Stream RomFs { get; private set; }
@@ -73,6 +77,14 @@ namespace Ryujinx.HLE.FileSystem
return fullPath;
}
+ public string GetBaseModsPath()
+ {
+ var baseModsDir = Path.Combine(GetBasePath(), "mods");
+ ModLoader.EnsureBaseDirStructure(baseModsDir);
+
+ return baseModsDir;
+ }
+
public string GetSdCardPath() => MakeFullPath(SdCardPath);
public string GetNandPath() => MakeFullPath(NandPath);