@@ -62,6 +62,7 @@ public static void Init(GameProcess __instance, MovieController ____gameMovie, G
6262 _gameMovie = ____gameMovie ;
6363 _monitors = ____monitors ;
6464 PolyFill . timer = 0 ;
65+ PolyFill . isPause = false ;
6566 }
6667
6768 public static void OnBeforePatch ( HarmonyLib . Harmony h )
@@ -166,9 +167,10 @@ private static class PolyFill
166167 public static double timer ;
167168 public static KeyCode Autoplay = SetAutoplay ( ) ;
168169
169- private static KeyCode SetAutoplay ( ) {
170- try { return ( KeyCode ) Enum . Parse ( typeof ( KeyCode ) , KeyMap . GetAutoplay ( ) ) ; }
171- catch ( Exception ) { return KeyCode . Home ; }
170+ private static KeyCode SetAutoplay ( )
171+ {
172+ try { return ( KeyCode ) Enum . Parse ( typeof ( KeyCode ) , KeyMap . GetAutoplay ( ) ) ; }
173+ catch ( Exception ) { return KeyCode . Home ; }
172174 }
173175
174176 public static void DebugTimeSkip ( int addMsec )
@@ -218,6 +220,8 @@ public static void Postfix(byte ____sequence)
218220 timer += GameManager . GetGameMSecAddD ( ) ;
219221 }
220222
223+ if ( KeyMap . disableDebugFeatureHotkeys ) return ;
224+
221225 if ( Input . GetKeyDown ( Autoplay ) )
222226 {
223227 GameManager . AutoPlay = ( GameManager . AutoPlayMode ) ( ( int ) ( GameManager . AutoPlay + 1 ) % Enum . GetNames ( typeof ( GameManager . AutoPlayMode ) ) . Length ) ;
@@ -242,10 +246,12 @@ public static void Postfix(byte ____sequence)
242246 num23 = 1000 ;
243247 }
244248
245- int addMsec = ( ( ! DebugInput . GetKey ( KeyCode . LeftShift ) && ! DebugInput . GetKey ( KeyCode . RightShift ) ) ? ( ( ! DebugInput . GetKey ( KeyCode . LeftControl ) && ! DebugInput . GetKey ( KeyCode . RightControl ) ) ? num23 : ( num23 * 10 ) ) : ( num23 * 5 ) ) ;
249+ int addMsec = ( ( ! DebugInput . GetKey ( KeyCode . LeftShift ) && ! DebugInput . GetKey ( KeyCode . RightShift ) )
250+ ? ( ( ! DebugInput . GetKey ( KeyCode . LeftControl ) && ! DebugInput . GetKey ( KeyCode . RightControl ) ) ? num23 : ( num23 * 10 ) )
251+ : ( num23 * 5 ) ) ;
246252 Singleton < GamePlayManager > . Instance . Initialize ( ) ;
247253 DebugTimeSkip ( addMsec ) ;
248254 }
249255 }
250256 }
251- }
257+ }
0 commit comments