From 173104238ad9051084d43a5e324aa1de79852495 Mon Sep 17 00:00:00 2001 From: Marcus Gosselin Date: Tue, 16 Feb 2016 03:41:15 -0500 Subject: [PATCH] what --- .gitignore | 6 ++++++ src/spacewars/SpaceWars.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b1f3107..c2b6673 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,9 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk + +.classpath + +.classpath + +.settings/org.eclipse.jdt.core.prefs diff --git a/src/spacewars/SpaceWars.java b/src/spacewars/SpaceWars.java index 6c8ac07..0867910 100644 --- a/src/spacewars/SpaceWars.java +++ b/src/spacewars/SpaceWars.java @@ -11,7 +11,7 @@ public class SpaceWars { private static void test(String game) { final String gamePath = "" + new File(SpaceWars.class.getProtectionDomain().getCodeSource() - .getLocation().getPath().replace("%20", " ") + game + "\\").getPath(); + .getLocation().getPath().replace("%20", " ") + game).getPath(); Engine engine = new Engine(gamePath); }