|
@ -54,13 +54,14 @@ namespace IPA.Injector |
|
|
SelfConfig.Set(); |
|
|
SelfConfig.Set(); |
|
|
|
|
|
|
|
|
loader.Debug("Prepping bootstrapper"); |
|
|
loader.Debug("Prepping bootstrapper"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The whole mess that follows is an attempt to work around Mono failing to
|
|
|
// The whole mess that follows is an attempt to work around Mono failing to
|
|
|
// call the library load routine for Mono.Cecil when the debugger is attached.
|
|
|
// call the library load routine for Mono.Cecil when the debugger is attached.
|
|
|
bool runProperly = false; |
|
|
bool runProperly = false; |
|
|
while (!runProperly) // retry until it finishes, or errors
|
|
|
while (!runProperly) // retry until it finishes, or errors
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
try // TODO: fix this mess
|
|
|
|
|
|
{ // currently it gets stuck in an infinite loop because Mono refuses
|
|
|
|
|
|
// to use Mono.Cecil even if it is loaded when the debugger is attached.
|
|
|
InstallBootstrapPatch(); |
|
|
InstallBootstrapPatch(); |
|
|
runProperly = true; |
|
|
runProperly = true; |
|
|
} |
|
|
} |
|
|