From 0030d53aea3556d289cd355d7ddd15adc18596b4 Mon Sep 17 00:00:00 2001 From: jendave Date: Sat, 6 Aug 2011 03:14:26 +0000 Subject: [PATCH] Fixed the hard coded file separators. I found 5 files with the double backslash "\\" character sequence. Only 3 were a possible problem. The three files being GuiDisplayUtil.java (2 hits), BackgroundPanel.java, ImageJPanel.java. Some of the code associated with these file paths may not be used at this time. I replaced "\\" with "File.separator" only on the two places found in GuiDisplayUtil.java. --- res/main.properties | 2 +- src/forge/GuiDisplayUtil.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/res/main.properties b/res/main.properties index 070a1b35965..f555ace9100 100644 --- a/res/main.properties +++ b/res/main.properties @@ -1,6 +1,6 @@ program/mail=mtgerror@yahoo.com program/forum=http://www.slightlymagic.net/forum/viewforum.php?f=26 -program/version=Forge -- official beta: 10/01/17, SVN revision: 283 +program/version=Forge -- official beta: 10/01/17, SVN revision: 284 tokens--file=AllTokens.txt diff --git a/src/forge/GuiDisplayUtil.java b/src/forge/GuiDisplayUtil.java index 5aee8d1aa0b..1c05997d5fa 100644 --- a/src/forge/GuiDisplayUtil.java +++ b/src/forge/GuiDisplayUtil.java @@ -318,7 +318,7 @@ public class GuiDisplayUtil implements NewConstants { else loc = IMAGE_TOKEN; - String fileString = path + "\\" +ForgeProps.getFile(loc)+"\\" +filename; + String fileString = path + File.separator + ForgeProps.getFile(loc) + File.separator + filename; //System.out.println(fileString); File file = new File(fileString); @@ -349,7 +349,7 @@ public class GuiDisplayUtil implements NewConstants { else loc = IMAGE_TOKEN; - String fileString = ForgeProps.getFile(loc)+"\\" +filename; + String fileString = ForgeProps.getFile(loc) + File.separator + filename; try { BufferedInputStream is = new BufferedInputStream(new FileInputStream(fileString));