Evil hack to fix InteropPatcher sometimes returning an error

This commit is contained in:
UnknownShadow200 2018-07-24 14:45:09 +10:00
parent e763e174a5
commit 704dcebc46

View file

@ -40,7 +40,9 @@ namespace InteropPatcher {
PatchFile( path );
return 0;
} catch( Exception ex ) {
Console.WriteLine( ex );
// NOTE: this is an evil hack, but it fixes error being raised when attempting
// to compile the projects, despite having made no changes
if (ex is InvalidOperationException && ex.StackTrace.Contains("ProcessDebugHeader()")) return 0;
return 1;
}
}