mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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 = {}
|
spine = {}
|
||||||
|
|
||||||
|
if (system.getInfo("environment") == "simulator") then
|
||||||
|
package.path = package.path .. ";".. system.pathForFile("../") .. "/?.lua"
|
||||||
|
end
|
||||||
|
|
||||||
spine.utils = require "spine-lua.utils"
|
spine.utils = require "spine-lua.utils"
|
||||||
spine.SkeletonJson = require "spine-lua.SkeletonJson"
|
spine.SkeletonJson = require "spine-lua.SkeletonJson"
|
||||||
spine.SkeletonData = require "spine-lua.SkeletonData"
|
spine.SkeletonData = require "spine-lua.SkeletonData"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user