- [Core] bug fixes.
This commit is contained in:
@@ -313,7 +313,7 @@ namespace AssetStudio
|
||||
}
|
||||
}
|
||||
|
||||
public static async void BuildAssetMap(string[] files, string mapName, Game game, string savePath, ExportListType exportListType, ClassIDType[] typeFilters = null, Regex[] nameFilters = null, Regex[] containerFilters = null)
|
||||
public static async Task BuildAssetMap(string[] files, string mapName, Game game, string savePath, ExportListType exportListType, ClassIDType[] typeFilters = null, Regex[] nameFilters = null, Regex[] containerFilters = null)
|
||||
{
|
||||
Logger.Info("Building AssetMap...");
|
||||
try
|
||||
@@ -629,7 +629,7 @@ namespace AssetStudio
|
||||
}
|
||||
}
|
||||
|
||||
private static Task ExportAssetsMap(List<AssetEntry> toExportAssets, Game game, string name, string savePath, ExportListType exportListType, ManualResetEvent resetEvent = null)
|
||||
private static Task ExportAssetsMap(List<AssetEntry> toExportAssets, Game game, string name, string savePath, ExportListType exportListType)
|
||||
{
|
||||
return Task.Run(() =>
|
||||
{
|
||||
@@ -691,11 +691,9 @@ namespace AssetStudio
|
||||
|
||||
Logger.Info($"Finished buidling AssetMap with {toExportAssets.Count} assets.");
|
||||
}
|
||||
|
||||
resetEvent?.Set();
|
||||
});
|
||||
}
|
||||
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)
|
||||
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)
|
||||
{
|
||||
Logger.Info($"Building Both...");
|
||||
CABMap.Clear();
|
||||
|
||||
Reference in New Issue
Block a user