Add stub for TakeScreenshot api function
This commit is contained in:
1 parent
38e3a39782
commit
6e35123b5d
2 files changed
+7
No files matched your search
@@ -2,6 +2,10 @@
|
||||
|
||||
## [Unreleased] - ReleaseDate
|
||||
|
||||
### Added
|
||||
|
||||
- Add stub for `TakeScreenshot` api function
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix crash caused by missing `SetForeground` api function
|
||||
|
||||
@@ -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)?)?;
|
||||
|
||||
Reference in new issue
Block a user