Skip to content

Commit

Permalink
Version management changed
Browse files Browse the repository at this point in the history
  • Loading branch information
MichiS97 committed May 19, 2017
1 parent 064ae2e commit 48a4018
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions PKMN-NTR/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ private bool checkversions(int[] tag)
int build = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build;
int date = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Revision;
Console.WriteLine(date);

if (tag[0] > major)
{
return true;
Expand All @@ -380,9 +380,18 @@ private bool checkversions(int[] tag)
{
return true;
}
if (tag[0] == major && tag[1] == minor && tag[2] > build && tag[3] > date)
if(tag.Length == 4)
{
return true;
Console.WriteLine(tag[3]);
if (tag[0] == major && tag[1] == minor && tag[2] > build && tag[3] > date)
{
return true;
}

}
else
{
return false;
}

return false;
Expand Down

0 comments on commit 48a4018

Please # to comment.