mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Evil hack to fix InteropPatcher sometimes returning an error
This commit is contained in:
parent
e763e174a5
commit
704dcebc46
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue