mirror of https://github.com/axmolengine/axmol.git
modify copy resource to res/resjs
This commit is contained in:
parent
707e9d4d7b
commit
f9df298401
|
@ -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',
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue