forked from JoselleAstrid/ram-watch-cheat-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.lua
26 lines (21 loc) · 873 Bytes
/
loader.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- This code should be loaded with loadfile() from the top-level script.
-- The reason this is not in the top-level script itself is just to keep that
-- script as lean as possible.
-- RWCEMainDirectory, RWCEExtraDirectories, and RWCEOptions must be globals.
if package.loaded.runner == nil then
-- First run, need to add paths
local directories = {RWCEMainDirectory}
if RWCEExtraDirectories then
for _, directory in pairs(RWCEExtraDirectories) do
table.insert(directories, directory)
end
end
for _, directory in pairs(directories) do
package.path = package.path .. ';' .. directory .. [[/?.lua]]
package.path = package.path .. ';' .. directory .. [[/games/?.lua]]
package.path = package.path .. ';' .. directory .. [[/layouts/?.lua]]
end
end
package.loaded.runner = nil
local runner = require('runner')
runner.start(RWCEOptions)