Skip to content

Commit

Permalink
fix: create directories after multiple install check
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Sep 3, 2024
1 parent 5b9851f commit 4892d94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DownloadTask.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Concurrent;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Net.Http.Headers;
using System.Security;
Expand Down Expand Up @@ -168,6 +167,7 @@ private async Task Run() {
this.VariantName = info.Variant.Name;
this.GenerateModDirectoryPath(info);
this.DetermineIfUpdate(info);
this.CreateDirectories();
await this.TestHardLinks();
await this.HashExistingFiles();
await this.DownloadFiles(info);
Expand Down Expand Up @@ -296,6 +296,9 @@ private async Task<IDownloadTask_GetVersion> GetPackageInfo() {
private void GenerateModDirectoryPath(IDownloadTask_GetVersion info) {
var dirName = HeliosphereMeta.ModDirectoryName(info.Variant.Package.Id, info.Variant.Package.Name, info.Version, info.Variant.Id);
this.PenumbraModPath = Path.Join(this.ModDirectory, dirName);
}

private void CreateDirectories() {
this.FilesPath = Path.GetFullPath(Path.Join(this.PenumbraModPath, "files"));
this.HashesPath = Path.GetFullPath(Path.Join(this.PenumbraModPath, ".hs-hashes"));

Expand Down

0 comments on commit 4892d94

Please sign in to comment.