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.

This commit is contained in:
jendave
2011-08-06 03:14:26 +00:00
parent 43d9721fcc
commit 0030d53aea
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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));