@@ -26,6 +26,8 @@ public class PostPatchLoader : LoadingSystem
2626
2727 private bool ready = false ;
2828
29+ private string progressTitle = "ModuleManager: Post patch" ;
30+
2931 public static void AddPostPatchCallback ( ModuleManagerPostPatchCallback callback )
3032 {
3133 if ( ! postPatchCallbacks . Contains ( callback ) )
@@ -48,7 +50,7 @@ private void Awake()
4850
4951 public override float ProgressFraction ( ) => 1 ;
5052
51- public override string ProgressTitle ( ) => "ModuleManager : post patch" ;
53+ public override string ProgressTitle ( ) => progressTitle ;
5254
5355 public override void StartLoad ( )
5456 {
@@ -61,6 +63,8 @@ private IEnumerator Run()
6163 Stopwatch waitTimer = new Stopwatch ( ) ;
6264 waitTimer . Start ( ) ;
6365
66+ progressTitle = "ModuleManager: Waiting for patching to finish" ;
67+
6468 while ( databaseConfigs == null ) yield return null ;
6569
6670 waitTimer . Stop ( ) ;
@@ -69,6 +73,7 @@ private IEnumerator Run()
6973 Stopwatch postPatchTimer = new Stopwatch ( ) ;
7074 postPatchTimer . Start ( ) ;
7175
76+ progressTitle = "ModuleManager: Applying patched game database" ;
7277 logger . Info ( "Applying patched game database" ) ;
7378
7479 foreach ( UrlDir . UrlFile file in GameDatabase . Instance . root . AllConfigFiles )
@@ -89,6 +94,7 @@ private IEnumerator Run()
8994 // Using an dedicated external log is nice. Dumping it into KSP.log breaking the known formats is not.
9095 if ( File . Exists ( logPath ) )
9196 {
97+ progressTitle = "ModuleManager: Dumping log to KSP log" ;
9298 logger . Info ( "Dumping ModuleManager log to main log" ) ;
9399 logger . Info ( "\n #### BEGIN MODULEMANAGER LOG ####\n \n \n " + File . ReadAllText ( logPath ) + "\n \n \n #### END MODULEMANAGER LOG ####" ) ;
94100 }
@@ -106,6 +112,8 @@ private IEnumerator Run()
106112
107113 yield return null ;
108114
115+ progressTitle = "ModuleManager: Reloading things" ;
116+
109117 logger . Info ( "Reloading resources definitions" ) ;
110118 PartResourceLibrary . Instance . LoadDefinitions ( ) ;
111119
@@ -117,6 +125,7 @@ private IEnumerator Run()
117125
118126 yield return null ;
119127
128+ progressTitle = "ModuleManager: Running post patch callbacks" ;
120129 logger . Info ( "Running post patch callbacks" ) ;
121130
122131 foreach ( ModuleManagerPostPatchCallback callback in postPatchCallbacks )
0 commit comments