aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/FileSystem/Content/LocationHelper.cs
diff options
context:
space:
mode:
authorAlex Barney <thealexbarney@gmail.com>2018-12-04 14:23:37 -0600
committergdkchan <gab.dark.100@gmail.com>2018-12-04 18:23:37 -0200
commit85dbb9559ad317a657dafd24da27fec4b3f5250f (patch)
treeecd92931bc2146e549484d9a3af308469089ad4e /Ryujinx.HLE/FileSystem/Content/LocationHelper.cs
parentc86aacde76b5f8e503e2b412385c8491ecc86b3b (diff)
Adjust naming conventions and general refactoring in HLE Project (#490)
* Rename enum fields * Naming conventions * Remove unneeded ".this" * Remove unneeded semicolons * Remove unused Usings * Don't use var * Remove unneeded enum underlying types * Explicitly label class visibility * Remove unneeded @ prefixes * Remove unneeded commas * Remove unneeded if expressions * Method doesn't use unsafe code * Remove unneeded casts * Initialized objects don't need an empty constructor * Remove settings from DotSettings * Revert "Explicitly label class visibility" This reverts commit ad5eb5787cc5b27a4631cd46ef5f551c4ae95e51. * Small changes * Revert external enum renaming * Changes from feedback * Remove unneeded property setters
Diffstat (limited to 'Ryujinx.HLE/FileSystem/Content/LocationHelper.cs')
-rw-r--r--Ryujinx.HLE/FileSystem/Content/LocationHelper.cs36
1 files changed, 18 insertions, 18 deletions
diff --git a/Ryujinx.HLE/FileSystem/Content/LocationHelper.cs b/Ryujinx.HLE/FileSystem/Content/LocationHelper.cs
index 75b59431..df3f5ad6 100644
--- a/Ryujinx.HLE/FileSystem/Content/LocationHelper.cs
+++ b/Ryujinx.HLE/FileSystem/Content/LocationHelper.cs
@@ -7,30 +7,30 @@ namespace Ryujinx.HLE.FileSystem.Content
{
internal static class LocationHelper
{
- public static string GetRealPath(VirtualFileSystem FileSystem, string SwitchContentPath)
+ public static string GetRealPath(VirtualFileSystem fileSystem, string switchContentPath)
{
- string BasePath = FileSystem.GetBasePath();
+ string basePath = fileSystem.GetBasePath();
- switch (SwitchContentPath)
+ switch (switchContentPath)
{
case ContentPath.SystemContent:
- return Path.Combine(FileSystem.GetBasePath(), SystemNandPath, "Contents");
+ return Path.Combine(fileSystem.GetBasePath(), SystemNandPath, "Contents");
case ContentPath.UserContent:
- return Path.Combine(FileSystem.GetBasePath(), UserNandPath, "Contents");
+ return Path.Combine(fileSystem.GetBasePath(), UserNandPath, "Contents");
case ContentPath.SdCardContent:
- return Path.Combine(FileSystem.GetSdCardPath(), "Nintendo", "Contents");
+ return Path.Combine(fileSystem.GetSdCardPath(), "Nintendo", "Contents");
case ContentPath.System:
- return Path.Combine(BasePath, SystemNandPath);
+ return Path.Combine(basePath, SystemNandPath);
case ContentPath.User:
- return Path.Combine(BasePath, UserNandPath);
+ return Path.Combine(basePath, UserNandPath);
default:
- throw new NotSupportedException($"Content Path `{SwitchContentPath}` is not supported.");
+ throw new NotSupportedException($"Content Path `{switchContentPath}` is not supported.");
}
}
- public static string GetContentPath(ContentStorageId ContentStorageId)
+ public static string GetContentPath(ContentStorageId contentStorageId)
{
- switch (ContentStorageId)
+ switch (contentStorageId)
{
case ContentStorageId.NandSystem:
return ContentPath.SystemContent;
@@ -39,13 +39,13 @@ namespace Ryujinx.HLE.FileSystem.Content
case ContentStorageId.SdCard:
return ContentPath.SdCardContent;
default:
- throw new NotSupportedException($"Content Storage `{ContentStorageId}` is not supported.");
+ throw new NotSupportedException($"Content Storage `{contentStorageId}` is not supported.");
}
}
- public static string GetContentRoot(StorageId StorageId)
+ public static string GetContentRoot(StorageId storageId)
{
- switch (StorageId)
+ switch (storageId)
{
case StorageId.NandSystem:
return ContentPath.SystemContent;
@@ -54,15 +54,15 @@ namespace Ryujinx.HLE.FileSystem.Content
case StorageId.SdCard:
return ContentPath.SdCardContent;
default:
- throw new NotSupportedException($"Storage Id `{StorageId}` is not supported.");
+ throw new NotSupportedException($"Storage Id `{storageId}` is not supported.");
}
}
- public static StorageId GetStorageId(string ContentPathString)
+ public static StorageId GetStorageId(string contentPathString)
{
- string CleanedPath = ContentPathString.Split(':')[0];
+ string cleanedPath = contentPathString.Split(':')[0];
- switch (CleanedPath)
+ switch (cleanedPath)
{
case ContentPath.SystemContent:
case ContentPath.System: