Fixed Config Loading Bug

Fixed a problem that caused bundled configs to not load sometimes.
This commit is contained in:
SenseiKiwi 2013-08-22 22:57:26 -04:00
parent db3351441d
commit 2b1d80f9f9

View file

@ -190,7 +190,16 @@ public class DungeonHelper
if (pack == null)
{
//Load the pack's configuration file
String configPath = directory + File.separator + STANDARD_CONFIG_FILE_NAME;
String configPath;
if (isInternal)
{
configPath = directory + "/" + STANDARD_CONFIG_FILE_NAME;
}
else
{
configPath = directory + File.separator + STANDARD_CONFIG_FILE_NAME;
}
DungeonPackConfig config = loadDungeonPackConfig(configPath, name, isInternal, reader);
if (config == null)
{