We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Unify the method of loading lua files on all platforms
Unify the method of loading lua files on all platforms
Refactor #2084 [Closed]
Status: | Closed | |
---|---|---|
Start date: | 2013-04-26 | |
Priority: | Normal | |
Due date: | ||
Assignee: | zhangxm | |
% Done: | 100% |
|
Category: | lua | |
Target version: | cocos2d-2.1rc0-x-2.1.3 |
Android has its own lua loader because lua files are packed into a zip file(apk). So all lua files are loaded through CCFileUtils.
It means that we can use the same file searching mechanism as other resources.
On other platforms, lua engine load a lua file by its own searching mechanism. So should set search path into lua engine, it is not convenient.
We should use one searching mechanism for all resources.