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

@@ -144,7 +144,7 @@ public:
// The init callback. You may override this in a subclass.
// This will be called once at program initialization.
//
virtual void event_init(int argc, char *argv[]) {}
virtual void event_init(std::string_view srcpk, int argc, char *argv[]) {}
// The update callback. You may override this in a subclass.
// This will be called whenever anything changes.