modify copy resource to res/resjs

This commit is contained in:
jianglong0156 2015-06-12 18:21:07 +08:00 committed by jianglong0156
parent 707e9d4d7b
commit f9df298401
3 changed files with 3 additions and 2 deletions

View File

@ -96,6 +96,7 @@ cc.game.onStart = function(){
searchPaths.push('script'); searchPaths.push('script');
searchPaths.push('src'); searchPaths.push('src');
var paths = [ var paths = [
'res/resjs',
'res', 'res',
'res/scenetest', 'res/scenetest',
'res/scenetest/ArmatureComponentTest', 'res/scenetest/ArmatureComponentTest',

View File

@ -28,7 +28,7 @@ var CocosBuilderTestScene = TestScene.extend({
runThisTest:function(){ runThisTest:function(){
if (cc.sys.isNative) if (cc.sys.isNative)
{ {
cc.BuilderReader.setResourcePath("res/"); cc.BuilderReader.setResourcePath("res/resjs/");
} }
else else
{ {

View File

@ -28,7 +28,7 @@ cc.BuilderReader.registerController("HelloCocosBuilderLayer", {
_openTest : function(ccbFileName) { _openTest : function(ccbFileName) {
if (cc.sys.isNative) if (cc.sys.isNative)
{ {
cc.BuilderReader.setResourcePath("res/"); cc.BuilderReader.setResourcePath("res/resjs/");
} }
else else
{ {