Skip to content

Commit

Permalink
Merge pull request playgameservices#1227 from Mavicus/patch-1
Browse files Browse the repository at this point in the history
Update GPGSUpgrader.cs
  • Loading branch information
claywilkinson authored Jun 14, 2016
2 parents 4a000ba + 573b576 commit 02628e4
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public class GPGSUpgrader
static GPGSUpgrader()
{
string prevVer = GPGSProjectSettings.Instance.Get(GPGSUtil.LASTUPGRADEKEY, "00000");
if (prevVer != PluginVersion.VersionKey)
if (!prevVer.Equals (PluginVersion.VersionKey))
{
// if this is a really old version, upgrade to 911 first, then 915
if (prevVer != PluginVersion.VersionKeyCPP)
if (!prevVer.Equals (PluginVersion.VersionKeyCPP))
{
prevVer = Upgrade911(prevVer);
}
Expand All @@ -53,7 +53,7 @@ static GPGSUpgrader()
prevVer = Upgrade931(prevVer);

// there is no migration needed to 930+
if (prevVer != PluginVersion.VersionKey) {
if (!prevVer.Equals (PluginVersion.VersionKey)) {
Debug.Log("Upgrading from format version " + prevVer + " to " + PluginVersion.VersionKey);
prevVer = PluginVersion.VersionKey;
}
Expand Down Expand Up @@ -191,7 +191,7 @@ private static string Upgrade930(string prevVer)
};

// only delete these if we are not version 0.9.34
if (PluginVersion.VersionKey != PluginVersion.VersionKeyJNIStats) {
if (!PluginVersion.VersionKey.Equals (PluginVersion.VersionKeyJNIStats)) {
foreach (string file in obsoleteFiles)
{
if (File.Exists(file))
Expand Down

0 comments on commit 02628e4

Please sign in to comment.