@@ -40,7 +40,7 @@ public static void WaitForLegacy()
4040
4141 if ( _legacyLoadTask . IsFaulted )
4242 {
43- SslMain . PubLogger . LogFatal ( "The legacy loader thread encountered a fatal error!" ) ;
43+ ShortStartLoader . PluginLogger . LogFatal ( "The legacy loader thread encountered a fatal error!" ) ;
4444
4545 if ( _legacyLoadTask . Exception ? . InnerException != null )
4646 {
@@ -86,7 +86,7 @@ private static void WaitForThread()
8686
8787 if ( _modLoadTask . IsFaulted )
8888 {
89- SslMain . PubLogger . LogFatal ( "The mod loader thread encountered a fatal error!" ) ;
89+ ShortStartLoader . PluginLogger . LogFatal ( "The mod loader thread encountered a fatal error!" ) ;
9090
9191 if ( _modLoadTask . Exception ? . InnerException != null )
9292 {
@@ -220,29 +220,30 @@ void LoadAllArcOfPrefix2(string prefix)
220220 var stopWatchLoc = new Stopwatch ( ) ;
221221 stopWatchLoc . Start ( ) ;
222222
223- SslMain . PubLogger . LogInfo ( "■■■■■■■■ SSL's FileSystemOld Loading Thread has begun." ) ;
223+ ShortStartLoader . PluginLogger . LogInfo ( "■■■■■■■■ SSL's FileSystemOld Loading Thread has begun." ) ;
224224
225225 GameUty . UpdateFileSystemPathOld ( ) ;
226226
227- SslMain . PubLogger . LogInfo ( $ "■■■■■■■■ SSL's FileSystemOld Loading Thread has finished in { stopWatchLoc . Elapsed } ") ;
227+ ShortStartLoader . PluginLogger . LogInfo ( $ "■■■■■■■■ SSL's FileSystemOld Loading Thread has finished in { stopWatchLoc . Elapsed } ") ;
228228 } ) ;
229229
230230 _modLoadTask = Task . Factory . StartNew ( delegate
231231 {
232232 var stopwatch1 = new Stopwatch ( ) ;
233233 stopwatch1 . Start ( ) ;
234234
235- SslMain . PubLogger . LogInfo ( "■■■■■■■■ SSL's Mod Loading Thread has begun..." ) ;
235+ ShortStartLoader . PluginLogger . LogInfo ( "■■■■■■■■ SSL's Mod Loading Thread has begun..." ) ;
236236
237237 if ( Directory . Exists ( gamePath + "Mod" ) )
238238 {
239239 GameUty . m_ModFileSystem = new FileSystemWindows ( ) ;
240240 GameUty . m_ModFileSystem . SetBaseDirectory ( gamePath ) ;
241241 GameUty . m_ModFileSystem . AddFolder ( "Mod" ) ;
242242
243- var listOfDirsInModFolder = GameUty . m_ModFileSystem . GetList ( string . Empty , AFileSystemBase . ListType . AllFolder ) ;
243+ var listOfDirsInModFolder =
244+ GameUty . m_ModFileSystem . GetList ( string . Empty , AFileSystemBase . ListType . AllFolder ) ;
244245
245- SslMain . PubLogger . LogDebug ( $ "{ listOfDirsInModFolder . Count ( ) } have been found in the Mod Folder.") ;
246+ ShortStartLoader . PluginLogger . LogDebug ( $ "{ listOfDirsInModFolder . Count ( ) } have been found in the Mod Folder.") ;
246247
247248 //Supposedly it's useless since we're using AddFolder above. but maybe it isn't.
248249 for ( var c = 0 ; c < listOfDirsInModFolder . Length ; c ++ )
@@ -253,17 +254,22 @@ void LoadAllArcOfPrefix2(string prefix)
253254 }
254255 }
255256
256- if ( SslMain . UseNewMethod . Value )
257+ if ( ShortStartLoader . UseNewMethod . Value )
257258 {
258259 GameUty . m_aryModOnlysMenuFiles = GameUty . m_ModFileSystem . GetFileListAtExtension ( ".menu" ) ;
259260 for ( var r = 0 ; r < GameUty . m_aryModOnlysMenuFiles . Length ; r ++ )
260261 {
262+ #if DEBUG
263+ ShortStartLoader . PluginLogger . LogDebug ( $ "Getting file name of { GameUty . m_aryModOnlysMenuFiles [ r ] } ") ;
264+ #endif
261265 GameUty . m_aryModOnlysMenuFiles [ r ] = Path . GetFileName ( GameUty . m_aryModOnlysMenuFiles [ r ] ) ;
262266 }
263267 }
264268 else
265269 {
266- var listOfMenusInModFolder = GameUty . m_ModFileSystem . GetList ( string . Empty , AFileSystemBase . ListType . AllFile ) ;
270+ var listOfMenusInModFolder =
271+ GameUty . m_ModFileSystem . GetList ( string . Empty , AFileSystemBase . ListType . AllFile ) ;
272+
267273 GameUty . m_aryModOnlysMenuFiles = listOfMenusInModFolder . Where ( strFile => Regex . IsMatch ( strFile , ".*\\ .menu$" ) ) . ToArray ( ) ;
268274 }
269275
@@ -274,7 +280,7 @@ void LoadAllArcOfPrefix2(string prefix)
274280 }
275281 }
276282
277- SslMain . PubLogger . LogInfo ( $ "■■■■■■■■ SSL's Mod Load Thread has finished @ { stopwatch1 . Elapsed } ") ;
283+ ShortStartLoader . PluginLogger . LogInfo ( $ "■■■■■■■■ SSL's Mod Load Thread has finished @ { stopwatch1 . Elapsed } ") ;
278284 } ) ;
279285
280286 /* Informative, off for now.
@@ -512,6 +518,9 @@ void LoadAllArcOfPrefix2(string prefix)
512518 {
513519 foreach ( var path in bgArcs )
514520 {
521+ #if DEBUG
522+ ShortStartLoader . PluginLogger . LogDebug ( $ "Getting file name of { path } ") ;
523+ #endif
515524 var fileName = Path . GetFileName ( path ) ;
516525 var flag27 = Path . GetExtension ( fileName ) == ".asset_bg" && ! GameUty . BgFiles . ContainsKey ( fileName ) ;
517526 if ( flag27 )
@@ -529,6 +538,9 @@ void LoadAllArcOfPrefix2(string prefix)
529538 {
530539 foreach ( var arcPath in bgArcs )
531540 {
541+ #if DEBUG
542+ ShortStartLoader . PluginLogger . LogDebug ( $ "Getting file name of { arcPath } ") ;
543+ #endif
532544 var file = Path . GetFileName ( arcPath ) ;
533545 if ( ! Path . GetExtension ( file ) . Equals ( ".asset_language" ) )
534546 {
@@ -556,7 +568,7 @@ void LoadAllArcOfPrefix2(string prefix)
556568 }
557569 }
558570
559- Debug . Log ( $ "■■■■■■■■ Done @ { stopwatch . Elapsed } ") ;
571+ ShortStartLoader . PluginLogger . LogInfo ( $ "\n ■■■■■■■■ Done @ { stopwatch . Elapsed } ") ;
560572
561573 //UnityEngine.Debug.Log("■■■■■■■■ Done!");
562574
@@ -579,7 +591,7 @@ public static bool UpdateFileSystemPathOld()
579591
580592 stopwatch . Start ( ) ;
581593
582- Debug . Log ( "■■■■■■■■ Archive Log[Legacy]" ) ;
594+ ShortStartLoader . PluginLogger . LogInfo ( "■■■■■■■■ Archive Log[Legacy]" ) ;
583595
584596 bool AddFolderOrArchive ( string name )
585597 {
@@ -681,6 +693,9 @@ void Action(string prefix)
681693
682694 foreach ( var path in bgFiles )
683695 {
696+ #if DEBUG
697+ ShortStartLoader . PluginLogger . LogDebug ( $ "Getting file name of { path } ") ;
698+ #endif
684699 var fileName = Path . GetFileName ( path ) ;
685700 if ( Path . GetExtension ( fileName ) == ".asset_bg" && ! GameUty . BgFiles . ContainsKey ( fileName ) )
686701 {
@@ -689,7 +704,7 @@ void Action(string prefix)
689704 }
690705 }
691706
692- Debug . Log ( $ "■■■■■■■■ Done Loading Legacy Files @ { stopwatch . Elapsed } ") ;
707+ ShortStartLoader . PluginLogger . LogInfo ( $ "■■■■■■■■ Done Loading Legacy Files @ { stopwatch . Elapsed } ") ;
693708 stopwatch . Stop ( ) ;
694709
695710 return false ;
0 commit comments