UI: Remove IO functions from havok vm

This commit is contained in:
FutureRave 2022-10-25 23:56:12 +01:00
parent f02b6afb71
commit 957dc1ef3e
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31

View File

@ -138,17 +138,6 @@ namespace ui_scripting
{ {
const auto lua = get_globals(); const auto lua = get_globals();
lua["io"]["fileexists"] = utils::io::file_exists;
lua["io"]["writefile"] = utils::io::write_file;
lua["io"]["movefile"] = utils::io::move_file;
lua["io"]["filesize"] = utils::io::file_size;
lua["io"]["createdirectory"] = utils::io::create_directory;
lua["io"]["directoryexists"] = utils::io::directory_exists;
lua["io"]["directoryisempty"] = utils::io::directory_is_empty;
lua["io"]["listfiles"] = utils::io::list_files;
lua["io"]["removefile"] = utils::io::remove_file;
lua["io"]["readfile"] = static_cast<std::string(*)(const std::string&)>(utils::io::read_file);
using game = table; using game = table;
auto game_type = game(); auto game_type = game();
lua["game"] = game_type; lua["game"] = game_type;