diff options
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r-- | src/frontend/mame/luaengine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index 79e65d4e9c9..7e7d5d78572 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -778,6 +778,7 @@ void lua_engine::initialize() emu.new_usertype<emu_file>("file", sol::call_constructor, sol::constructors<sol::types<const char *, uint32_t>>(), "read", [](emu_file &file, sol::buffer *buff) { buff->set_len(file.read(buff->get_ptr(), buff->get_len())); return buff; }, + "write", [](emu_file &file, const std::string &data) { return file.write(data.data(), data.size()); }, "open", static_cast<osd_file::error (emu_file::*)(const std::string &)>(&emu_file::open), "open_next", &emu_file::open_next, "seek", &emu_file::seek, |