Skip to content

Commit 9971926

Browse files
committed
Panic on no local appdata
1 parent ff0de1c commit 9971926

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main/java/dev/koifysh/archipelago/Client.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,12 @@ public abstract class Client {
4040
static
4141
{
4242
String appData = System.getenv("LOCALAPPDATA");
43-
String winHome = System.getenv("USERPROFILE");
4443
String userHome = System.getProperty("user.home");
4544
String xdg = System.getenv("XDG_CACHE_HOME");
4645

4746
if(OS.startsWith("windows"))
4847
{
49-
if(appData == null || appData.isEmpty()) {
50-
cachePath = Paths.get(winHome, "AppData", "Local", "Archipelago", "Cache");
51-
} else {
52-
cachePath = Paths.get(appData, "Archipelago", "Cache");
53-
}
48+
cachePath = Paths.get(appData, "Archipelago", "Cache");
5449
}
5550
else if(OS.startsWith("Mac") || OS.startsWith("Darwin"))
5651
{

0 commit comments

Comments
 (0)