Don't prevent other exceptions on known architecture

This commit is contained in:
Katy Coe
2019-10-22 16:44:44 +02:00
parent eeb46c5820
commit cc2e1b61a6
2 changed files with 3 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ namespace Il2CppInspector
// Get type from image architecture
var type = Assembly.GetExecutingAssembly().GetType("Il2CppInspector.Il2CppBinary" + stream.Arch.ToUpper());
if (type == null)
throw new InvalidOperationException("Unsupported architecture: " + stream.Arch);
throw new NotImplementedException("Unsupported architecture: " + stream.Arch);
var inst = (Il2CppBinary) Activator.CreateInstance(type, stream);

View File

@@ -182,7 +182,8 @@ namespace Il2CppInspector
Console.Error.WriteLine("Could not process IL2CPP image");
}
}
catch (InvalidOperationException ex) {
// Unknown architecture
catch (NotImplementedException ex) {
Console.Error.WriteLine(ex.Message);
}
}