Merge pull request #2248 from lukaspj/new-cinterface

New cinterface
This commit is contained in:
Areloch 2018-12-09 15:28:22 -06:00 committed by GitHub
commit cbc09534e4
15 changed files with 639 additions and 990 deletions

View file

@ -61,6 +61,7 @@
// For the TickMs define... fix this for T2D...
#include "T3D/gameBase/processList.h"
#include "cinterface/cinterface.h"
#ifdef TORQUE_ENABLE_VFS
#include "platform/platformVFS.h"
@ -443,6 +444,11 @@ bool StandardMainLoop::handleCommandLine( S32 argc, const char **argv )
// directly because the resource system restricts
// access to the "root" directory.
bool foundExternalMain = false;
CInterface::CallMain(&foundExternalMain);
if (foundExternalMain)
return true;
#ifdef TORQUE_ENABLE_VFS
Zip::ZipArchive *vfs = openEmbeddedVFSArchive();
bool useVFS = vfs != NULL;