Pass lua source directly into event_init

This commit is contained in:
2023-10-23 20:19:36 -04:00
parent 7104a523b5
commit c4bb4bfb9d
4 changed files with 5 additions and 10 deletions

View File

@@ -31,12 +31,12 @@ public:
Gui gui_;
public:
virtual void event_init(int argc, char *argv[]) {
virtual void event_init(std::string_view srcpk, int argc, char *argv[]) {
// Create the master world model.
master_.reset(new World(WORLD_TYPE_MASTER));
// Update the source code of the master model.
master_->update_source(get_lua_source_pack());
master_->update_source(srcpk);
// Create an actor for administrative commands.
admin_id_ = master_->create_login_actor();