Console Refactor

This commit is contained in:
Lukas Aldershaab 2023-04-23 10:39:54 +02:00
parent 626de074cc
commit 89b0c7f73b
89 changed files with 1883 additions and 1553 deletions

View file

@ -25,9 +25,6 @@
#include "platform/threads/semaphore.h"
#include "console/simEvents.h"
// Stupid globals not declared in a header
extern ExprEvalState gEvalState;
SimConsoleEvent::SimConsoleEvent(S32 argc, ConsoleValue *argv, bool onObject)
{
mOnObject = onObject;
@ -79,7 +76,7 @@ void SimConsoleEvent::process(SimObject* object)
Namespace::Entry* nse = ns->lookup( StringTable->insert( func ) );
if( nse )
// Execute.
nse->execute( mArgc, mArgv, &gEvalState );
nse->execute( mArgc, mArgv, object );
}
}