Skip to content

Commit

Permalink
v0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
igorseabra4 committed Jun 29, 2019
1 parent 0485cc5 commit b0f7b94
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions HeroesPowerPlant/Resources/hpp_version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "v0.8.1",
"versionName": "v0.8.1"
"version": "v0.8.2",
"versionName": "v0.8.2"
}
21 changes: 11 additions & 10 deletions HeroesPowerPlant/Shared/IO/Config/AutomaticUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,20 @@ public static bool UpdateHeroesPowerPlant(out bool hasChecked)
if (!Directory.Exists(oldPath + s))
Directory.CreateDirectory(oldPath + s);

foreach (string s2 in Directory.GetFiles(Application.StartupPath + s))
{
if ((Path.GetExtension(s2).ToLower().Equals(".zip") && !Path.GetFileName(s2).Equals("Reloaded-Mod-Template.zip")) ||
Path.GetExtension(s2).ToLower().Equals(".json"))
continue;
if (Directory.Exists(Application.StartupPath + s))
foreach (string s2 in Directory.GetFiles(Application.StartupPath + s))
{
if ((Path.GetExtension(s2).ToLower().Equals(".zip") && !Path.GetFileName(s2).Equals("Reloaded-Mod-Template.zip")) ||
Path.GetExtension(s2).ToLower().Equals(".json"))
continue;

string newFilePath = oldPath + s + "\\" + Path.GetFileName(s2);
string newFilePath = oldPath + s + "\\" + Path.GetFileName(s2);

if (File.Exists(newFilePath))
File.Delete(newFilePath);
if (File.Exists(newFilePath))
File.Delete(newFilePath);

File.Move(s2, newFilePath);
}
File.Move(s2, newFilePath);
}
}

ZipFile.ExtractToDirectory(updatedIPfilePath, Application.StartupPath);
Expand Down
4 changes: 2 additions & 2 deletions HeroesPowerPlant/Shared/IO/Config/HPPVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class HPPVersion
{
public string version = "v0.8.1";
public string versionName = "v0.8.1";
public string version = "v0.8.2";
public string versionName = "v0.8.2";
}
}

0 comments on commit b0f7b94

Please sign in to comment.