Don't prevent other exceptions on known architecture
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Il2CppInspector
|
|||||||
// Get type from image architecture
|
// Get type from image architecture
|
||||||
var type = Assembly.GetExecutingAssembly().GetType("Il2CppInspector.Il2CppBinary" + stream.Arch.ToUpper());
|
var type = Assembly.GetExecutingAssembly().GetType("Il2CppInspector.Il2CppBinary" + stream.Arch.ToUpper());
|
||||||
if (type == null)
|
if (type == null)
|
||||||
throw new InvalidOperationException("Unsupported architecture: " + stream.Arch);
|
throw new NotImplementedException("Unsupported architecture: " + stream.Arch);
|
||||||
|
|
||||||
var inst = (Il2CppBinary) Activator.CreateInstance(type, stream);
|
var inst = (Il2CppBinary) Activator.CreateInstance(type, stream);
|
||||||
|
|
||||||
|
|||||||
@@ -182,7 +182,8 @@ namespace Il2CppInspector
|
|||||||
Console.Error.WriteLine("Could not process IL2CPP image");
|
Console.Error.WriteLine("Could not process IL2CPP image");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (InvalidOperationException ex) {
|
// Unknown architecture
|
||||||
|
catch (NotImplementedException ex) {
|
||||||
Console.Error.WriteLine(ex.Message);
|
Console.Error.WriteLine(ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user