scriptenv?

This commit is contained in:
MihailRis
2024-04-21 15:41:47 +03:00
parent d213902648
commit 635e512142
26 changed files with 128 additions and 158 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ void scripting::on_frontend_close() {
scripting::hud = nullptr;
}
void scripting::load_hud_script(int env, std::string packid, fs::path file) {
void scripting::load_hud_script(scriptenv senv, std::string packid, fs::path file) {
int env = *senv;
std::string src = files::read_string(file);
logger.info() << "loading script " << file.u8string();