fix windows path loading bug

fix empty game bug
This commit is contained in:
John Grosh
2020-04-09 16:13:48 -04:00
parent 61d4c51276
commit f1e301b48e
6 changed files with 70 additions and 18 deletions

View File

@@ -64,7 +64,7 @@ public class BotConfig
try
{
// get the path to the config, default config.txt
path = Paths.get(System.getProperty("config.file", System.getProperty("config", "config.txt")));
path = OtherUtil.getPath(System.getProperty("config.file", System.getProperty("config", "config.txt")));
if(path.toFile().exists())
{
if(System.getProperty("config.file") == null)