Skip to content

Commit

Permalink
Merge pull request #28 from Moondarker/testing
Browse files Browse the repository at this point in the history
Testing
  • Loading branch information
Moondarker authored Mar 30, 2019
2 parents dac8ebb + 5723731 commit 39c9b7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ZomBerry/Addons/scripts/5_Mission/ZomBerry.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
static string g_zbryVer = "0.5.9s";
static string g_zbryVer = "0.5.9s+";

class ZomberryBase {
protected string remoteZbryVer = g_zbryVer;
Expand Down
4 changes: 4 additions & 0 deletions ZomBerry/Addons/scripts/5_Mission/ZomBerryConfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ class ZomberryConfig {
ref ZBerryJsonConfig newConfigData;

JsonFileLoader<ZBerryJsonConfig>.JsonLoadFile(cfgPath + "ZomBerryConfig.json", newConfigData);
if (!newConfigData) {
ZomberryBase.Log( "ZomBerryConfig", "ERROR: Unable to find config file, will continue with default settings (MenuKey is M, debug disabled, separate config files)" );
return;
}

zbryDebug = newConfigData.DebugLevel;
defaultIOFlag = newConfigData.UseScriptLog;
Expand Down

0 comments on commit 39c9b7c

Please sign in to comment.