|
@ -51,6 +51,8 @@ namespace IPA.Loader |
|
|
Reset = false; |
|
|
Reset = false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!PluginLoader.IsFirstLoadComplete) return; // if the first load isn't complete, skip all of this
|
|
|
|
|
|
|
|
|
var referToState = unchecked(++updateState); |
|
|
var referToState = unchecked(++updateState); |
|
|
var copy = DisabledModIds.ToArray(); |
|
|
var copy = DisabledModIds.ToArray(); |
|
|
if (disableUpdateTask == null || disableUpdateTask.IsCompleted) |
|
|
if (disableUpdateTask == null || disableUpdateTask.IsCompleted) |
|
@ -83,6 +85,8 @@ namespace IPA.Loader |
|
|
|
|
|
|
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (transaction.WillNeedRestart) |
|
|
|
|
|
Logger.loader.Warn("Runtime disabled config reload will need game restart to apply"); |
|
|
return transaction.Commit().ContinueWith(t => |
|
|
return transaction.Commit().ContinueWith(t => |
|
|
{ |
|
|
{ |
|
|
if (t.IsFaulted) |
|
|
if (t.IsFaulted) |
|
|