Specify credentials via -DAPI_NG_APP_ID=value and -DAPI_NG_ENC_KEY=value at build time
This commit is contained in:
committed by
Cameron Taylor
parent
b75a550c5b
commit
aa08dcfbbc
@@ -36,14 +36,13 @@ class NewgroundsClient
|
||||
|
||||
private function new()
|
||||
{
|
||||
if (NewgroundsCredentials.ENCRYPTION_KEY.contains(' '))
|
||||
{
|
||||
trace('[NEWGROUNDS] Encryption key not valid, disabling...');
|
||||
return;
|
||||
}
|
||||
|
||||
trace('[NEWGROUNDS] Initializing client...');
|
||||
|
||||
#if FEATURE_NEWGROUNDS_DEBUG
|
||||
trace('[NEWGROUNDS] App ID: ${NewgroundsCredentials.APP_ID}');
|
||||
trace('[NEWGROUNDS] Encryption Key: ${NewgroundsCredentials.ENCRYPTION_KEY}');
|
||||
#end
|
||||
|
||||
if (!hasValidCredentials())
|
||||
{
|
||||
FlxG.log.warn("Tried to initialize Newgrounds client, but credentials are invalid!");
|
||||
|
||||
Reference in New Issue
Block a user