Remove unneeded "this." qualifiers.
Re-align ACond enum. Add back in the underscores in ACryptoHelper
This commit is contained in:
parent
648a2522a7
commit
b7f540f155
183 changed files with 439 additions and 439 deletions
|
@ -565,9 +565,9 @@ namespace ChocolArm64
|
||||||
|
|
||||||
public InstInfo(int mask, int value, AInst inst)
|
public InstInfo(int mask, int value, AInst inst)
|
||||||
{
|
{
|
||||||
this.Mask = mask;
|
Mask = mask;
|
||||||
this.Value = value;
|
Value = value;
|
||||||
this.Inst = inst;
|
Inst = inst;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ namespace ChocolArm64
|
||||||
|
|
||||||
public AThread(ATranslator translator, AMemory memory, long entryPoint)
|
public AThread(ATranslator translator, AMemory memory, long entryPoint)
|
||||||
{
|
{
|
||||||
this._translator = translator;
|
_translator = translator;
|
||||||
this.Memory = memory;
|
Memory = memory;
|
||||||
|
|
||||||
ThreadState = new AThreadState();
|
ThreadState = new AThreadState();
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace ChocolArm64
|
||||||
throw new ArgumentNullException(nameof(Params));
|
throw new ArgumentNullException(nameof(Params));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Method = method;
|
Method = method;
|
||||||
this.Params = Params.AsReadOnly();
|
this.Params = Params.AsReadOnly();
|
||||||
|
|
||||||
_callers = new HashSet<long>();
|
_callers = new HashSet<long>();
|
||||||
|
@ -137,7 +137,7 @@ namespace ChocolArm64
|
||||||
|
|
||||||
public void SetType(ATranslatedSubType type)
|
public void SetType(ATranslatedSubType type)
|
||||||
{
|
{
|
||||||
this._type = type;
|
_type = type;
|
||||||
|
|
||||||
if (type == ATranslatedSubType.SubTier0)
|
if (type == ATranslatedSubType.SubTier0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,15 +31,15 @@ namespace ChocolArm64
|
||||||
|
|
||||||
public CacheBucket(ATranslatedSub subroutine, LinkedListNode<long> node, int size)
|
public CacheBucket(ATranslatedSub subroutine, LinkedListNode<long> node, int size)
|
||||||
{
|
{
|
||||||
this.Subroutine = subroutine;
|
Subroutine = subroutine;
|
||||||
this.Size = size;
|
Size = size;
|
||||||
|
|
||||||
UpdateNode(node);
|
UpdateNode(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateNode(LinkedListNode<long> node)
|
public void UpdateNode(LinkedListNode<long> node)
|
||||||
{
|
{
|
||||||
this.Node = node;
|
Node = node;
|
||||||
|
|
||||||
Timestamp = Environment.TickCount;
|
Timestamp = Environment.TickCount;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace ChocolArm64.Decoder
|
||||||
|
|
||||||
public ABlock(long position) : this()
|
public ABlock(long position) : this()
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AOpCode GetLastOp()
|
public AOpCode GetLastOp()
|
||||||
|
|
|
@ -4,14 +4,14 @@ namespace ChocolArm64.Decoder
|
||||||
{
|
{
|
||||||
Eq = 0,
|
Eq = 0,
|
||||||
Ne = 1,
|
Ne = 1,
|
||||||
GeUn = 2,
|
GeUn = 2,
|
||||||
LtUn = 3,
|
LtUn = 3,
|
||||||
Mi = 4,
|
Mi = 4,
|
||||||
Pl = 5,
|
Pl = 5,
|
||||||
Vs = 6,
|
Vs = 6,
|
||||||
Vc = 7,
|
Vc = 7,
|
||||||
GtUn = 8,
|
GtUn = 8,
|
||||||
LeUn = 9,
|
LeUn = 9,
|
||||||
Ge = 10,
|
Ge = 10,
|
||||||
Lt = 11,
|
Lt = 11,
|
||||||
Gt = 12,
|
Gt = 12,
|
||||||
|
|
|
@ -15,8 +15,8 @@ namespace ChocolArm64.Decoder
|
||||||
|
|
||||||
public AOpCode(AInst inst, long position, int opCode)
|
public AOpCode(AInst inst, long position, int opCode)
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
this.RawOpCode = opCode;
|
RawOpCode = opCode;
|
||||||
|
|
||||||
RegisterSize = ARegisterSize.Int64;
|
RegisterSize = ARegisterSize.Int64;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ namespace ChocolArm64.Decoder
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Shift = shift;
|
Shift = shift;
|
||||||
|
|
||||||
Rm = (opCode >> 16) & 0x1f;
|
Rm = (opCode >> 16) & 0x1f;
|
||||||
ShiftType = (AShiftType)((opCode >> 22) & 0x3);
|
ShiftType = (AShiftType)((opCode >> 22) & 0x3);
|
||||||
|
|
|
@ -27,7 +27,7 @@ namespace ChocolArm64.Decoder
|
||||||
Rd = (opCode >> 0) & 0x1f;
|
Rd = (opCode >> 0) & 0x1f;
|
||||||
imm = (opCode >> 13) & 0xff;
|
imm = (opCode >> 13) & 0xff;
|
||||||
|
|
||||||
this.Imm = ADecoderHelper.DecodeImm8Float(imm, type);
|
Imm = ADecoderHelper.DecodeImm8Float(imm, type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -79,7 +79,7 @@ namespace ChocolArm64.Decoder
|
||||||
Size = 0;
|
Size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Imm = imm;
|
Imm = imm;
|
||||||
|
|
||||||
RegisterSize = ((opCode >> 30) & 1) != 0
|
RegisterSize = ((opCode >> 30) & 1) != 0
|
||||||
? ARegisterSize.Simd128
|
? ARegisterSize.Simd128
|
||||||
|
|
|
@ -82,9 +82,9 @@ namespace ChocolArm64.Decoder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Index = index;
|
Index = index;
|
||||||
this.SElems = sElems;
|
SElems = sElems;
|
||||||
this.Size = scale;
|
Size = scale;
|
||||||
|
|
||||||
Extend64 = false;
|
Extend64 = false;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace ChocolArm64.Events
|
||||||
|
|
||||||
public ACpuTraceEventArgs(long position)
|
public ACpuTraceEventArgs(long position)
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,8 +9,8 @@ namespace ChocolArm64.Events
|
||||||
|
|
||||||
public AInstExceptionEventArgs(long position, int id)
|
public AInstExceptionEventArgs(long position, int id)
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
this.Id = id;
|
Id = id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,8 +9,8 @@ namespace ChocolArm64.Events
|
||||||
|
|
||||||
public AInstUndefinedEventArgs(long position, int rawOpCode)
|
public AInstUndefinedEventArgs(long position, int rawOpCode)
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
this.RawOpCode = rawOpCode;
|
RawOpCode = rawOpCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,7 +8,7 @@ namespace ChocolArm64.Events
|
||||||
|
|
||||||
public AInvalidAccessEventArgs(long position)
|
public AInvalidAccessEventArgs(long position)
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -49,7 +49,7 @@ namespace ChocolArm64.Instruction
|
||||||
0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d
|
0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d
|
||||||
};
|
};
|
||||||
|
|
||||||
private static byte[] _gfMul02 =
|
private static byte[] _gfMul_02 =
|
||||||
{
|
{
|
||||||
0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e, 0x10, 0x12, 0x14, 0x16, 0x18, 0x1a, 0x1c, 0x1e,
|
0x00, 0x02, 0x04, 0x06, 0x08, 0x0a, 0x0c, 0x0e, 0x10, 0x12, 0x14, 0x16, 0x18, 0x1a, 0x1c, 0x1e,
|
||||||
0x20, 0x22, 0x24, 0x26, 0x28, 0x2a, 0x2c, 0x2e, 0x30, 0x32, 0x34, 0x36, 0x38, 0x3a, 0x3c, 0x3e,
|
0x20, 0x22, 0x24, 0x26, 0x28, 0x2a, 0x2c, 0x2e, 0x30, 0x32, 0x34, 0x36, 0x38, 0x3a, 0x3c, 0x3e,
|
||||||
|
@ -69,7 +69,7 @@ namespace ChocolArm64.Instruction
|
||||||
0xfb, 0xf9, 0xff, 0xfd, 0xf3, 0xf1, 0xf7, 0xf5, 0xeb, 0xe9, 0xef, 0xed, 0xe3, 0xe1, 0xe7, 0xe5
|
0xfb, 0xf9, 0xff, 0xfd, 0xf3, 0xf1, 0xf7, 0xf5, 0xeb, 0xe9, 0xef, 0xed, 0xe3, 0xe1, 0xe7, 0xe5
|
||||||
};
|
};
|
||||||
|
|
||||||
private static byte[] _gfMul03 =
|
private static byte[] _gfMul_03 =
|
||||||
{
|
{
|
||||||
0x00, 0x03, 0x06, 0x05, 0x0c, 0x0f, 0x0a, 0x09, 0x18, 0x1b, 0x1e, 0x1d, 0x14, 0x17, 0x12, 0x11,
|
0x00, 0x03, 0x06, 0x05, 0x0c, 0x0f, 0x0a, 0x09, 0x18, 0x1b, 0x1e, 0x1d, 0x14, 0x17, 0x12, 0x11,
|
||||||
0x30, 0x33, 0x36, 0x35, 0x3c, 0x3f, 0x3a, 0x39, 0x28, 0x2b, 0x2e, 0x2d, 0x24, 0x27, 0x22, 0x21,
|
0x30, 0x33, 0x36, 0x35, 0x3c, 0x3f, 0x3a, 0x39, 0x28, 0x2b, 0x2e, 0x2d, 0x24, 0x27, 0x22, 0x21,
|
||||||
|
@ -89,7 +89,7 @@ namespace ChocolArm64.Instruction
|
||||||
0x0b, 0x08, 0x0d, 0x0e, 0x07, 0x04, 0x01, 0x02, 0x13, 0x10, 0x15, 0x16, 0x1f, 0x1c, 0x19, 0x1a
|
0x0b, 0x08, 0x0d, 0x0e, 0x07, 0x04, 0x01, 0x02, 0x13, 0x10, 0x15, 0x16, 0x1f, 0x1c, 0x19, 0x1a
|
||||||
};
|
};
|
||||||
|
|
||||||
private static byte[] _gfMul09 =
|
private static byte[] _gfMul_09 =
|
||||||
{
|
{
|
||||||
0x00, 0x09, 0x12, 0x1b, 0x24, 0x2d, 0x36, 0x3f, 0x48, 0x41, 0x5a, 0x53, 0x6c, 0x65, 0x7e, 0x77,
|
0x00, 0x09, 0x12, 0x1b, 0x24, 0x2d, 0x36, 0x3f, 0x48, 0x41, 0x5a, 0x53, 0x6c, 0x65, 0x7e, 0x77,
|
||||||
0x90, 0x99, 0x82, 0x8b, 0xb4, 0xbd, 0xa6, 0xaf, 0xd8, 0xd1, 0xca, 0xc3, 0xfc, 0xf5, 0xee, 0xe7,
|
0x90, 0x99, 0x82, 0x8b, 0xb4, 0xbd, 0xa6, 0xaf, 0xd8, 0xd1, 0xca, 0xc3, 0xfc, 0xf5, 0xee, 0xe7,
|
||||||
|
@ -190,10 +190,10 @@ namespace ChocolArm64.Instruction
|
||||||
byte row2 = inState[idx + 2]; // C, G, K, O: [Row2, Col0-Col3]
|
byte row2 = inState[idx + 2]; // C, G, K, O: [Row2, Col0-Col3]
|
||||||
byte row3 = inState[idx + 3]; // D, H, L, P: [Row3, Col0-Col3]
|
byte row3 = inState[idx + 3]; // D, H, L, P: [Row3, Col0-Col3]
|
||||||
|
|
||||||
outState[idx + 0] = (byte)((uint)_gfMul_0E[row0] ^ _gfMul_0B[row1] ^ _gfMul_0D[row2] ^ _gfMul09[row3]);
|
outState[idx + 0] = (byte)((uint)_gfMul_0E[row0] ^ _gfMul_0B[row1] ^ _gfMul_0D[row2] ^ _gfMul_09[row3]);
|
||||||
outState[idx + 1] = (byte)((uint)_gfMul09[row0] ^ _gfMul_0E[row1] ^ _gfMul_0B[row2] ^ _gfMul_0D[row3]);
|
outState[idx + 1] = (byte)((uint)_gfMul_09[row0] ^ _gfMul_0E[row1] ^ _gfMul_0B[row2] ^ _gfMul_0D[row3]);
|
||||||
outState[idx + 2] = (byte)((uint)_gfMul_0D[row0] ^ _gfMul09[row1] ^ _gfMul_0E[row2] ^ _gfMul_0B[row3]);
|
outState[idx + 2] = (byte)((uint)_gfMul_0D[row0] ^ _gfMul_09[row1] ^ _gfMul_0E[row2] ^ _gfMul_0B[row3]);
|
||||||
outState[idx + 3] = (byte)((uint)_gfMul_0B[row0] ^ _gfMul_0D[row1] ^ _gfMul09[row2] ^ _gfMul_0E[row3]);
|
outState[idx + 3] = (byte)((uint)_gfMul_0B[row0] ^ _gfMul_0D[row1] ^ _gfMul_09[row2] ^ _gfMul_0E[row3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
FromByteArrayToVector(outState, ref op);
|
FromByteArrayToVector(outState, ref op);
|
||||||
|
@ -251,10 +251,10 @@ namespace ChocolArm64.Instruction
|
||||||
byte row2 = inState[idx + 2]; // C, G, K, O: [Row2, Col0-Col3]
|
byte row2 = inState[idx + 2]; // C, G, K, O: [Row2, Col0-Col3]
|
||||||
byte row3 = inState[idx + 3]; // D, H, L, P: [Row3, Col0-Col3]
|
byte row3 = inState[idx + 3]; // D, H, L, P: [Row3, Col0-Col3]
|
||||||
|
|
||||||
outState[idx + 0] = (byte)((uint)_gfMul02[row0] ^ _gfMul03[row1] ^ row2 ^ row3);
|
outState[idx + 0] = (byte)((uint)_gfMul_02[row0] ^ _gfMul_03[row1] ^ row2 ^ row3);
|
||||||
outState[idx + 1] = (byte)((uint)row0 ^ _gfMul02[row1] ^ _gfMul03[row2] ^ row3);
|
outState[idx + 1] = (byte)((uint)row0 ^ _gfMul_02[row1] ^ _gfMul_03[row2] ^ row3);
|
||||||
outState[idx + 2] = (byte)((uint)row0 ^ row1 ^ _gfMul02[row2] ^ _gfMul03[row3]);
|
outState[idx + 2] = (byte)((uint)row0 ^ row1 ^ _gfMul_02[row2] ^ _gfMul_03[row3]);
|
||||||
outState[idx + 3] = (byte)((uint)_gfMul03[row0] ^ row1 ^ row2 ^ _gfMul02[row3]);
|
outState[idx + 3] = (byte)((uint)_gfMul_03[row0] ^ row1 ^ row2 ^ _gfMul_02[row3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
FromByteArrayToVector(outState, ref op);
|
FromByteArrayToVector(outState, ref op);
|
||||||
|
|
|
@ -12,9 +12,9 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
public AInst(AInstInterpreter interpreter, AInstEmitter emitter, Type type)
|
public AInst(AInstInterpreter interpreter, AInstEmitter emitter, Type type)
|
||||||
{
|
{
|
||||||
this.Interpreter = interpreter;
|
Interpreter = interpreter;
|
||||||
this.Emitter = emitter;
|
Emitter = emitter;
|
||||||
this.Type = type;
|
Type = type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -38,7 +38,7 @@ namespace ChocolArm64.Memory
|
||||||
|
|
||||||
public bool HasExclusiveAccess(long position)
|
public bool HasExclusiveAccess(long position)
|
||||||
{
|
{
|
||||||
return this.Position == position && ExState;
|
return Position == position && ExState;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ namespace ChocolArm64.Memory
|
||||||
|
|
||||||
_observedPages = new ConcurrentDictionary<long, IntPtr>();
|
_observedPages = new ConcurrentDictionary<long, IntPtr>();
|
||||||
|
|
||||||
this.Ram = ram;
|
Ram = ram;
|
||||||
|
|
||||||
_ramPtr = (byte*)ram;
|
_ramPtr = (byte*)ram;
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,8 @@ namespace ChocolArm64.State
|
||||||
|
|
||||||
public ARegister(int index, ARegisterType type)
|
public ARegister(int index, ARegisterType type)
|
||||||
{
|
{
|
||||||
this.Index = index;
|
Index = index;
|
||||||
this.Type = type;
|
Type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
|
|
|
@ -27,7 +27,7 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
public AilEmitter(ABlock[] graph, ABlock root, string subName)
|
public AilEmitter(ABlock[] graph, ABlock root, string subName)
|
||||||
{
|
{
|
||||||
this._subName = subName;
|
_subName = subName;
|
||||||
|
|
||||||
_locals = new Dictionary<ARegister, int>();
|
_locals = new Dictionary<ARegister, int>();
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ namespace ChocolArm64.Translation
|
||||||
block.Branch = GetBlock(Array.IndexOf(graph, graph[index].Branch));
|
block.Branch = GetBlock(Array.IndexOf(graph, graph[index].Branch));
|
||||||
}
|
}
|
||||||
|
|
||||||
this._root = _ilBlocks[Array.IndexOf(graph, root)];
|
_root = _ilBlocks[Array.IndexOf(graph, root)];
|
||||||
}
|
}
|
||||||
|
|
||||||
public AilBlock GetIlBlock(int index) => _ilBlocks[index];
|
public AilBlock GetIlBlock(int index) => _ilBlocks[index];
|
||||||
|
|
|
@ -45,9 +45,9 @@ namespace ChocolArm64.Translation
|
||||||
ABlock root,
|
ABlock root,
|
||||||
string subName)
|
string subName)
|
||||||
{
|
{
|
||||||
this._cache = cache ?? throw new ArgumentNullException(nameof(cache));
|
_cache = cache ?? throw new ArgumentNullException(nameof(cache));
|
||||||
this._graph = graph ?? throw new ArgumentNullException(nameof(graph));
|
_graph = graph ?? throw new ArgumentNullException(nameof(graph));
|
||||||
this._root = root ?? throw new ArgumentNullException(nameof(root));
|
_root = root ?? throw new ArgumentNullException(nameof(root));
|
||||||
|
|
||||||
_labels = new Dictionary<long, AilLabel>();
|
_labels = new Dictionary<long, AilLabel>();
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
public AilOpCode(OpCode ilOp)
|
public AilOpCode(OpCode ilOp)
|
||||||
{
|
{
|
||||||
this._ilOp = ilOp;
|
_ilOp = ilOp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Emit(AilEmitter context)
|
public void Emit(AilEmitter context)
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
public AilOpCodeBranch(OpCode ilOp, AilLabel label)
|
public AilOpCodeBranch(OpCode ilOp, AilLabel label)
|
||||||
{
|
{
|
||||||
this._ilOp = ilOp;
|
_ilOp = ilOp;
|
||||||
this._label = label;
|
_label = label;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Emit(AilEmitter context)
|
public void Emit(AilEmitter context)
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
public AilOpCodeCall(MethodInfo mthdInfo)
|
public AilOpCodeCall(MethodInfo mthdInfo)
|
||||||
{
|
{
|
||||||
this._mthdInfo = mthdInfo;
|
_mthdInfo = mthdInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Emit(AilEmitter context)
|
public void Emit(AilEmitter context)
|
||||||
|
|
|
@ -28,27 +28,27 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
private AilOpCodeConst(ConstType type)
|
private AilOpCodeConst(ConstType type)
|
||||||
{
|
{
|
||||||
this._type = type;
|
_type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AilOpCodeConst(int value) : this(ConstType.Int32)
|
public AilOpCodeConst(int value) : this(ConstType.Int32)
|
||||||
{
|
{
|
||||||
this._value = new ImmVal { I4 = value };
|
_value = new ImmVal { I4 = value };
|
||||||
}
|
}
|
||||||
|
|
||||||
public AilOpCodeConst(long value) : this(ConstType.Int64)
|
public AilOpCodeConst(long value) : this(ConstType.Int64)
|
||||||
{
|
{
|
||||||
this._value = new ImmVal { I8 = value };
|
_value = new ImmVal { I8 = value };
|
||||||
}
|
}
|
||||||
|
|
||||||
public AilOpCodeConst(float value) : this(ConstType.Single)
|
public AilOpCodeConst(float value) : this(ConstType.Single)
|
||||||
{
|
{
|
||||||
this._value = new ImmVal { R4 = value };
|
_value = new ImmVal { R4 = value };
|
||||||
}
|
}
|
||||||
|
|
||||||
public AilOpCodeConst(double value) : this(ConstType.Double)
|
public AilOpCodeConst(double value) : this(ConstType.Double)
|
||||||
{
|
{
|
||||||
this._value = new ImmVal { R8 = value };
|
_value = new ImmVal { R8 = value };
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Emit(AilEmitter context)
|
public void Emit(AilEmitter context)
|
||||||
|
|
|
@ -13,9 +13,9 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
public AilOpCodeLoad(int index, AIoType ioType, ARegisterSize registerSize = 0)
|
public AilOpCodeLoad(int index, AIoType ioType, ARegisterSize registerSize = 0)
|
||||||
{
|
{
|
||||||
this.Index = index;
|
Index = index;
|
||||||
this.IoType = ioType;
|
IoType = ioType;
|
||||||
this.RegisterSize = registerSize;
|
RegisterSize = registerSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Emit(AilEmitter context)
|
public void Emit(AilEmitter context)
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
public AilOpCodeLog(string text)
|
public AilOpCodeLog(string text)
|
||||||
{
|
{
|
||||||
this._text = text;
|
_text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Emit(AilEmitter context)
|
public void Emit(AilEmitter context)
|
||||||
|
|
|
@ -13,9 +13,9 @@ namespace ChocolArm64.Translation
|
||||||
|
|
||||||
public AilOpCodeStore(int index, AIoType ioType, ARegisterSize registerSize = 0)
|
public AilOpCodeStore(int index, AIoType ioType, ARegisterSize registerSize = 0)
|
||||||
{
|
{
|
||||||
this.Index = index;
|
Index = index;
|
||||||
this.IoType = ioType;
|
IoType = ioType;
|
||||||
this.RegisterSize = registerSize;
|
RegisterSize = registerSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Emit(AilEmitter context)
|
public void Emit(AilEmitter context)
|
||||||
|
|
|
@ -38,9 +38,9 @@ namespace Ryujinx.Audio.OpenAL
|
||||||
|
|
||||||
public Track(int sampleRate, ALFormat format, ReleaseCallback callback)
|
public Track(int sampleRate, ALFormat format, ReleaseCallback callback)
|
||||||
{
|
{
|
||||||
this.SampleRate = sampleRate;
|
SampleRate = sampleRate;
|
||||||
this.Format = format;
|
Format = format;
|
||||||
this._callback = callback;
|
_callback = callback;
|
||||||
|
|
||||||
State = PlaybackState.Stopped;
|
State = PlaybackState.Stopped;
|
||||||
|
|
||||||
|
|
|
@ -11,9 +11,9 @@ namespace Ryujinx.Common.Logging
|
||||||
|
|
||||||
public LogEventArgs(LogLevel level, TimeSpan time, string message)
|
public LogEventArgs(LogLevel level, TimeSpan time, string message)
|
||||||
{
|
{
|
||||||
this.Level = level;
|
Level = level;
|
||||||
this.Time = time;
|
Time = time;
|
||||||
this.Message = message;
|
Message = message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -13,10 +13,10 @@ namespace Ryujinx.Graphics.Gal
|
||||||
float blue,
|
float blue,
|
||||||
float alpha)
|
float alpha)
|
||||||
{
|
{
|
||||||
this.Red = red;
|
Red = red;
|
||||||
this.Green = green;
|
Green = green;
|
||||||
this.Blue = blue;
|
Blue = blue;
|
||||||
this.Alpha = alpha;
|
Alpha = alpha;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -29,16 +29,16 @@ namespace Ryujinx.Graphics.Gal
|
||||||
GalTextureSource zSource = GalTextureSource.Blue,
|
GalTextureSource zSource = GalTextureSource.Blue,
|
||||||
GalTextureSource wSource = GalTextureSource.Alpha)
|
GalTextureSource wSource = GalTextureSource.Alpha)
|
||||||
{
|
{
|
||||||
this.Width = width;
|
Width = width;
|
||||||
this.Height = height;
|
Height = height;
|
||||||
this.TileWidth = tileWidth;
|
TileWidth = tileWidth;
|
||||||
this.GobBlockHeight = gobBlockHeight;
|
GobBlockHeight = gobBlockHeight;
|
||||||
this.Layout = layout;
|
Layout = layout;
|
||||||
this.Format = format;
|
Format = format;
|
||||||
this.XSource = xSource;
|
XSource = xSource;
|
||||||
this.YSource = ySource;
|
YSource = ySource;
|
||||||
this.ZSource = zSource;
|
ZSource = zSource;
|
||||||
this.WSource = wSource;
|
WSource = wSource;
|
||||||
|
|
||||||
Pitch = ImageUtils.GetPitch(format, width);
|
Pitch = ImageUtils.GetPitch(format, width);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,13 +21,13 @@ namespace Ryujinx.Graphics.Gal
|
||||||
GalTextureMipFilter mipFilter,
|
GalTextureMipFilter mipFilter,
|
||||||
GalColorF borderColor)
|
GalColorF borderColor)
|
||||||
{
|
{
|
||||||
this.AddressU = addressU;
|
AddressU = addressU;
|
||||||
this.AddressV = addressV;
|
AddressV = addressV;
|
||||||
this.AddressP = addressP;
|
AddressP = addressP;
|
||||||
this.MinFilter = minFilter;
|
MinFilter = minFilter;
|
||||||
this.MagFilter = magFilter;
|
MagFilter = magFilter;
|
||||||
this.MipFilter = mipFilter;
|
MipFilter = mipFilter;
|
||||||
this.BorderColor = borderColor;
|
BorderColor = borderColor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -23,13 +23,13 @@ namespace Ryujinx.Graphics.Gal
|
||||||
GalVertexAttribType type,
|
GalVertexAttribType type,
|
||||||
bool isBgra)
|
bool isBgra)
|
||||||
{
|
{
|
||||||
this.Index = index;
|
Index = index;
|
||||||
this.IsConst = isConst;
|
IsConst = isConst;
|
||||||
this.Pointer = pointer;
|
Pointer = pointer;
|
||||||
this.Offset = offset;
|
Offset = offset;
|
||||||
this.Size = size;
|
Size = size;
|
||||||
this.Type = type;
|
Type = type;
|
||||||
this.IsBgra = isBgra;
|
IsBgra = isBgra;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,8 +19,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
public ImageHandler(int handle, GalImage image)
|
public ImageHandler(int handle, GalImage image)
|
||||||
{
|
{
|
||||||
this.Handle = handle;
|
Handle = handle;
|
||||||
this.Image = image;
|
Image = image;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,9 +22,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
public CacheBucket(T value, long dataSize, LinkedListNode<long> node)
|
public CacheBucket(T value, long dataSize, LinkedListNode<long> node)
|
||||||
{
|
{
|
||||||
this.Value = value;
|
Value = value;
|
||||||
this.DataSize = dataSize;
|
DataSize = dataSize;
|
||||||
this.Node = node;
|
Node = node;
|
||||||
|
|
||||||
Timestamp = Environment.TickCount;
|
Timestamp = Environment.TickCount;
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
throw new ArgumentNullException(nameof(deleteValueCallback));
|
throw new ArgumentNullException(nameof(deleteValueCallback));
|
||||||
}
|
}
|
||||||
|
|
||||||
this._deleteValueCallback = deleteValueCallback;
|
_deleteValueCallback = deleteValueCallback;
|
||||||
|
|
||||||
_cache = new Dictionary<long, CacheBucket>();
|
_cache = new Dictionary<long, CacheBucket>();
|
||||||
|
|
||||||
|
|
|
@ -85,9 +85,9 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
public OglPipeline(OglConstBuffer buffer, OglRasterizer rasterizer, OglShader shader)
|
public OglPipeline(OglConstBuffer buffer, OglRasterizer rasterizer, OglShader shader)
|
||||||
{
|
{
|
||||||
this._buffer = buffer;
|
_buffer = buffer;
|
||||||
this._rasterizer = rasterizer;
|
_rasterizer = rasterizer;
|
||||||
this._shader = shader;
|
_shader = shader;
|
||||||
|
|
||||||
//These values match OpenGL's defaults
|
//These values match OpenGL's defaults
|
||||||
_old = new GalPipelineState
|
_old = new GalPipelineState
|
||||||
|
|
|
@ -20,10 +20,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
public Rect(int x, int y, int width, int height)
|
public Rect(int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
this.X = x;
|
X = x;
|
||||||
this.Y = y;
|
Y = y;
|
||||||
this.Width = width;
|
Width = width;
|
||||||
this.Height = height;
|
Height = height;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -282,8 +282,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
public void SetTransform(bool flipX, bool flipY, int top, int left, int right, int bottom)
|
public void SetTransform(bool flipX, bool flipY, int top, int left, int right, int bottom)
|
||||||
{
|
{
|
||||||
this._flipX = flipX;
|
_flipX = flipX;
|
||||||
this._flipY = flipY;
|
_flipY = flipY;
|
||||||
|
|
||||||
_cropTop = top;
|
_cropTop = top;
|
||||||
_cropLeft = left;
|
_cropLeft = left;
|
||||||
|
|
|
@ -27,7 +27,7 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
public OglShader(OglConstBuffer buffer)
|
public OglShader(OglConstBuffer buffer)
|
||||||
{
|
{
|
||||||
this._buffer = buffer;
|
_buffer = buffer;
|
||||||
|
|
||||||
_stages = new ConcurrentDictionary<long, OglShaderStage>();
|
_stages = new ConcurrentDictionary<long, OglShaderStage>();
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,10 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
IEnumerable<ShaderDeclInfo> constBufferUsage,
|
IEnumerable<ShaderDeclInfo> constBufferUsage,
|
||||||
IEnumerable<ShaderDeclInfo> textureUsage)
|
IEnumerable<ShaderDeclInfo> textureUsage)
|
||||||
{
|
{
|
||||||
this.Type = type;
|
Type = type;
|
||||||
this.Code = code;
|
Code = code;
|
||||||
this.ConstBufferUsage = constBufferUsage;
|
ConstBufferUsage = constBufferUsage;
|
||||||
this.TextureUsage = textureUsage;
|
TextureUsage = textureUsage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Compile()
|
public void Compile()
|
||||||
|
|
|
@ -13,8 +13,8 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||||
|
|
||||||
public OglStreamBuffer(BufferTarget target, long size)
|
public OglStreamBuffer(BufferTarget target, long size)
|
||||||
{
|
{
|
||||||
this.Target = target;
|
Target = target;
|
||||||
this.Size = size;
|
Size = size;
|
||||||
|
|
||||||
Handle = GL.GenBuffer();
|
Handle = GL.GenBuffer();
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
private GlslDecl(GalShaderType shaderType)
|
private GlslDecl(GalShaderType shaderType)
|
||||||
{
|
{
|
||||||
this.ShaderType = shaderType;
|
ShaderType = shaderType;
|
||||||
|
|
||||||
_mCbTextures = new Dictionary<ShaderIrOp, ShaderDeclInfo>();
|
_mCbTextures = new Dictionary<ShaderIrOp, ShaderDeclInfo>();
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
IEnumerable<ShaderDeclInfo> textures,
|
IEnumerable<ShaderDeclInfo> textures,
|
||||||
IEnumerable<ShaderDeclInfo> uniforms)
|
IEnumerable<ShaderDeclInfo> uniforms)
|
||||||
{
|
{
|
||||||
this.Code = code;
|
Code = code;
|
||||||
this.Textures = textures;
|
Textures = textures;
|
||||||
this.Uniforms = uniforms;
|
Uniforms = uniforms;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,8 +7,8 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrAsg(ShaderIrNode dst, ShaderIrNode src)
|
public ShaderIrAsg(ShaderIrNode dst, ShaderIrNode src)
|
||||||
{
|
{
|
||||||
this.Dst = dst;
|
Dst = dst;
|
||||||
this.Src = src;
|
Src = src;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -16,7 +16,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrBlock(int position)
|
public ShaderIrBlock(int position)
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
|
|
||||||
Sources = new List<ShaderIrBlock>();
|
Sources = new List<ShaderIrBlock>();
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrCmnt(string comment)
|
public ShaderIrCmnt(string comment)
|
||||||
{
|
{
|
||||||
this.Comment = comment;
|
Comment = comment;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,9 +9,9 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrCond(ShaderIrNode pred, ShaderIrNode child, bool not)
|
public ShaderIrCond(ShaderIrNode pred, ShaderIrNode child, bool not)
|
||||||
{
|
{
|
||||||
this.Pred = pred;
|
Pred = pred;
|
||||||
this.Child = child;
|
Child = child;
|
||||||
this.Not = not;
|
Not = not;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
public ShaderIrMetaIpa(ShaderIpaMode mode)
|
public ShaderIrMetaIpa(ShaderIpaMode mode)
|
||||||
{
|
{
|
||||||
this.Mode = mode;
|
Mode = mode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrMetaTex(int elem)
|
public ShaderIrMetaTex(int elem)
|
||||||
{
|
{
|
||||||
this.Elem = elem;
|
Elem = elem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,8 +8,8 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrMetaTexq(ShaderTexqInfo info, int elem)
|
public ShaderIrMetaTexq(ShaderTexqInfo info, int elem)
|
||||||
{
|
{
|
||||||
this.Info = info;
|
Info = info;
|
||||||
this.Elem = elem;
|
Elem = elem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -15,11 +15,11 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
ShaderIrNode operandC = null,
|
ShaderIrNode operandC = null,
|
||||||
ShaderIrMeta metaData = null)
|
ShaderIrMeta metaData = null)
|
||||||
{
|
{
|
||||||
this.Inst = inst;
|
Inst = inst;
|
||||||
this.OperandA = operandA;
|
OperandA = operandA;
|
||||||
this.OperandB = operandB;
|
OperandB = operandB;
|
||||||
this.OperandC = operandC;
|
OperandC = operandC;
|
||||||
this.MetaData = metaData;
|
MetaData = metaData;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -8,8 +8,8 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrOperAbuf(int offs, ShaderIrNode vertex)
|
public ShaderIrOperAbuf(int offs, ShaderIrNode vertex)
|
||||||
{
|
{
|
||||||
this.Offs = offs;
|
Offs = offs;
|
||||||
this.Vertex = vertex;
|
Vertex = vertex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -9,9 +9,9 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrOperCbuf(int index, int pos, ShaderIrNode offs = null)
|
public ShaderIrOperCbuf(int index, int pos, ShaderIrNode offs = null)
|
||||||
{
|
{
|
||||||
this.Index = index;
|
Index = index;
|
||||||
this.Pos = pos;
|
Pos = pos;
|
||||||
this.Offs = offs;
|
Offs = offs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrOperGpr(int index)
|
public ShaderIrOperGpr(int index)
|
||||||
{
|
{
|
||||||
this.Index = index;
|
Index = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ShaderIrOperGpr MakeTemporary(int index = 0)
|
public static ShaderIrOperGpr MakeTemporary(int index = 0)
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrOperImm(int value)
|
public ShaderIrOperImm(int value)
|
||||||
{
|
{
|
||||||
this.Value = value;
|
Value = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrOperImmf(float value)
|
public ShaderIrOperImmf(float value)
|
||||||
{
|
{
|
||||||
this.Value = value;
|
Value = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -11,7 +11,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderIrOperPred(int index)
|
public ShaderIrOperPred(int index)
|
||||||
{
|
{
|
||||||
this.Index = index;
|
Index = index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -14,8 +14,8 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||||
|
|
||||||
public ShaderDecodeEntry(ShaderDecodeFunc func, int xBits)
|
public ShaderDecodeEntry(ShaderDecodeFunc func, int xBits)
|
||||||
{
|
{
|
||||||
this.Func = func;
|
Func = func;
|
||||||
this.XBits = xBits;
|
XBits = xBits;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,11 +16,11 @@ namespace Ryujinx.Graphics.Gal
|
||||||
int cbuf = 0,
|
int cbuf = 0,
|
||||||
int size = 1)
|
int size = 1)
|
||||||
{
|
{
|
||||||
this.Name = name;
|
Name = name;
|
||||||
this.Index = index;
|
Index = index;
|
||||||
this.IsCb = isCb;
|
IsCb = isCb;
|
||||||
this.Cbuf = cbuf;
|
Cbuf = cbuf;
|
||||||
this.Size = size;
|
Size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void Enlarge(int newSize)
|
internal void Enlarge(int newSize)
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public GpuResourceManager(NvGpu gpu)
|
public GpuResourceManager(NvGpu gpu)
|
||||||
{
|
{
|
||||||
this._gpu = gpu;
|
_gpu = gpu;
|
||||||
|
|
||||||
_uploadedKeys = new HashSet<long>[(int)NvGpuBufferType.Count];
|
_uploadedKeys = new HashSet<long>[(int)NvGpuBufferType.Count];
|
||||||
|
|
||||||
|
|
|
@ -61,8 +61,8 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public MacroInterpreter(NvGpuFifo pFifo, INvGpuEngine engine)
|
public MacroInterpreter(NvGpuFifo pFifo, INvGpuEngine engine)
|
||||||
{
|
{
|
||||||
this._pFifo = pFifo;
|
_pFifo = pFifo;
|
||||||
this._engine = engine;
|
_engine = engine;
|
||||||
|
|
||||||
Fifo = new Queue<int>();
|
Fifo = new Queue<int>();
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,9 @@ namespace Ryujinx.Graphics.Memory
|
||||||
|
|
||||||
public NvGpuPbEntry(int method, int subChannel, params int[] arguments)
|
public NvGpuPbEntry(int method, int subChannel, params int[] arguments)
|
||||||
{
|
{
|
||||||
this.Method = method;
|
Method = method;
|
||||||
this.SubChannel = subChannel;
|
SubChannel = subChannel;
|
||||||
this._mArguments = arguments;
|
_mArguments = arguments;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -34,7 +34,7 @@ namespace Ryujinx.Graphics.Memory
|
||||||
|
|
||||||
public NvGpuVmm(AMemory memory)
|
public NvGpuVmm(AMemory memory)
|
||||||
{
|
{
|
||||||
this.Memory = memory;
|
Memory = memory;
|
||||||
|
|
||||||
_cache = new NvGpuVmmCache();
|
_cache = new NvGpuVmmCache();
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public NvGpu(IGalRenderer renderer)
|
public NvGpu(IGalRenderer renderer)
|
||||||
{
|
{
|
||||||
this.Renderer = renderer;
|
Renderer = renderer;
|
||||||
|
|
||||||
ResourceManager = new GpuResourceManager(this);
|
ResourceManager = new GpuResourceManager(this);
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public NvGpuEngine2D(NvGpu gpu)
|
public NvGpuEngine2D(NvGpu gpu)
|
||||||
{
|
{
|
||||||
this._gpu = gpu;
|
_gpu = gpu;
|
||||||
|
|
||||||
Registers = new int[0xe00];
|
Registers = new int[0xe00];
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public NvGpuEngine3D(NvGpu gpu)
|
public NvGpuEngine3D(NvGpu gpu)
|
||||||
{
|
{
|
||||||
this._gpu = gpu;
|
_gpu = gpu;
|
||||||
|
|
||||||
Registers = new int[0xe00];
|
Registers = new int[0xe00];
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public NvGpuEngineM2Mf(NvGpu gpu)
|
public NvGpuEngineM2Mf(NvGpu gpu)
|
||||||
{
|
{
|
||||||
this._gpu = gpu;
|
_gpu = gpu;
|
||||||
|
|
||||||
Registers = new int[0x1d6];
|
Registers = new int[0x1d6];
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public NvGpuEngineP2Mf(NvGpu gpu)
|
public NvGpuEngineP2Mf(NvGpu gpu)
|
||||||
{
|
{
|
||||||
this._gpu = gpu;
|
_gpu = gpu;
|
||||||
|
|
||||||
Registers = new int[0x80];
|
Registers = new int[0x80];
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public CachedMacro(NvGpuFifo pFifo, INvGpuEngine engine, int position)
|
public CachedMacro(NvGpuFifo pFifo, INvGpuEngine engine, int position)
|
||||||
{
|
{
|
||||||
this.Position = position;
|
Position = position;
|
||||||
|
|
||||||
_interpreter = new MacroInterpreter(pFifo, engine);
|
_interpreter = new MacroInterpreter(pFifo, engine);
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public NvGpuFifo(NvGpu gpu)
|
public NvGpuFifo(NvGpu gpu)
|
||||||
{
|
{
|
||||||
this._gpu = gpu;
|
_gpu = gpu;
|
||||||
|
|
||||||
_bufferQueue = new ConcurrentQueue<(NvGpuVmm, NvGpuPbEntry[])>();
|
_bufferQueue = new ConcurrentQueue<(NvGpuVmm, NvGpuPbEntry[])>();
|
||||||
|
|
||||||
|
|
|
@ -28,10 +28,10 @@ namespace Ryujinx.Graphics.Texture
|
||||||
|
|
||||||
public ImageDescriptor(int bytesPerPixel, int blockWidth, int blockHeight, TargetBuffer target)
|
public ImageDescriptor(int bytesPerPixel, int blockWidth, int blockHeight, TargetBuffer target)
|
||||||
{
|
{
|
||||||
this.BytesPerPixel = bytesPerPixel;
|
BytesPerPixel = bytesPerPixel;
|
||||||
this.BlockWidth = blockWidth;
|
BlockWidth = blockWidth;
|
||||||
this.BlockHeight = blockHeight;
|
BlockHeight = blockHeight;
|
||||||
this.Target = target;
|
Target = target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -265,7 +265,7 @@ namespace Ryujinx.Graphics.Texture
|
||||||
|
|
||||||
ImageDescriptor desc = GetImageDescriptor(image.Format);
|
ImageDescriptor desc = GetImageDescriptor(image.Format);
|
||||||
|
|
||||||
(int width, int height) = ImageUtils.GetImageSizeInBlocks(image);
|
(int width, int height) = GetImageSizeInBlocks(image);
|
||||||
|
|
||||||
int bytesPerPixel = desc.BytesPerPixel;
|
int bytesPerPixel = desc.BytesPerPixel;
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ namespace Ryujinx.Graphics.Texture
|
||||||
|
|
||||||
public LinearSwizzle(int pitch, int bpp)
|
public LinearSwizzle(int pitch, int bpp)
|
||||||
{
|
{
|
||||||
this._pitch = pitch;
|
_pitch = pitch;
|
||||||
this._bpp = bpp;
|
_bpp = bpp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int GetSwizzleOffset(int x, int y)
|
public int GetSwizzleOffset(int x, int y)
|
||||||
|
|
|
@ -9,9 +9,9 @@ namespace Ryujinx.Graphics
|
||||||
|
|
||||||
public ValueRange(long start, long end, T value = default(T))
|
public ValueRange(long start, long end, T value = default(T))
|
||||||
{
|
{
|
||||||
this.Start = start;
|
Start = start;
|
||||||
this.End = end;
|
End = end;
|
||||||
this.Value = value;
|
Value = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -18,11 +18,11 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
UInt128 userId,
|
UInt128 userId,
|
||||||
SaveSpaceId saveSpaceId)
|
SaveSpaceId saveSpaceId)
|
||||||
{
|
{
|
||||||
this.TitleId = titleId;
|
TitleId = titleId;
|
||||||
this.UserId = userId;
|
UserId = userId;
|
||||||
this.SaveId = saveId;
|
SaveId = saveId;
|
||||||
this.SaveDataType = saveDataType;
|
SaveDataType = saveDataType;
|
||||||
this.SaveSpaceId = saveSpaceId;
|
SaveSpaceId = saveSpaceId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public ArraySubscriptingExpression(BaseNode leftNode, BaseNode subscript) : base(NodeType.ArraySubscriptingExpression)
|
public ArraySubscriptingExpression(BaseNode leftNode, BaseNode subscript) : base(NodeType.ArraySubscriptingExpression)
|
||||||
{
|
{
|
||||||
this._leftNode = leftNode;
|
_leftNode = leftNode;
|
||||||
this._subscript = subscript;
|
_subscript = subscript;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,14 +10,14 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public ArrayType(BaseNode Base, BaseNode dimensionExpression = null) : base(NodeType.ArrayType)
|
public ArrayType(BaseNode Base, BaseNode dimensionExpression = null) : base(NodeType.ArrayType)
|
||||||
{
|
{
|
||||||
this._base = Base;
|
_base = Base;
|
||||||
this._dimensionExpression = dimensionExpression;
|
_dimensionExpression = dimensionExpression;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ArrayType(BaseNode Base, string dimensionString) : base(NodeType.ArrayType)
|
public ArrayType(BaseNode Base, string dimensionString) : base(NodeType.ArrayType)
|
||||||
{
|
{
|
||||||
this._base = Base;
|
_base = Base;
|
||||||
this._dimensionString = dimensionString;
|
_dimensionString = dimensionString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool HasRightPart()
|
public override bool HasRightPart()
|
||||||
|
|
|
@ -64,7 +64,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public BaseNode(NodeType type)
|
public BaseNode(NodeType type)
|
||||||
{
|
{
|
||||||
this.Type = type;
|
Type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void Print(TextWriter writer)
|
public virtual void Print(TextWriter writer)
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public BinaryExpression(BaseNode leftPart, string name, BaseNode rightPart) : base(NodeType.BinaryExpression)
|
public BinaryExpression(BaseNode leftPart, string name, BaseNode rightPart) : base(NodeType.BinaryExpression)
|
||||||
{
|
{
|
||||||
this._leftPart = leftPart;
|
_leftPart = leftPart;
|
||||||
this._name = name;
|
_name = name;
|
||||||
this._rightPart = rightPart;
|
_rightPart = rightPart;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public BracedExpression(BaseNode element, BaseNode expression, bool isArrayExpression) : base(NodeType.BracedExpression)
|
public BracedExpression(BaseNode element, BaseNode expression, bool isArrayExpression) : base(NodeType.BracedExpression)
|
||||||
{
|
{
|
||||||
this._element = element;
|
_element = element;
|
||||||
this._expression = expression;
|
_expression = expression;
|
||||||
this._isArrayExpression = isArrayExpression;
|
_isArrayExpression = isArrayExpression;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public BracedRangeExpression(BaseNode firstNode, BaseNode lastNode, BaseNode expression) : base(NodeType.BracedRangeExpression)
|
public BracedRangeExpression(BaseNode firstNode, BaseNode lastNode, BaseNode expression) : base(NodeType.BracedRangeExpression)
|
||||||
{
|
{
|
||||||
this._firstNode = firstNode;
|
_firstNode = firstNode;
|
||||||
this._lastNode = lastNode;
|
_lastNode = lastNode;
|
||||||
this._expression = expression;
|
_expression = expression;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public CallExpression(BaseNode callee, List<BaseNode> nodes) : base(nodes, NodeType.CallExpression)
|
public CallExpression(BaseNode callee, List<BaseNode> nodes) : base(nodes, NodeType.CallExpression)
|
||||||
{
|
{
|
||||||
this._callee = callee;
|
_callee = callee;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public CastExpression(string kind, BaseNode to, BaseNode @from) : base(NodeType.CastExpression)
|
public CastExpression(string kind, BaseNode to, BaseNode @from) : base(NodeType.CastExpression)
|
||||||
{
|
{
|
||||||
this._kind = kind;
|
_kind = kind;
|
||||||
this._to = to;
|
_to = to;
|
||||||
this._from = @from;
|
_from = @from;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public ConditionalExpression(BaseNode conditionNode, BaseNode thenNode, BaseNode elseNode) : base(NodeType.ConditionalExpression)
|
public ConditionalExpression(BaseNode conditionNode, BaseNode thenNode, BaseNode elseNode) : base(NodeType.ConditionalExpression)
|
||||||
{
|
{
|
||||||
this._thenNode = thenNode;
|
_thenNode = thenNode;
|
||||||
this._conditionNode = conditionNode;
|
_conditionNode = conditionNode;
|
||||||
this._elseNode = elseNode;
|
_elseNode = elseNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public ConversionExpression(BaseNode typeNode, BaseNode expressions) : base(NodeType.ConversionExpression)
|
public ConversionExpression(BaseNode typeNode, BaseNode expressions) : base(NodeType.ConversionExpression)
|
||||||
{
|
{
|
||||||
this._typeNode = typeNode;
|
_typeNode = typeNode;
|
||||||
this._expressions = expressions;
|
_expressions = expressions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public CtorDtorNameType(BaseNode name, bool isDestructor) : base(NodeType.CtorDtorNameType, name)
|
public CtorDtorNameType(BaseNode name, bool isDestructor) : base(NodeType.CtorDtorNameType, name)
|
||||||
{
|
{
|
||||||
this._isDestructor = isDestructor;
|
_isDestructor = isDestructor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public CtorVtableSpecialName(BaseNode firstType, BaseNode secondType) : base(NodeType.CtorVtableSpecialName)
|
public CtorVtableSpecialName(BaseNode firstType, BaseNode secondType) : base(NodeType.CtorVtableSpecialName)
|
||||||
{
|
{
|
||||||
this._firstType = firstType;
|
_firstType = firstType;
|
||||||
this._secondType = secondType;
|
_secondType = secondType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public DeleteExpression(BaseNode child, bool isGlobal, bool isArrayExpression) : base(NodeType.DeleteExpression, child)
|
public DeleteExpression(BaseNode child, bool isGlobal, bool isArrayExpression) : base(NodeType.DeleteExpression, child)
|
||||||
{
|
{
|
||||||
this._isGlobal = isGlobal;
|
_isGlobal = isGlobal;
|
||||||
this._isArrayExpression = isArrayExpression;
|
_isArrayExpression = isArrayExpression;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public ElaboratedType(string elaborated, BaseNode type) : base(NodeType.ElaboratedType, type)
|
public ElaboratedType(string elaborated, BaseNode type) : base(NodeType.ElaboratedType, type)
|
||||||
{
|
{
|
||||||
this._elaborated = elaborated;
|
_elaborated = elaborated;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public EnclosedExpression(string prefix, BaseNode expression, string postfix) : base(NodeType.EnclosedExpression)
|
public EnclosedExpression(string prefix, BaseNode expression, string postfix) : base(NodeType.EnclosedExpression)
|
||||||
{
|
{
|
||||||
this._prefix = prefix;
|
_prefix = prefix;
|
||||||
this._expression = expression;
|
_expression = expression;
|
||||||
this._postfix = postfix;
|
_postfix = postfix;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -13,12 +13,12 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public EncodedFunction(BaseNode name, BaseNode Params, BaseNode cv, BaseNode Ref, BaseNode attrs, BaseNode ret) : base(NodeType.NameType)
|
public EncodedFunction(BaseNode name, BaseNode Params, BaseNode cv, BaseNode Ref, BaseNode attrs, BaseNode ret) : base(NodeType.NameType)
|
||||||
{
|
{
|
||||||
this._name = name;
|
_name = name;
|
||||||
this._params = Params;
|
_params = Params;
|
||||||
this._cv = cv;
|
_cv = cv;
|
||||||
this._ref = Ref;
|
_ref = Ref;
|
||||||
this._attrs = attrs;
|
_attrs = attrs;
|
||||||
this._ret = ret;
|
_ret = ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -11,10 +11,10 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public FoldExpression(bool isLeftFold, string operatorName, BaseNode expression, BaseNode initializer) : base(NodeType.FunctionParameter)
|
public FoldExpression(bool isLeftFold, string operatorName, BaseNode expression, BaseNode initializer) : base(NodeType.FunctionParameter)
|
||||||
{
|
{
|
||||||
this._isLeftFold = isLeftFold;
|
_isLeftFold = isLeftFold;
|
||||||
this._operatorName = operatorName;
|
_operatorName = operatorName;
|
||||||
this._expression = expression;
|
_expression = expression;
|
||||||
this._initializer = initializer;
|
_initializer = initializer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public ForwardTemplateReference(int index) : base(NodeType.ForwardTemplateReference)
|
public ForwardTemplateReference(int index) : base(NodeType.ForwardTemplateReference)
|
||||||
{
|
{
|
||||||
this._index = index;
|
_index = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetName()
|
public override string GetName()
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public FunctionParameter(string number) : base(NodeType.FunctionParameter)
|
public FunctionParameter(string number) : base(NodeType.FunctionParameter)
|
||||||
{
|
{
|
||||||
this._number = number;
|
_number = number;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -12,11 +12,11 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public FunctionType(BaseNode returnType, BaseNode Params, BaseNode cvQualifier, SimpleReferenceType referenceQualifier, BaseNode exceptionSpec) : base(NodeType.FunctionType)
|
public FunctionType(BaseNode returnType, BaseNode Params, BaseNode cvQualifier, SimpleReferenceType referenceQualifier, BaseNode exceptionSpec) : base(NodeType.FunctionType)
|
||||||
{
|
{
|
||||||
this._returnType = returnType;
|
_returnType = returnType;
|
||||||
this._params = Params;
|
_params = Params;
|
||||||
this._cvQualifier = cvQualifier;
|
_cvQualifier = cvQualifier;
|
||||||
this._referenceQualifier = referenceQualifier;
|
_referenceQualifier = referenceQualifier;
|
||||||
this._exceptionSpec = exceptionSpec;
|
_exceptionSpec = exceptionSpec;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,8 +10,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public InitListExpression(BaseNode typeNode, List<BaseNode> nodes) : base(NodeType.InitListExpression)
|
public InitListExpression(BaseNode typeNode, List<BaseNode> nodes) : base(NodeType.InitListExpression)
|
||||||
{
|
{
|
||||||
this._typeNode = typeNode;
|
_typeNode = typeNode;
|
||||||
this._nodes = nodes;
|
_nodes = nodes;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public IntegerCastExpression(BaseNode type, string number) : base(NodeType.IntegerCastExpression, type)
|
public IntegerCastExpression(BaseNode type, string number) : base(NodeType.IntegerCastExpression, type)
|
||||||
{
|
{
|
||||||
this._number = number;
|
_number = number;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public IntegerLiteral(string litteralName, string litteralValue) : base(NodeType.IntegerLiteral)
|
public IntegerLiteral(string litteralName, string litteralValue) : base(NodeType.IntegerLiteral)
|
||||||
{
|
{
|
||||||
this._litteralValue = litteralValue;
|
_litteralValue = litteralValue;
|
||||||
this._litteralName = litteralName;
|
_litteralName = litteralName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public LocalName(BaseNode encoding, BaseNode entity) : base(NodeType.LocalName)
|
public LocalName(BaseNode encoding, BaseNode entity) : base(NodeType.LocalName)
|
||||||
{
|
{
|
||||||
this._encoding = encoding;
|
_encoding = encoding;
|
||||||
this._entity = entity;
|
_entity = entity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -10,9 +10,9 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public MemberExpression(BaseNode leftNode, string kind, BaseNode rightNode) : base(NodeType.MemberExpression)
|
public MemberExpression(BaseNode leftNode, string kind, BaseNode rightNode) : base(NodeType.MemberExpression)
|
||||||
{
|
{
|
||||||
this._leftNode = leftNode;
|
_leftNode = leftNode;
|
||||||
this._kind = kind;
|
_kind = kind;
|
||||||
this._rightNode = rightNode;
|
_rightNode = rightNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void PrintLeft(TextWriter writer)
|
public override void PrintLeft(TextWriter writer)
|
||||||
|
|
|
@ -8,12 +8,12 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public NameType(string nameValue, NodeType type) : base(type)
|
public NameType(string nameValue, NodeType type) : base(type)
|
||||||
{
|
{
|
||||||
this._nameValue = nameValue;
|
_nameValue = nameValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NameType(string nameValue) : base(NodeType.NameType)
|
public NameType(string nameValue) : base(NodeType.NameType)
|
||||||
{
|
{
|
||||||
this._nameValue = nameValue;
|
_nameValue = nameValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetName()
|
public override string GetName()
|
||||||
|
|
|
@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast
|
||||||
|
|
||||||
public NameTypeWithTemplateArguments(BaseNode prev, BaseNode templateArgument) : base(NodeType.NameTypeWithTemplateArguments)
|
public NameTypeWithTemplateArguments(BaseNode prev, BaseNode templateArgument) : base(NodeType.NameTypeWithTemplateArguments)
|
||||||
{
|
{
|
||||||
this._prev = prev;
|
_prev = prev;
|
||||||
this._templateArgument = templateArgument;
|
_templateArgument = templateArgument;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetName()
|
public override string GetName()
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue