Added UnityCN.

This commit is contained in:
Razmoth
2023-07-10 20:40:17 +04:00
parent 097060be89
commit 3ea9f71f00
18 changed files with 766 additions and 34 deletions

View File

@@ -157,6 +157,7 @@ namespace AssetStudioGUI
Logger.Info($"Target Game type is {Studio.Game.Type}");
MapNameComboBox.SelectedIndexChanged += new EventHandler(specifyNameComboBox_SelectedIndexChanged);
UnityCNManager.SetKey(Properties.Settings.Default.selectedUnityCNKey);
}
private void AssetStudioGUIForm_DragEnter(object sender, DragEventArgs e)
{
@@ -274,6 +275,10 @@ namespace AssetStudioGUI
{
productName = Studio.Game.Name;
}
else if (Studio.Game.Type.IsUnityCN() && UnityCNManager.TryGetEntry(Properties.Settings.Default.selectedUnityCNKey, out var unityCN))
{
productName = unityCN.Name;
}
else
{
productName = "no productName";
@@ -2300,6 +2305,12 @@ namespace AssetStudioGUI
assetBrowser.Show();
}
private void specifyUnityCNKey_Click(object sender, EventArgs e)
{
var unitycn = new UnityCNForm();
unitycn.Show();
}
#region FMOD
private void FMODinit()
{