We can now load lua scripts properly

This commit is contained in:
wheremyfoodat 2023-12-16 16:36:03 +02:00
parent c57f2db6c0
commit 6386605b97
6 changed files with 73 additions and 2 deletions

View file

@ -1,4 +1,6 @@
#pragma once
#include <string>
#include "helpers.hpp"
#include "memory.hpp"
@ -36,6 +38,8 @@ class LuaManager {
void initialize();
void initializeThunks();
void loadFile(const char* path);
void loadString(const std::string& code);
void reset();
void signalEvent(LuaEvent e) {
if (haveScript) [[unlikely]] {
@ -52,6 +56,7 @@ class LuaManager {
void close() {}
void initialize() {}
void loadFile(const char* path) {}
void loadString(const std::string& code) {}
void reset() {}
void signalEvent(LuaEvent e) {}
};