mirror of
https://github.com/grumpycoders/pcsx-redux.git
synced 2026-10-12 02:15:13 +00:00
Adding luafilesystem.
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
+1
Submodule third_party/luafilesystem added at 912e06714f
@@ -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" />
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user