mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-27 23:49:15 +00:00
misc: chore: Use collection expressions in HLE project
This commit is contained in:
@@ -26,12 +26,13 @@ namespace Ryujinx.HLE.HOS.Tamper
|
||||
|
||||
public ITamperProgram Compile(string name, IEnumerable<string> rawInstructions)
|
||||
{
|
||||
string[] addresses = {
|
||||
string[] addresses =
|
||||
[
|
||||
$" Executable address: 0x{_exeAddress:X16}",
|
||||
$" Heap address : 0x{_heapAddress:X16}",
|
||||
$" Alias address : 0x{_aliasAddress:X16}",
|
||||
$" Aslr address : 0x{_aslrAddress:X16}",
|
||||
};
|
||||
$" Aslr address : 0x{_aslrAddress:X16}"
|
||||
];
|
||||
|
||||
Logger.Debug?.Print(LogClass.TamperMachine, $"Compiling Atmosphere cheat {name}...\n{string.Join('\n', addresses)}");
|
||||
|
||||
|
||||
@@ -73,11 +73,11 @@ namespace Ryujinx.HLE.HOS.Tamper.CodeEmitters
|
||||
|
||||
void Emit(Type operationType, IOperand rhs = null)
|
||||
{
|
||||
List<IOperand> operandList = new()
|
||||
{
|
||||
List<IOperand> operandList =
|
||||
[
|
||||
destinationRegister,
|
||||
leftHandSideRegister,
|
||||
};
|
||||
leftHandSideRegister
|
||||
];
|
||||
|
||||
if (rhs != null)
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Tamper
|
||||
public OperationBlock(byte[] baseInstruction)
|
||||
{
|
||||
BaseInstruction = baseInstruction;
|
||||
Operations = new List<IOperation>();
|
||||
Operations = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user