safe file separators

This commit is contained in:
Jonathan Williams 2013-11-05 16:10:14 -08:00
parent 43d5b6441b
commit ff6488b371

View File

@ -483,7 +483,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
public ArrayList<String> LoadFiles(String gameName) public ArrayList<String> LoadFiles(String gameName)
{ {
File folder = new File("../../update/maps" + File.separatorChar + gameName); File folder = new File(".." + File.separatorChar + ".." + File.separatorChar + "update" + File.separatorChar + "maps" + File.separatorChar + gameName);
if (!folder.exists()) folder.mkdirs(); if (!folder.exists()) folder.mkdirs();
ArrayList<String> maps = new ArrayList<String>(); ArrayList<String> maps = new ArrayList<String>();