add advanced lua errors handler & fix hud script source path in traceback

This commit is contained in:
MihailRis
2024-11-19 07:26:28 +03:00
parent 2412699b89
commit 66be215101
5 changed files with 35 additions and 7 deletions
+5 -1
View File
@@ -22,7 +22,11 @@ namespace scripting {
/// @param env environment id
/// @param packid content-pack id
/// @param file script file path
/// @param fileName script file path using the engine format
void load_hud_script(
const scriptenv &env, const std::string &packid, const fs::path &file
const scriptenv& env,
const std::string& packid,
const fs::path& file,
const std::string& fileName
);
}