mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
add relative path to package.path to make running the example work straight out of the box on simulator
This commit is contained in:
parent
2034a6e726
commit
b5da5daa38
@ -25,6 +25,10 @@
|
||||
|
||||
spine = {}
|
||||
|
||||
if (system.getInfo("environment") == "simulator") then
|
||||
package.path = package.path .. ";".. system.pathForFile("../") .. "/?.lua"
|
||||
end
|
||||
|
||||
spine.utils = require "spine-lua.utils"
|
||||
spine.SkeletonJson = require "spine-lua.SkeletonJson"
|
||||
spine.SkeletonData = require "spine-lua.SkeletonData"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user