Added some refactoring around cache path logic

This commit is contained in:
Jonatino
2021-03-21 13:46:37 -04:00
parent f41aa220a4
commit 04634bc5b9
10 changed files with 49 additions and 40 deletions

View File

@@ -31,11 +31,11 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
@Export("get")
public PlatformInfo get() {
byte var1;
if (GZipDecompressor.field4046.startsWith("win")) { // L: 15
if (GZipDecompressor.formattedOperatingSystemName.startsWith("win")) { // L: 15
var1 = 1;
} else if (GZipDecompressor.field4046.startsWith("mac")) { // L: 16
} else if (GZipDecompressor.formattedOperatingSystemName.startsWith("mac")) { // L: 16
var1 = 2;
} else if (GZipDecompressor.field4046.startsWith("linux")) {
} else if (GZipDecompressor.formattedOperatingSystemName.startsWith("linux")) {
var1 = 3;
} else {
var1 = 4; // L: 18
@@ -210,4 +210,4 @@ public class DesktopPlatformInfoProvider implements PlatformInfoProvider {
public static StudioGame[] method6478() {
return new StudioGame[]{StudioGame.stellardawn, StudioGame.game5, StudioGame.oldscape, StudioGame.game4, StudioGame.runescape, StudioGame.game3}; // L: 17
}
}
}