migrate versioning to StructVersion class, add handling/detection for 29.2/31.2
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
All rights reserved.
|
||||
*/
|
||||
|
||||
using Il2CppInspector.Next;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
@@ -216,7 +217,7 @@ namespace Il2CppInspector
|
||||
offset = nextLea?.foundOffset + leaSize ?? buff2Size;
|
||||
}
|
||||
|
||||
if ((image.Version < 21 && leas.Count == 2) || (image.Version >= 21 && leas.Count == 3)) {
|
||||
if ((image.Version < MetadataVersions.V210 && leas.Count == 2) || (image.Version >= MetadataVersions.V210 && leas.Count == 3)) {
|
||||
// Register-based argument passing?
|
||||
var leaRSI = leas.FirstOrDefault(l => l.Value == RSI).Key.address;
|
||||
var leaRDI = leas.FirstOrDefault(l => l.Value == RDI).Key.address;
|
||||
|
||||
Reference in New Issue
Block a user