diff options
author | Kurt <kwsch@users.noreply.github.com> | 2018-02-20 02:54:00 -0800 |
---|---|---|
committer | gdkchan <gab.dark.100@gmail.com> | 2018-02-20 07:54:00 -0300 |
commit | 068f9bff2e7beafe365f4767d5ec1685a47d38af (patch) | |
tree | 763161ea8a4ce67ea4dcff60d99991f528019af8 /Ryujinx/VirtualFs.cs | |
parent | dff28df84eafec61de1eb460e8c17cb1651f8983 (diff) |
Misc language usage simplifications (#26)
un-nest some logic
add some xmldoc
simplify ini parse
Diffstat (limited to 'Ryujinx/VirtualFs.cs')
-rw-r--r-- | Ryujinx/VirtualFs.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx/VirtualFs.cs b/Ryujinx/VirtualFs.cs index e5579bcf..98298053 100644 --- a/Ryujinx/VirtualFs.cs +++ b/Ryujinx/VirtualFs.cs @@ -37,7 +37,7 @@ namespace Ryujinx public string GetGameSavesPath() => MakeDirAndGetFullPath(SavesPath); - private string MakeDirAndGetFullPath(string Dir) + private static string MakeDirAndGetFullPath(string Dir) { string FullPath = Path.Combine(GetBasePath(), Dir); @@ -49,7 +49,7 @@ namespace Ryujinx return FullPath; } - public string GetBasePath() + public static string GetBasePath() { return Path.Combine(Directory.GetCurrentDirectory(), BasePath); } @@ -61,9 +61,9 @@ namespace Ryujinx protected virtual void Dispose(bool disposing) { - if (disposing && RomFs != null) + if (disposing) { - RomFs.Dispose(); + RomFs?.Dispose(); } } } |