Skip to content

Commit

Permalink
Fix 1-click install path for new games
Browse files Browse the repository at this point in the history
  • Loading branch information
TekkaGB committed Oct 14, 2021
1 parent e1eacf1 commit 8fb7648
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Unverum/ModDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ private async Task ExtractFile(string fileName, string game, GameBananaRecord re
{
await Task.Run(() =>
{
switch (game)
{
case "Demon Slayer The Hinokami Chronicles":
game = "Demon Slayer";
break;
case "THE IDOLM@STER STARLIT SEASON":
game = "IDOLM@STER";
break;
}
string _ArchiveSource = $@"{Global.assemblyLocation}{Global.s}Downloads{Global.s}{fileName}";
string _ArchiveType = Path.GetExtension(fileName);
string ArchiveDestination = $@"{Global.assemblyLocation}{Global.s}Mods{Global.s}{game}{Global.s}{string.Concat(record.Title.Split(Path.GetInvalidFileNameChars()))}";
Expand Down Expand Up @@ -217,6 +226,15 @@ private async Task ExtractFile(string fileName, string game, GameBananaAPIV4 rec
{
await Task.Run(() =>
{
switch (game)
{
case "Demon Slayer The Hinokami Chronicles":
game = "Demon Slayer";
break;
case "THE IDOLM@STER STARLIT SEASON":
game = "IDOLM@STER";
break;
}
string _ArchiveSource = $@"{Global.assemblyLocation}{Global.s}Downloads{Global.s}{fileName}";
string _ArchiveType = Path.GetExtension(fileName);
string ArchiveDestination = $@"{Global.assemblyLocation}{Global.s}Mods{Global.s}{game}{Global.s}{string.Concat(record.Title.Split(Path.GetInvalidFileNameChars()))}";
Expand Down
2 changes: 1 addition & 1 deletion Unverum/Unverum.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<UseWPF>true</UseWPF>
<ApplicationIcon>Assets\unverum.ico</ApplicationIcon>
<AssemblyName>Unverum</AssemblyName>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 8fb7648

Please sign in to comment.