From feb5737a622feb0ac5276c9c8b674da9b5e9c021 Mon Sep 17 00:00:00 2001 From: Panakotta00 Date: Mon, 18 Nov 2024 19:46:37 +0100 Subject: [PATCH] fix: lua: Add missing FileSystemModule --- .../FicsItNetworksLua/Private/FINLua/API/LuaFileSystemAPI.cpp | 4 ++-- Source/FicsItNetworksLua/Private/FINLuaProcessor.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/FicsItNetworksLua/Private/FINLua/API/LuaFileSystemAPI.cpp b/Source/FicsItNetworksLua/Private/FINLua/API/LuaFileSystemAPI.cpp index 7b312e30..a9621725 100644 --- a/Source/FicsItNetworksLua/Private/FINLua/API/LuaFileSystemAPI.cpp +++ b/Source/FicsItNetworksLua/Private/FINLua/API/LuaFileSystemAPI.cpp @@ -44,7 +44,7 @@ namespace FINLua { LuaModule(R"(/** - * @LuaModule FileSystem + * @LuaModule FileSystemModule * @DisplayName File-System Module * * FicsIt-Networks implements it’s own virtual filesystem for UNIX like experience using the FileSystem. @@ -52,7 +52,7 @@ namespace FINLua { * There is also a DriveNode which simply holds a reference to a drive so you can access a drive via the filesystem. You can use then the mount function to mount the Drive of a DriveNode to the given location in the filesystem tree. * Because you need at least one drive mounted to even be able to access any node, we provide the initFileSystem function which you can call only once in a system session. This functions will then mount the DevDevice to the given location. * The DevDevice is a sepcial Device which holds all the DeviceNodes representing Device attached to the computer session, like hard drives, tempfs and the serial I/O. - */)", FileSystem) { + */)", FileSystemModule) { LuaModuleLibrary(R"(/** * @LuaLibrary filesystem * @DisplayName File-System Library diff --git a/Source/FicsItNetworksLua/Private/FINLuaProcessor.cpp b/Source/FicsItNetworksLua/Private/FINLuaProcessor.cpp index 141688e2..5b6583c3 100644 --- a/Source/FicsItNetworksLua/Private/FINLuaProcessor.cpp +++ b/Source/FicsItNetworksLua/Private/FINLuaProcessor.cpp @@ -43,6 +43,7 @@ UFINLuaProcessor::UFINLuaProcessor() { Runtime.Runtime.Modules.Add("WorldModule"); Runtime.Runtime.Modules.Add("EventModule"); Runtime.Runtime.Modules.Add("FutureModule"); + Runtime.Runtime.Modules.Add("FileSystemModule"); Runtime.Runtime.OnPreLuaTick.AddWeakLambda(this, [this](TArray>& TickStack) { TickStack.Add(MakeShared(GetKernel()->GetLog())); });