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

@@ -69,7 +69,7 @@ public:
channel_.reset();
}
virtual void event_init(int argc, char *argv[]) {
virtual void event_init(std::string_view srcpk, int argc, char *argv[]) {
// Put the world into the starting state.
set_initial_state();
@@ -78,10 +78,6 @@ public:
// Set the console prompt
set_console_prompt(console_.get_prompt());
// The driver loads the lua source automatically.
// However, we don't need it. Throw it out.
get_lua_source_pack();
}
void send_invocation(const Invocation &inv) {