FspSrv improvements, also fix ImageEnd for NROs without a MOD0 section

This commit is contained in:
gdkchan 2018-02-21 18:56:52 -03:00
parent 3696255457
commit b2f733da78
14 changed files with 408 additions and 196 deletions

View file

@ -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);
}