mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -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 );
|
PatchFile( path );
|
||||||
return 0;
|
return 0;
|
||||||
} catch( Exception ex ) {
|
} 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;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue