Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
Update RomDetails.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfessorJTJ committed Dec 14, 2021
1 parent 6be94ce commit bf231cd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions HiSuite Proxy/RomDetails.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -34,7 +34,10 @@ private static string GetVersionID(string url)
}
else
{
throw new Exception("Invalid URL Passed");
if (url.Contains("update."))
return null;
else
throw new Exception("Invalid URL Passed");
}
}

Expand Down Expand Up @@ -152,7 +155,7 @@ public static void GetFirmwareDetails(FirmFinder form, string url, ref RomDetail
Finished = true;
progress.Close();
}
private static bool ApprovedForInstallation(string versionID)
public static bool ApprovedForInstallation(string versionID)
{
TcpClient client = new TcpClient();
IPAddress[] address = Dns.GetHostAddresses("query.hicloud.com");
Expand Down Expand Up @@ -269,7 +272,7 @@ private static bool ApprovedForInstallation(string versionID)
{
if (base64response.Contains("versionNumber"))
{
MessageBox.Show("Weird, but might be approved.");
//MessageBox.Show("Weird, but might be approved.");
return true;
}
return false;
Expand Down

0 comments on commit bf231cd

Please sign in to comment.