Skip to content

Commit

Permalink
feat: Compatible with Unity 2022.3
Browse files Browse the repository at this point in the history
  • Loading branch information
SdtBarbarossa committed Jul 10, 2024
1 parent 70eac18 commit d7c9dc9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
15 changes: 12 additions & 3 deletions AssetGUI/MainProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,19 @@ public void DownloadManifest()
{
Directory.CreateDirectory($"{workingFolder}/Manifest");

using (var client = new WebClient())
try
{
using (var client = new WebClient())
{
Console.WriteLine($"Downloading Manifest");
client.DownloadFile($"{AssetDownloadUrl}manifest.data", $"{workingFolder}/Manifest/{this.AssetVersion}_manifest.data");
Console.WriteLine($"Done downloading Manifest");
}
}
catch (Exception ex)
{
Console.WriteLine($"Downloading Manifest");
client.DownloadFile($"{AssetDownloadUrl}manifest.data", $"{workingFolder}/Manifest/{this.AssetVersion}_manifest.data");
Console.WriteLine($"Error downloading Manifest");
throw;
}
}

Expand Down
3 changes: 1 addition & 2 deletions AssetGetterTools/AssetGetterTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
<PackageReference Include="SevenZip" Version="19.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
Expand All @@ -41,7 +41,6 @@
<ProjectReference Include="..\AssetStudio\AssetStudioFBXWrapper\AssetStudioFBXWrapper.csproj" />
<ProjectReference Include="..\AssetStudio\AssetStudioUtility\AssetStudioUtility.csproj" />
<ProjectReference Include="..\AssetStudio\AssetStudio\AssetStudio.csproj" />
<ProjectReference Include="..\AssetStudio\Texture2DDecoderWrapper\Texture2DDecoderWrapper.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion AssetGetterTools/helpers/Exporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static bool ExportAudioClip(AssetItem item, string exportPath)
{
if (!TryExportFile(exportPath, item, ".wav", out var exportFullPath))
return false;
var buffer = converter.ConvertToWav();
var buffer = converter.ConvertToWav(m_AudioData, out var debugLog);
if (buffer == null)
return false;
File.WriteAllBytes(exportFullPath, buffer);
Expand Down
2 changes: 1 addition & 1 deletion AssetGetterTools/helpers/Filehelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void UnpackBundle(string inFile, string targetFolder, string assetName, b
var assetManager = new AssetsManager();
exportableAssets.Clear();

assetManager.LoadFiles(pathes.ToArray());
assetManager.LoadFilesAndFolders(pathes.ToArray());

foreach (var assetsFile in assetManager.assetsFileList)
{
Expand Down
2 changes: 1 addition & 1 deletion AssetStudio
Submodule AssetStudio updated 151 files

0 comments on commit d7c9dc9

Please sign in to comment.