Add stub for TakeScreenshot api function

This commit is contained in:
meehl committed 2025-10-28 23:15:24 +01:00
1 parent 38e3a39782
commit 6e35123b5d
2 files changed
+7

No files matched your search

+4
View File
@@ -2,6 +2,10 @@
## [Unreleased] - ReleaseDate
### Added
- Add stub for `TakeScreenshot` api function
### Fixed
- Fix crash caused by missing `SetForeground` api function
+3
View File
@@ -62,6 +62,9 @@ pub fn register_globals(lua: &Lua) -> LuaResult<()> {
globals.set("OpenURL", lua.create_function(open_url)?)?;
globals.set("RenderInit", lua.create_function(render_init)?)?;
let take_screenshot = |_: &Lua, ()| -> LuaResult<()> { Ok(()) }; // stub
globals.set("TakeScreenshot", lua.create_function(take_screenshot)?)?;
// compression
globals.set("Inflate", lua.create_function(inflate)?)?;
globals.set("Deflate", lua.create_function(deflate)?)?;