aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/startup
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/brysonsteck/Resurrection/startup')
-rw-r--r--src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java
index 2a46aa5..d926057 100644
--- a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java
+++ b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java
@@ -10,6 +10,7 @@ import java.net.URLConnection;
public class CheckForUpdate {
+ boolean success;
String version;
String versionURL;
@@ -23,6 +24,7 @@ public class CheckForUpdate {
version = softwareObj.get("current-release").toString();
version = version.replace("\"", "");
versionURL = softwareObj.get("github-release").toString();
+ success = true;
} catch (IOException e) {
System.out.println("[Resurrection] An error has occurred while attempting to check for updates.");
e.printStackTrace();
@@ -47,6 +49,8 @@ public class CheckForUpdate {
return response.toString();
}
+ public boolean isSuccess() { return success; }
+
public String getVersionURL() {
return versionURL;
}