mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-09 04:49:39 -10:00
This allows to use the built-in lua "require" function with our file system. This will help organize complicated scripts and it will also allow to use libraries which were designed for this system. To enable this change, this includes a new mechanism which allows to load scripts from the default file system so that the files don't need to be included in every mod. The default files can be overridden by a mod if a special mod-table option has been set, similar to how external shaders are handled right now.
5 lines
65 B
Lua
5 lines
65 B
Lua
|
|
local lib = require("lib");
|
|
|
|
assert(lib.test() == "TestString")
|