- [GUI] fix bug when building AssetMap with stripped version.
This commit is contained in:
@@ -32,6 +32,11 @@ namespace AssetStudio
|
|||||||
public string[] Dependencies { get; set; }
|
public string[] Dependencies { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void SetUnityVersion(string version)
|
||||||
|
{
|
||||||
|
assetsManager.SpecifyUnityVersion = version;
|
||||||
|
}
|
||||||
|
|
||||||
public static string[] GetMaps()
|
public static string[] GetMaps()
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(MapName);
|
Directory.CreateDirectory(MapName);
|
||||||
@@ -46,6 +51,7 @@ namespace AssetStudio
|
|||||||
CABMap.Clear();
|
CABMap.Clear();
|
||||||
Offsets.Clear();
|
Offsets.Clear();
|
||||||
BaseFolder = string.Empty;
|
BaseFolder = string.Empty;
|
||||||
|
assetsManager.SpecifyUnityVersion = string.Empty;
|
||||||
|
|
||||||
tokenSource.Dispose();
|
tokenSource.Dispose();
|
||||||
tokenSource = new CancellationTokenSource();
|
tokenSource = new CancellationTokenSource();
|
||||||
|
|||||||
@@ -2280,6 +2280,7 @@ namespace AssetStudioGUI
|
|||||||
name = input;
|
name = input;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var version = specifyUnityVersion.Text;
|
||||||
var openFolderDialog = new OpenFolderDialog();
|
var openFolderDialog = new OpenFolderDialog();
|
||||||
openFolderDialog.Title = $"Select Game Folder";
|
openFolderDialog.Title = $"Select Game Folder";
|
||||||
if (openFolderDialog.ShowDialog(this) == DialogResult.OK)
|
if (openFolderDialog.ShowDialog(this) == DialogResult.OK)
|
||||||
@@ -2303,6 +2304,7 @@ namespace AssetStudioGUI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
saveDirectoryBackup = saveFolderDialog.Folder;
|
saveDirectoryBackup = saveFolderDialog.Folder;
|
||||||
|
AssetsHelper.SetUnityVersion(version);
|
||||||
await Task.Run(() => AssetsHelper.BuildAssetMap(files, name, Studio.Game, saveFolderDialog.Folder, exportListType));
|
await Task.Run(() => AssetsHelper.BuildAssetMap(files, name, Studio.Game, saveFolderDialog.Folder, exportListType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user