Adding luafilesystem.

This commit is contained in:
Nicolas Pixel Noble
2023-08-01 18:55:06 -07:00
parent a65ef63654
commit 2e71fb7dcf
7 changed files with 18 additions and 1 deletions
+3
View File
@@ -85,3 +85,6 @@
[submodule "third_party/nanosvg"]
path = third_party/nanosvg
url = https://github.com/grumpycoders/nanosvg
[submodule "third_party/luafilesystem"]
path = third_party/luafilesystem
url = https://github.com/lunarmodules/luafilesystem.git
+2 -1
View File
@@ -29,7 +29,6 @@ find a link to the vendored version itself.
- [FreeType](https://gitlab.freedesktop.org/freetype/freetype.git)
- [gl3w](https://github.com/skaslev/gl3w) ([vendored](https://github.com/grumpycoders/pcsx-redux/tree/main/third_party/gl3w/GL))
- [glfw](https://www.glfw.org)
- [luajit-opencl](https://github.com/malkia/luajit-opencl) ([vendored](https://github.com/grumpycoders/pcsx-redux/tree/main/third_party/glffi))
- [googletest](https://github.com/google/googletest)
- [GoogleTestAdapter](https://github.com/csoltenborn/GoogleTestAdapter) ([vendored](https://github.com/grumpycoders/pcsx-redux/tree/main/third_party/GoogleTestAdapter))
- [http-parser](https://github.com/nodejs/http-parser)
@@ -42,7 +41,9 @@ find a link to the vendored version itself.
- [libcester](https://github.com/exoticlibraries/libcester)
- [libuv](https://github.com/libuv/libuv)
- [lua-protobuf](https://github.com/starwing/lua-protobuf) ([vendored](https://github.com/grumpycoders/pcsx-redux/tree/main/third_party/lua-protobuf))
- [luafilesystem](https://github.com/lunarmodules/luafilesystem)
- [LuaJIT](https://github.com/LuaJIT/LuaJIT) ([vendored](https://github.com/grumpycoders/LuaJIT/tree/vendored-clib-virtual))
- [luajit-opencl](https://github.com/malkia/luajit-opencl) ([vendored](https://github.com/grumpycoders/pcsx-redux/tree/main/third_party/glffi))
- [luv](https://github.com/luvit/luv)
- [magic_enum](https://github.com/Neargye/magic_enum)
- [md4c](https://github.com/mity/md4c)
+1
View File
@@ -127,6 +127,7 @@ SRCS += third_party/imgui_lua_bindings/imgui_lua_bindings.cpp
SRCS += third_party/imgui_md/imgui_md.cpp
SRCS += third_party/imgui_memory_editor/imgui_memory_editor.cpp
SRCS += third_party/lua-protobuf/pb.c
SRCS += third_party/luafilesystem/src/lfs.c
SRCS += third_party/luv/src/luv.c
SRCS += third_party/md4c/src/md4c.c
SRCS += third_party/multipart-parser-c/multipart_parser.c
+3
View File
@@ -42,6 +42,7 @@
#include "lua/luafile.h"
#include "lua/luawrapper.h"
#include "lua/zlibffi.h"
#include "luafilesystem/src/lfs.h"
extern "C" {
#include "luv/src/luv.h"
}
@@ -91,6 +92,8 @@ void PCSX::Emulator::setLua() {
L.push("luv");
luaopen_luv(L.getState());
L.settable(LUA_GLOBALSINDEX);
luaopen_lfs(L.getState());
L.pop(3);
LuaFFI::open_file(L);
LuaFFI::open_pcsx(L);
LuaFFI::open_iso(L);
Vendored Submodule
+1
+2
View File
@@ -41,6 +41,7 @@
<ClCompile Include="..\..\src\lua\luawrapper.cc" />
<ClCompile Include="..\..\src\lua\zlibffi.cc" />
<ClCompile Include="..\..\third_party\lua-protobuf\pb.c" />
<ClCompile Include="..\..\third_party\luafilesystem\src\lfs.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\lua\extra.h" />
@@ -49,6 +50,7 @@
<ClInclude Include="..\..\src\lua\luawrapper.h" />
<ClInclude Include="..\..\src\lua\zlibffi.h" />
<ClInclude Include="..\..\third_party\lua-protobuf\pb.h" />
<ClInclude Include="..\..\third_party\luafilesystem\src\lfs.h" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\lua\fileffi-cdef.lua" />
+6
View File
@@ -33,6 +33,9 @@
<ClCompile Include="..\..\third_party\lua-protobuf\pb.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\third_party\luafilesystem\src\lfs.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\lua\luawrapper.h">
@@ -53,6 +56,9 @@
<ClInclude Include="..\..\third_party\lua-protobuf\pb.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\third_party\luafilesystem\lfs.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="..\..\src\lua\fileffi.lua">