Skip to content

Commit e51b507

Browse files
committed
Also use s0uthwest's version of tsschecker for Windows
1 parent 2d0c582 commit e51b507

File tree

5 files changed

+3
-3420
lines changed

5 files changed

+3
-3420
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Help support this project by ⭐️'ing it! [Donations](https://www.paypal.me/airsqrd) also appreciated!
22

33
# blobsaver [![GitHub All Releases](https://img.shields.io/github/downloads/airsquared/blobsaver/total.svg)](https://github.com/airsquared/blobsaver/releases/latest)
4-
A GUI for saving SHSH blobs using encounter's fork of tsschecker(uses tihmstar's original for linux). Supports both Mac, Windows, and Linux. Requires [Java](https://java.com/inc/BrowserRedirect1.jsp).
4+
A GUI for saving SHSH blobs using s0uthwest's fork of tsschecker(uses tihmstar's original for linux). Supports both Mac, Windows, and Linux. Requires [Java](https://java.com/inc/BrowserRedirect1.jsp).
55

66
**Tip:** if you want blobs you save to automatically be uploaded to the cloud, see [this](https://github.com/airsquared/blobsaver/wiki/Automatically-saving-blobs-to-the-cloud\(Dropbox,-Google-Drive,-iCloud\))
77

src/main/java/com/airsquared/blobsaver/Shared.java

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,6 @@ static String makeRequest(URL url) throws IOException {
150150
}
151151

152152
static File getTsschecker() throws IOException {
153-
if (PlatformUtil.isWindows()) {
154-
return getTsscheckerWindows();
155-
}
156153
File executablesFolder = getExecutablesFolder();
157154
File tsschecker = new File(executablesFolder, "tsschecker");
158155
if (tsschecker.exists() && appPrefs.getBoolean("tsschecker last update v2.2.3", false)) {
@@ -161,6 +158,8 @@ static File getTsschecker() throws IOException {
161158
InputStream input;
162159
if (PlatformUtil.isMac()) {
163160
input = Shared.class.getResourceAsStream("tsschecker_macos");
161+
} else if (PlatformUtil.isWindows()) {
162+
input = Shared.class.getResourceAsStream("tsschecker_windows.exe");
164163
} else {
165164
input = Shared.class.getResourceAsStream("tsschecker_linux");
166165
}
@@ -173,21 +172,6 @@ static File getTsschecker() throws IOException {
173172
}
174173
}
175174

176-
private static File getTsscheckerWindows() throws IOException {
177-
File tsscheckerDir = new File(getExecutablesFolder(), "tsschecker_windows");
178-
File tsschecker = new File(tsscheckerDir, "tsschecker.exe");
179-
if (tsschecker.exists() && appPrefs.getBoolean("tsschecker last update v2.2.3", false)) {
180-
return tsschecker;
181-
}
182-
tsscheckerDir.mkdir();
183-
String jarPath = "/com/airsquared/blobsaver/" + "tsschecker_windows";
184-
copyDirFromJar(jarPath, tsscheckerDir.toPath());
185-
appPrefs.putBoolean("tsschecker last update v2.2.3", true);
186-
tsschecker.setReadable(true);
187-
tsschecker.setExecutable(true, false);
188-
return tsschecker;
189-
}
190-
191175
static File getidevicepair() throws IOException {
192176
File idevicepair = new File(getlibimobiledeviceFolder(), "idevicepair");
193177
if (idevicepair.exists()) {
Binary file not shown.

0 commit comments

Comments
 (0)