Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,19 @@ namespace enigma_user{
state.set(cname, var);
return;
}
//Test
<template class type>
type lua_get_var(string name){
if(state.getState() == nullptr)
show_error("Lua was not initialized!", false);

if(path == "")
show_error("Lua path is emptz!", true);

const char *cname = name.c_str();
type returner = state[name];
return returner;
}
int lua_get_int(string name){
if(state.getState() == nullptr){
show_error("Lua was not initialized!", false);
Expand Down Expand Up @@ -2148,4 +2161,4 @@ namespace enigma_user{
}
return;
}
}
}