mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-02-24 14:14:25 +01:00
misc: chore: Fix object creation in Horizon generators
This commit is contained in:
parent
ccef0b49eb
commit
e859bd5aa2
@ -68,7 +68,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
CodeGenerator generator = new CodeGenerator();
|
CodeGenerator generator = new();
|
||||||
string className = commandInterface.ClassDeclarationSyntax.Identifier.ToString();
|
string className = commandInterface.ClassDeclarationSyntax.Identifier.ToString();
|
||||||
|
|
||||||
generator.AppendLine("using Ryujinx.Horizon.Common;");
|
generator.AppendLine("using Ryujinx.Horizon.Common;");
|
||||||
@ -257,7 +257,7 @@ namespace Ryujinx.Horizon.Generators.Hipc
|
|||||||
generator.AppendLine();
|
generator.AppendLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
List<OutParameter> outParameters = new List<OutParameter>();
|
List<OutParameter> outParameters = new();
|
||||||
|
|
||||||
string[] args = new string[method.ParameterList.Parameters.Count];
|
string[] args = new string[method.ParameterList.Parameters.Count];
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ namespace Ryujinx.Horizon.Kernel.Generators
|
|||||||
{
|
{
|
||||||
SyscallSyntaxReceiver syntaxReceiver = (SyscallSyntaxReceiver)context.SyntaxReceiver;
|
SyscallSyntaxReceiver syntaxReceiver = (SyscallSyntaxReceiver)context.SyntaxReceiver;
|
||||||
|
|
||||||
CodeGenerator generator = new CodeGenerator();
|
CodeGenerator generator = new();
|
||||||
|
|
||||||
generator.AppendLine("using Ryujinx.Common.Logging;");
|
generator.AppendLine("using Ryujinx.Common.Logging;");
|
||||||
generator.AppendLine("using Ryujinx.Cpu;");
|
generator.AppendLine("using Ryujinx.Cpu;");
|
||||||
@ -145,7 +145,7 @@ namespace Ryujinx.Horizon.Kernel.Generators
|
|||||||
GenerateResultCheckHelper(generator);
|
GenerateResultCheckHelper(generator);
|
||||||
generator.AppendLine();
|
generator.AppendLine();
|
||||||
|
|
||||||
List<SyscallIdAndName> syscalls = new List<SyscallIdAndName>();
|
List<SyscallIdAndName> syscalls = new();
|
||||||
|
|
||||||
foreach (MethodDeclarationSyntax method in syntaxReceiver.SvcImplementations)
|
foreach (MethodDeclarationSyntax method in syntaxReceiver.SvcImplementations)
|
||||||
{
|
{
|
||||||
@ -200,11 +200,11 @@ namespace Ryujinx.Horizon.Kernel.Generators
|
|||||||
string[] args = new string[method.ParameterList.Parameters.Count];
|
string[] args = new string[method.ParameterList.Parameters.Count];
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
RegisterAllocatorA32 regAlloc = new RegisterAllocatorA32();
|
RegisterAllocatorA32 regAlloc = new();
|
||||||
|
|
||||||
List<OutParameter> outParameters = new List<OutParameter>();
|
List<OutParameter> outParameters = new();
|
||||||
List<string> logInArgs = new List<string>();
|
List<string> logInArgs = new();
|
||||||
List<string> logOutArgs = new List<string>();
|
List<string> logOutArgs = new();
|
||||||
|
|
||||||
foreach (ParameterSyntax methodParameter in method.ParameterList.Parameters)
|
foreach (ParameterSyntax methodParameter in method.ParameterList.Parameters)
|
||||||
{
|
{
|
||||||
@ -321,9 +321,9 @@ namespace Ryujinx.Horizon.Kernel.Generators
|
|||||||
int registerIndex = 0;
|
int registerIndex = 0;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
|
||||||
List<OutParameter> outParameters = new List<OutParameter>();
|
List<OutParameter> outParameters = new();
|
||||||
List<string> logInArgs = new List<string>();
|
List<string> logInArgs = new();
|
||||||
List<string> logOutArgs = new List<string>();
|
List<string> logOutArgs = new();
|
||||||
|
|
||||||
foreach (ParameterSyntax methodParameter in method.ParameterList.Parameters)
|
foreach (ParameterSyntax methodParameter in method.ParameterList.Parameters)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user