From b98f887fbb9221207b56dbf1c91f8f0b54fcf3c0 Mon Sep 17 00:00:00 2001 From: Marek Kulik Date: Mon, 7 Aug 2023 20:58:25 +0200 Subject: [PATCH] Add File.getContents method --- Shared/mods/deathmatch/logic/luadefs/CLuaFileDefs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Shared/mods/deathmatch/logic/luadefs/CLuaFileDefs.cpp b/Shared/mods/deathmatch/logic/luadefs/CLuaFileDefs.cpp index c1ef75cd3b..b7602e3649 100644 --- a/Shared/mods/deathmatch/logic/luadefs/CLuaFileDefs.cpp +++ b/Shared/mods/deathmatch/logic/luadefs/CLuaFileDefs.cpp @@ -76,6 +76,7 @@ void CLuaFileDefs::AddClass(lua_State* luaVM) lua_classfunction(luaVM, "getPos", "fileGetPos"); lua_classfunction(luaVM, "getSize", "fileGetSize"); lua_classfunction(luaVM, "getPath", "fileGetPath"); + lua_classfunction(luaVM, "getContents", "fileGetContents"); lua_classfunction(luaVM, "isEOF", "fileIsEOF"); lua_classfunction(luaVM, "setPos", "fileSetPos");