mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
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:
@@ -1,6 +1,6 @@
|
|||||||
program/mail=mtgerror@yahoo.com
|
program/mail=mtgerror@yahoo.com
|
||||||
program/forum=http://www.slightlymagic.net/forum/viewforum.php?f=26
|
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
|
tokens--file=AllTokens.txt
|
||||||
|
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ public class GuiDisplayUtil implements NewConstants {
|
|||||||
else
|
else
|
||||||
loc = IMAGE_TOKEN;
|
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);
|
//System.out.println(fileString);
|
||||||
File file = new File(fileString);
|
File file = new File(fileString);
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ public class GuiDisplayUtil implements NewConstants {
|
|||||||
else
|
else
|
||||||
loc = IMAGE_TOKEN;
|
loc = IMAGE_TOKEN;
|
||||||
|
|
||||||
String fileString = ForgeProps.getFile(loc)+"\\" +filename;
|
String fileString = ForgeProps.getFile(loc) + File.separator + filename;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
BufferedInputStream is = new BufferedInputStream(new FileInputStream(fileString));
|
BufferedInputStream is = new BufferedInputStream(new FileInputStream(fileString));
|
||||||
|
|||||||
Reference in New Issue
Block a user