How to implement a Lua container (virtual file system) module loader in C#

前端 未结 2 891
无人及你
无人及你 2021-02-10 03:59

Sounds a little bit scary isn\'t it?

Some background information, I want to load a tar archive which contains some lua modules into my C# application using LuaInterface.

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-10 04:47

    In LÖVE they have that working. All Lua files are inside one zip file, and they work, even if ... is used. The library they use is PhysicsFS.

    Have a look at the source. Probably /modules/filesystem will get you started.

提交回复
热议问题