Merge pull request #362 from Jan200101/PR/api-key-check

check if newgroups api key actually exists before creating core
This commit is contained in:
Cameron Taylor 2021-02-10 21:07:50 -05:00 committed by GitHub
commit 7958699a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,8 @@ class NGio
trace('INIT NOLOGIN'); trace('INIT NOLOGIN');
GAME_VER = "v" + Application.current.meta.get('version'); GAME_VER = "v" + Application.current.meta.get('version');
if (api.length != 0)
{
NG.create(api); NG.create(api);
new FlxTimer().start(2, function(tmr:FlxTimer) new FlxTimer().start(2, function(tmr:FlxTimer)
@ -49,6 +51,7 @@ class NGio
call.send(); call.send();
}); });
} }
}
public function new(api:String, encKey:String, ?sessionId:String) public function new(api:String, encKey:String, ?sessionId:String)
{ {