Add script context
Some checks failed
Build Dusk / build-linux (push) Successful in 1m41s
Build Dusk / build-psp (push) Failing after 2m36s

This commit is contained in:
2025-12-04 20:57:12 -06:00
parent 8c74ee31e0
commit 4e1b404820
13 changed files with 369 additions and 90 deletions

View File

@@ -7,12 +7,9 @@
#pragma once
#include "error/error.h"
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
typedef struct scriptmanager_s {
lua_State *luaState;
void *nothing;
} scriptmanager_t;
extern scriptmanager_t SCRIPT_MANAGER;
@@ -24,22 +21,6 @@ extern scriptmanager_t SCRIPT_MANAGER;
*/
errorret_t scriptManagerInit();
/**
* Execute a Lua script.
*
* @param script The script to execute.
* @return The error return value.
*/
errorret_t scriptManagerExecString(const char_t *script);
/**
* Execute a Lua script from a file.
*
* @param filename The filename of the script to execute.
* @return The error return value.
*/
errorret_t scriptManagerExecFile(const char_t *filename);
/**
* Dispose of the script manager.
*