Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
SdtBarbarossa committed Nov 13, 2024
1 parent 510f744 commit 997d82a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion AssetGUI/MainProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using AssetGetterTools.models;
using AssetGetterTools.pck;
using Newtonsoft.Json;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.IO;
Expand Down Expand Up @@ -180,8 +181,22 @@ public void DownloadManifest()
using (var client = new WebClient())
{
Console.WriteLine($"Downloading Manifest");
client.DownloadFile($"{AssetDownloadUrl}manifest.data", $"{workingFolder}/Manifest/{this.AssetVersion}_manifest.data");
var downloadedManifestUrl = $"{workingFolder}/Manifest/{this.AssetVersion}_manifest.data";
client.DownloadFile($"{AssetDownloadUrl}manifest.data", downloadedManifestUrl);
Console.WriteLine($"Done downloading Manifest");

using (FileStream inFile = File.OpenRead(downloadedManifestUrl))
{
Console.WriteLine($"Writing Json Manifest");

var rawAssetManifest = Serializer.Deserialize<RawAssetManifest>(inFile);
var jsonRawAssetManifest = JsonConvert.SerializeObject(rawAssetManifest);
var downloadedManifestJsonPath = $"{workingFolder}/Manifest/{this.AssetVersion}_manifest.json";

File.WriteAllText(downloadedManifestJsonPath, jsonRawAssetManifest);

Console.WriteLine($"Done writing json Manifest");
}
}
}
catch (Exception ex)
Expand Down
2 changes: 1 addition & 1 deletion AssetGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public MainWindow()
//Console.SetOut();

this.mainProgram = new MainProgram();
SetWindowSize(800, 280);
SetWindowSize(800, 500);
setVisibilityOfSecondaryRows(false);

this.AssetOSs = new List<AssetOS>() { AssetOS.Windows, AssetOS.Android, AssetOS.iOS };
Expand Down

0 comments on commit 997d82a

Please sign in to comment.