Pass lua source directly into event_init
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user