Update of /cvsroot/jake2/jake2/src/jake2/client
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21210/src/jake2/client
Modified Files:
CL_parse.java
Log Message:
string bugfix and faster filecheck
Index: CL_parse.java
===================================================================
RCS file: /cvsroot/jake2/jake2/src/jake2/client/CL_parse.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** CL_parse.java 24 Oct 2004 21:02:05 -0000 1.11
--- CL_parse.java 24 Oct 2004 21:12:43 -0000 1.12
***************
*** 57,61 ****
public static String DownloadFileName(String fn) {
! if ("players".equals(fn))
return Globals.BASEDIRNAME + "/" + fn;
else
--- 57,61 ----
public static String DownloadFileName(String fn) {
! if (fn.startsWith("players"))
return Globals.BASEDIRNAME + "/" + fn;
else
***************
*** 78,82 ****
}
! if (FS.LoadFile(filename) != null) { // it exists, no need to download
return true;
}
--- 78,82 ----
}
! if (FS.FileLength(filename) > 0) { // it exists, no need to download
return true;
}
|