Skip to content

Commit

Permalink
1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
harryeffinpotter committed Aug 5, 2022
1 parent 4184446 commit d1ca537
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 68 deletions.
Binary file modified All.Legit.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Updater
private static string RawGitHubUrl;
private static string GitHubUrl;

static readonly public string LocalVersion = "1.0.8";
static readonly public string LocalVersion = "1.0.9";
public static string currentVersion = "";
public static string currentHFVersion = "";
public static string changelog = "";
Expand Down
10 changes: 9 additions & 1 deletion Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public static string get_parent_dir_path(string path)
else
return "";
}
public static void ExtractFile(string sourceArchive, string destination)
public static bool IsExtracting = false;
public static async void ExtractFile(string sourceArchive, string destination)
{
if (!Directory.Exists(destination))
{
Expand All @@ -99,11 +100,13 @@ public static void ExtractFile(string sourceArchive, string destination)
{
pro.Arguments = string.Format("x \"{0}\" -aoa -o\"{1}\"", sourceArchive, destination) + $" -p\"{PW}\"";
x2.StartInfo = pro;
IsExtracting = true;
x2.Start();
Error = x2.StandardError.ReadToEnd();

if (!x2.HasExited)
x2.WaitForExit();
IsExtracting = false;
success = true;
}
catch { }
Expand All @@ -121,6 +124,7 @@ public static void ExtractFile(string sourceArchive, string destination)
if (file.Contains(".7z.") || file.Contains(".rar.") || file.EndsWith(".7z")
|| file.EndsWith(".rar") || file.EndsWith(".zip") || file.StartsWith(filenopath) || file.Contains(".part"))
{

if (File.Exists(file))
{
File.Delete(file);
Expand All @@ -137,6 +141,10 @@ public static void ExtractFile(string sourceArchive, string destination)
}
}
}
while (IsExtracting)
{
await Task.Delay(100);
}
if (File.Exists(sourceArchive))
{
File.Delete(sourceArchive);
Expand Down
2 changes: 1 addition & 1 deletion mainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d1ca537

Please sign in to comment.