Upload UI
[lsnes.git] / src / lua / screenshot.cpp
blob9fc8afdf1d51e8a4e34e0b27175caddb314d0aa6
1 #include "core/framebuffer.hpp"
2 #include "lua/internal.hpp"
4 namespace
6 function_ptr_luafun lua_gui_screenshot(lua_func_misc, "gui.screenshot", [](lua_state& L,
7 const std::string& fname) -> int {
8 std::string fn = L.get_string(1, fname.c_str());
9 take_screenshot(fn);
10 return 0;
11 });