Fix error caused by threaded input handlers before time syncing.
This commit is contained in:
@@ -502,7 +502,6 @@ namespace Cryville.Crtr {
|
|||||||
Game.AudioSequencer.SeekTime(startOffset, SeekOrigin.Current);
|
Game.AudioSequencer.SeekTime(startOffset, SeekOrigin.Current);
|
||||||
Logger.Log("main", 0, "Load/Prehandle", "Cleaning up"); yield return .95f;
|
Logger.Log("main", 0, "Load/Prehandle", "Cleaning up"); yield return .95f;
|
||||||
if (logEnabled && Settings.Default.HideLogOnPlay) ToggleLogs();
|
if (logEnabled && Settings.Default.HideLogOnPlay) ToggleLogs();
|
||||||
inputProxy.Activate();
|
|
||||||
GC.Collect();
|
GC.Collect();
|
||||||
if (disableGC) GarbageCollector.GCMode = GarbageCollector.Mode.Disabled;
|
if (disableGC) GarbageCollector.GCMode = GarbageCollector.Mode.Disabled;
|
||||||
timer.Stop();
|
timer.Stop();
|
||||||
@@ -516,6 +515,7 @@ namespace Cryville.Crtr {
|
|||||||
Game.AudioSequencer.Playing = true;
|
Game.AudioSequencer.Playing = true;
|
||||||
atime0 = Game.AudioClient.BufferPosition - startOffset;
|
atime0 = Game.AudioClient.BufferPosition - startOffset;
|
||||||
inputProxy.SyncTime(cbus.Time);
|
inputProxy.SyncTime(cbus.Time);
|
||||||
|
inputProxy.Activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Stop() {
|
public void Stop() {
|
||||||
|
|||||||
Reference in New Issue
Block a user