aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server/scrap.jpage
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-07 19:59:59 +0000
committerHolger Zickner <[email protected]>2004-07-07 19:59:59 +0000
commit6e23fc1074d1f0c2c2812f4c2e663f5a21a43c20 (patch)
tree46ecc6d0255c874ba4cd26dc3d0733f785019896 /src/jake2/server/scrap.jpage
import of Jake2 version sunrisesunrise
Diffstat (limited to 'src/jake2/server/scrap.jpage')
-rw-r--r--src/jake2/server/scrap.jpage24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/jake2/server/scrap.jpage b/src/jake2/server/scrap.jpage
new file mode 100644
index 0000000..1666502
--- /dev/null
+++ b/src/jake2/server/scrap.jpage
@@ -0,0 +1,24 @@
+
+
+String p="\"123456\"";
+
+System.out.println(p.substring(1,p.length()-1));
+
+ String path ="c:/baseq2/game/*.sav";
+ String findbase;
+ String findpattern;
+
+ int i = path.lastIndexOf('/');
+ if (i!=-1)
+ {
+ findbase = path.substring(0,i);
+ findpattern = path.substring(i+1,path.length());
+ }
+ else
+ {
+ findpattern = "*";
+ findbase = path;
+ }
+
+
+ System.out.println(findbase + ":" + findpattern); \ No newline at end of file