Skip to content

Commit

Permalink
Fix multi download restore data when game is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
akbaryahya committed Nov 5, 2022
1 parent 44e99dd commit bb5f14b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,10 @@ public string PatchGame(bool patchit = true, bool online = true, int metode = 1,
{
try
{
if (!patchit)
{
return "Unable to download files " + Original_file_UA + " in a closed game state, please try again or download manual and put it in " + PathfileUA_Currently;
}
var CEKDL1 = new Download(Original_file_UA, PathfileUA_Currently);
if (CEKDL1.ShowDialog() != DialogResult.OK)
{
Expand All @@ -557,7 +561,6 @@ public string PatchGame(bool patchit = true, bool online = true, int metode = 1,
{
MD5_UA_LOC_Currently = Tool.CalculateMD5(PathfileUA_Currently);
Console.WriteLine("Currently UserAssembly: " + MD5_UA_LOC_Currently);

}
}
catch (Exception exx)
Expand Down Expand Up @@ -671,7 +674,10 @@ public string PatchGame(bool patchit = true, bool online = true, int metode = 1,
{
try
{
//Console.WriteLine("DL: " + Original_file_MA);
if (!patchit)
{
return "Unable to download files " + Original_file_MA + " in a closed game state, please try again or download manual and put it in " + PathfileMetadata_Currently;
}
var CEKDL2 = new Download(Original_file_MA, PathfileMetadata_Currently);
if (CEKDL2.ShowDialog() != DialogResult.OK)
{
Expand Down
4 changes: 2 additions & 2 deletions YuukiPS Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

<ApplicationManifest>Properties\app.manifest</ApplicationManifest>

<AssemblyVersion>2022.11.5.0243</AssemblyVersion>
<FileVersion>2022.11.5.0243</FileVersion>
<AssemblyVersion>2022.11.5.0415</AssemblyVersion>
<FileVersion>2022.11.5.0415</FileVersion>

<EnableWindowsTargeting>true</EnableWindowsTargeting>
<AssemblyName>YuukiPS</AssemblyName>
Expand Down

0 comments on commit bb5f14b

Please sign in to comment.