mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
feat: bytearray support in gfx.posteffects.set_array
This commit is contained in:
parent
8d9d1f9039
commit
4403df78d9
3 changed files with 9 additions and 6 deletions
|
|
@ -770,7 +770,10 @@ namespace lua {
|
|||
}
|
||||
|
||||
inline std::string_view bytearray_as_string(lua::State* L, int idx) {
|
||||
lua::pushvalue(L, idx);
|
||||
if (lua::type(L, idx) == LUA_TSTRING) {
|
||||
return lua::tolstring(L, idx);
|
||||
}
|
||||
lua::pushvalue(L, idx);
|
||||
lua::requireglobal(L, "Bytearray_as_string");
|
||||
lua::pushvalue(L, -2);
|
||||
lua::call(L, 1, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue