From b2f733da7839ff8ba7a70a529cb9eb3eea9f0af6 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 21 Feb 2018 18:56:52 -0300 Subject: FspSrv improvements, also fix ImageEnd for NROs without a MOD0 section --- Ryujinx.Core/VirtualFs.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Core/VirtualFs.cs') 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); } -- cgit v1.2.3