From 669573c660143978bb3960f159087d068b351e6a Mon Sep 17 00:00:00 2001 From: Danial Date: Sun, 31 Oct 2021 14:53:47 +1300 Subject: [PATCH] Make file server optional if cache already downloaded (#514) --- 2006Scape Client/src/main/java/Game.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/2006Scape Client/src/main/java/Game.java b/2006Scape Client/src/main/java/Game.java index 5d177779..b4ec8421 100644 --- a/2006Scape Client/src/main/java/Game.java +++ b/2006Scape Client/src/main/java/Game.java @@ -6849,8 +6849,10 @@ public class Game extends RSApplet { } catch(IOException _ex) { - s = "Connection problem -- Make sure FileServer is running!!"; - expectedCRCs[8] = 0; + s = "FileServer Connection problem"; + // Check if we already have cache files, if so then allow the client to load anyway + String cacheDir = Signlink.findcachedir(); + expectedCRCs[8] = new File(cacheDir + "main_file_cache.dat").length() > 0 ? 1 : 0; } catch(Exception _ex) { @@ -6870,7 +6872,7 @@ public class Game extends RSApplet { l = 10; } else { - drawLoadingText(10, s + " - Will retry in " + l + " secs."); + drawLoadingText(10, s + " - retry in " + l + " secs."); } try {