Projects > cpp > Issues > Refactor #2084

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Unify the method of loading lua files on all platforms

Refactor #2084 [Closed]
zhangxm 2013-04-26 04:10 . Updated over 3 years ago

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.

zhangxm 2013-04-26 05:22
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:5450686b9389ff18f8669e266964d08a30ac98d4.

Atom PDF

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

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.