mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
UI: Remove IO functions from havok vm
This commit is contained in:
parent
f02b6afb71
commit
957dc1ef3e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user