Use concrete types when possible for improved performance

This commit is contained in:
Marco Carvalho
2025-01-05 11:54:53 -03:00
parent 850df38f1e
commit c80c397967
45 changed files with 150 additions and 171 deletions

View File

@@ -641,7 +641,7 @@ namespace Ryujinx.HLE.FileSystem
return file.Release();
}
private static Stream GetZipStream(ZipArchiveEntry entry)
private static MemoryStream GetZipStream(ZipArchiveEntry entry)
{
MemoryStream dest = MemoryStreamManager.Shared.GetStream();
@@ -1058,7 +1058,7 @@ namespace Ryujinx.HLE.FileSystem
}
return;
bool VerifyKeys(string[] lines, string regex)
{
foreach (string line in lines)
@@ -1071,7 +1071,7 @@ namespace Ryujinx.HLE.FileSystem
return true;
}
}
public bool AreKeysAlredyPresent(string pathToCheck)
{
string[] fileNames = { "prod.keys", "title.keys", "console.keys", "dev.keys" };