refactoring
This commit is contained in:
parent
0b0f11a0e7
commit
7874deff71
1 changed files with 14 additions and 10 deletions
|
@ -32,23 +32,25 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
{
|
{
|
||||||
case SystemContent:
|
case SystemContent:
|
||||||
realPath = Path.Combine(AppDataManager.BaseDirPath, SystemNandPath, Contents);
|
realPath = Path.Combine(AppDataManager.BaseDirPath, SystemNandPath, Contents);
|
||||||
return true;
|
break;
|
||||||
case UserContent:
|
case UserContent:
|
||||||
realPath = Path.Combine(AppDataManager.BaseDirPath, UserNandPath, Contents);
|
realPath = Path.Combine(AppDataManager.BaseDirPath, UserNandPath, Contents);
|
||||||
return true;
|
break;
|
||||||
case SdCardContent:
|
case SdCardContent:
|
||||||
realPath = Path.Combine(GetSdCardPath(), Nintendo, Contents);
|
realPath = Path.Combine(GetSdCardPath(), Nintendo, Contents);
|
||||||
return true;
|
break;
|
||||||
case System:
|
case System:
|
||||||
realPath = Path.Combine(AppDataManager.BaseDirPath, SystemNandPath);
|
realPath = Path.Combine(AppDataManager.BaseDirPath, SystemNandPath);
|
||||||
return true;
|
break;
|
||||||
case User:
|
case User:
|
||||||
realPath = Path.Combine(AppDataManager.BaseDirPath, UserNandPath);
|
realPath = Path.Combine(AppDataManager.BaseDirPath, UserNandPath);
|
||||||
return true;
|
break;
|
||||||
default:
|
default:
|
||||||
realPath = null;
|
realPath = null;
|
||||||
return false;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return realPath != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,17 +71,19 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
{
|
{
|
||||||
case StorageId.BuiltInSystem:
|
case StorageId.BuiltInSystem:
|
||||||
contentPath = SystemContent;
|
contentPath = SystemContent;
|
||||||
return true;
|
break;
|
||||||
case StorageId.BuiltInUser:
|
case StorageId.BuiltInUser:
|
||||||
contentPath = UserContent;
|
contentPath = UserContent;
|
||||||
return true;
|
break;
|
||||||
case StorageId.SdCard:
|
case StorageId.SdCard:
|
||||||
contentPath = SdCardContent;
|
contentPath = SdCardContent;
|
||||||
return true;
|
break;
|
||||||
default:
|
default:
|
||||||
contentPath = null;
|
contentPath = null;
|
||||||
return false;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return contentPath != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static StorageId GetStorageId(string contentPathString)
|
public static StorageId GetStorageId(string contentPathString)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue