mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 14:43:47 +00:00
Add support for replacing the main.tscript file with a specified Console Function
This commit is contained in:
parent
bcea9bfc3a
commit
df8041e689
3 changed files with 11 additions and 1 deletions
|
|
@ -450,7 +450,12 @@ bool StandardMainLoop::handleCommandLine( S32 argc, const char **argv )
|
|||
Stream *mainCsStream = NULL;
|
||||
|
||||
// The working filestream.
|
||||
FileStream str;
|
||||
FileStream str;
|
||||
|
||||
#ifdef TORQUE_ENTRY_FUNCTION
|
||||
Con::executef(TORQUE_ENTRY_FUNCTION);
|
||||
return true;
|
||||
#endif
|
||||
|
||||
const char *defaultScriptName = "main." TORQUE_SCRIPT_EXTENSION;
|
||||
bool useDefaultScript = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue