Change the way the lua engine initialization functions are called

This commit is contained in:
2026-02-25 03:43:44 -05:00
parent 95cd378dc0
commit cc629227a5
7 changed files with 60 additions and 129 deletions

View File

@@ -1258,16 +1258,6 @@ void World::rollback() {
assert(snapshot_.empty());
}
// This is the main routine for the DLL. We have to use a registration device
// to register this main routine with DrivenEngine. DrivenEngine will then call
// it exactly once the first time that the driver initializes an EngineWrapper.
//
void engine_initialization() {
SourceDB::register_lua_builtins();
}
static DrivenEngineInitializerReg eireg(engine_initialization);
//////////////////////////////////////////////////////////////////////////////
//
// Functions that allow the Driver to Peer Directly into the World.