aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/VirtualFs.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-02-21 18:56:52 -0300
committergdkchan <gab.dark.100@gmail.com>2018-02-21 18:56:52 -0300
commitb2f733da7839ff8ba7a70a529cb9eb3eea9f0af6 (patch)
tree2ed5913d93ecf3deeabfe706934b57ee6f2309b6 /Ryujinx.Core/VirtualFs.cs
parent3696255457dce06111ce5a07544d30239366ebf6 (diff)
FspSrv improvements, also fix ImageEnd for NROs without a MOD0 section
Diffstat (limited to 'Ryujinx.Core/VirtualFs.cs')
-rw-r--r--Ryujinx.Core/VirtualFs.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Ryujinx.Core/VirtualFs.cs b/Ryujinx.Core/VirtualFs.cs
index 23c7285c..0c911116 100644
--- a/Ryujinx.Core/VirtualFs.cs
+++ b/Ryujinx.Core/VirtualFs.cs
@@ -37,7 +37,7 @@ namespace Ryujinx.Core
public string GetGameSavesPath() => MakeDirAndGetFullPath(SavesPath);
- private static string MakeDirAndGetFullPath(string Dir)
+ private string MakeDirAndGetFullPath(string Dir)
{
string FullPath = Path.Combine(GetBasePath(), Dir);
@@ -49,7 +49,12 @@ namespace Ryujinx.Core
return FullPath;
}
- public static string GetBasePath()
+ public DriveInfo GetDrive()
+ {
+ return new DriveInfo(Path.GetPathRoot(GetBasePath()));
+ }
+
+ public string GetBasePath()
{
return Path.Combine(Directory.GetCurrentDirectory(), BasePath);
}