@@ -313,7 +313,7 @@ private static void ParseCABMap(BinaryReader reader)
313
313
}
314
314
}
315
315
316
- public static async void BuildAssetMap ( string [ ] files , string mapName , Game game , string savePath , ExportListType exportListType , ClassIDType [ ] typeFilters = null , Regex [ ] nameFilters = null , Regex [ ] containerFilters = null )
316
+ public static async Task BuildAssetMap ( string [ ] files , string mapName , Game game , string savePath , ExportListType exportListType , ClassIDType [ ] typeFilters = null , Regex [ ] nameFilters = null , Regex [ ] containerFilters = null )
317
317
{
318
318
Logger . Info ( "Building AssetMap..." ) ;
319
319
try
@@ -629,7 +629,7 @@ private static void UpdateContainers(List<AssetEntry> assets, Game game)
629
629
}
630
630
}
631
631
632
- private static Task ExportAssetsMap ( List < AssetEntry > toExportAssets , Game game , string name , string savePath , ExportListType exportListType , ManualResetEvent resetEvent = null )
632
+ private static Task ExportAssetsMap ( List < AssetEntry > toExportAssets , Game game , string name , string savePath , ExportListType exportListType )
633
633
{
634
634
return Task . Run ( ( ) =>
635
635
{
@@ -691,11 +691,9 @@ private static Task ExportAssetsMap(List<AssetEntry> toExportAssets, Game game,
691
691
692
692
Logger . Info ( $ "Finished buidling AssetMap with { toExportAssets . Count } assets.") ;
693
693
}
694
-
695
- resetEvent ? . Set ( ) ;
696
694
} ) ;
697
695
}
698
- public static async void BuildBoth ( string [ ] files , string mapName , string baseFolder , Game game , string savePath , ExportListType exportListType , ClassIDType [ ] typeFilters = null , Regex [ ] nameFilters = null , Regex [ ] containerFilters = null )
696
+ public static async Task BuildBoth ( string [ ] files , string mapName , string baseFolder , Game game , string savePath , ExportListType exportListType , ClassIDType [ ] typeFilters = null , Regex [ ] nameFilters = null , Regex [ ] containerFilters = null )
699
697
{
700
698
Logger . Info ( $ "Building Both...") ;
701
699
CABMap . Clear ( ) ;
0 commit comments