Specify credentials via -DAPI_NG_APP_ID=value and -DAPI_NG_ENC_KEY=value at build time

This commit is contained in:
EliteMasterEric
2024-11-04 15:05:33 -05:00
committed by Cameron Taylor
parent b75a550c5b
commit aa08dcfbbc
2 changed files with 37 additions and 7 deletions
@@ -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!");