- [GUI] Remember last selected CABMap if exists.

- [GUI] Only apply UnityCN key changes if game is selected.
This commit is contained in:
Razmoth
2023-08-13 19:20:54 +04:00
parent 463f992450
commit 6da2387c8c
6 changed files with 54 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ namespace AssetStudio
}
}
public static void LoadCABMap(string mapName)
public static bool LoadCABMap(string mapName)
{
Logger.Info($"Loading {mapName}");
try
@@ -224,8 +224,11 @@ namespace AssetStudio
}
catch (Exception e)
{
Logger.Warning($"{mapName} was not loaded, {e}");
Logger.Warning($"{mapName} was not loaded, {e}");
return false;
}
return true;
}
public static void BuildAssetMap(string[] files, string mapName, Game game, string savePath, ExportListType exportListType, ManualResetEvent resetEvent = null, ClassIDType[] typeFilters = null, Regex[] nameFilters = null, Regex[] containerFilters = null)