cocos2d-x 2.1.5 jsb 读取 plist

static JSBool js_cocos2dx_CCFileUtils_createDictionaryWithContentsOfFile(JSContext *cx, uint32_t argc, jsval *vp) { jsval *argv = JS_ARGV(cx, vp); JSBool ok = JS_TRUE; JSObject *obj = JS_THIS_OBJECT(cx, vp); js_proxy_t *proxy = jsb_get_js_proxy(obj); cocos2d::CCFileUtils* cobj = (cocos2d::CCFileUtils *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object"); if (argc == 1) { std::string arg0; ok &= jsval_to_std_string(cx, argv[0], &arg0;); JSB_PRECONDITION2(ok, cx, JS_FALSE, "Error processing arguments"); cocos2d::CCDictionary* ret = CCDictionary::createWithContentsOfFile(arg0.c_str()); jsval jsret; jsret = ccdictionary_to_jsval(cx, ret); JS_SET_RVAL(cx, vp, jsret); return JS_TRUE; } JS_ReportError(cx, "wrong number of arguments: %d, was expecting %d", argc, 1); return JS_FALSE; }

2013-10-17 · 1 分钟 · admin

cocos2d-x 2.1.5 clippingNode在 jsb 下无效的修改

**http://cocos2d-x.org/boards/6/topics/20141?r=20567#message-20567 ** for iOS: in AppController replace the gl-view creation with: EAGLView *__glView = [EAGLView viewWithFrame: [window bounds] pixelFormat: kEAGLColorFormatRGBA8 depthFormat: GL_DEPTH24_STENCIL8_OES preserveBackbuffer: NO sharegroup: nil multiSampling: NO numberOfSamples: 0]; for Android: in game activity: public Cocos2dxGLSurfaceView onCreateView() { Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); return glSurfaceView; }

2013-09-23 · 1 分钟 · admin

bae联通节点更新ip,广州长宽终于正常了

bae 联通节点之前一直用的是 63开头的ip,长城宽带一直打不开。。有时 hao123 都打不开。。 ,今天打开 blog 一下就开了。。发现联通节点变成了 202.108.23.200 速度还真不错,不知道是不是前几天我在群里反应长城宽带打不开网站就调整了哈。

2013-09-16 · 1 分钟 · admin

jsonp 后 ie 下 cookie 还是不能跨域问题

在非 ie 都 直用 jsonp cookie 是没问题,但是在 ie 下不能生效,还是得靠 p3p 解决 header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

2013-04-16 · 1 分钟 · admin

godaddy 2013年2月2.95美元域名优惠码可以国内信用卡付款!

godaddy的超级优惠码已经很久都不支持国内的信用卡付款了,今天终于有一枚支持国内信用卡的godaddy域名优惠码吧! godaddy 2013年2月2.95美元域名优惠码 iap295f 说明:点击即可享受优惠,无需在输入优惠码!结账时自然优惠!新购买/转移.com域名仅需2.95美元首年!每人限购一个! 有效期:未知 2013年2月27日验证有效! 付款方式:只能信用卡付款!支持国内信用卡购买! [drpcoupon name=“iap295f” exclude=“name,expiration,description,rss”]

2013-02-28 · 1 分钟 · admin

2013年2月GODADDY主机5折优惠码

godaddy主机2013年2月5折最新优惠码: godaddy主机2013年2月5折优惠链接 说明:点击即可优惠,无需输入优惠码! 有效期:2013年3月1日前! 或者你也可以使用以下优惠码: [drpcoupon name=“cjcwd50h” exclude=“name,expiration,description,rss”] 说明:点击即可优惠,无需输入优惠码!

2013-02-22 · 1 分钟 · admin

今天把blog迁到了 phpcloud 试用中

之前已经介绍过 phpcloud 空间了,也试用过一个站,不过好像被封了,可能是太占资源了哈哈,把 blog 移过过看看会不会被封掉,转移 blog 还是有点麻类的, phpcloud 的 git 权限和apache 权限不致, wordpress 在线更新是比烦的事,改成 777 可以解决,费力呀。。

2013-02-21 · 1 分钟 · admin

在次走进教室

很早之前就想过回到学校在学点什么,可是自己一直没下定过决心,这次在老婆的一再坚持下,已经托了一周了。。终于帮我报了名,下个月开学,希望顺利毕业

2012-10-29 · 1 分钟 · admin

freebsd6升级到freebsd7

Author: Ralf S. Engelschall Created: 2007-05-24 Modified: 2009-08-01 Version: 1.3 ATTENTION: THIS UPGRADE PROCEDURE MIGHT NOT WORK FOR YOU AS YOUR ENVIRONMENT IS DIFFERENT. ALSO, THIS UPGRADE PROCEDURES MIGHT DESTROY YOUR SYSTEM AND YOU POTENTIALLY MIGHT LOOSE DATA. NO WARRANTY AT ALL. USE IT AT YOUR OWN RISK! This upgrades from FreeBSD 6.4-STABLE to 7.2-STABLE. ---- PROLOG ----------------------------------------------------------------- o # reboot once to make sure OLD system is at least # able to still successfully reboot autonomous at all # SORRY, THIS IS _NOT_ A JOKE -- THIS IS A VERY SERIOUS ISSUE!...

2012-10-22 · 3 分钟 · admin

freebsd7升级到freebsd8

Upgrading from FreeBSD 7.X to FreeBSD 8.X ========================================= Author: Ralf S. Engelschall Created: 2009-01-01 Modified: 2011-01-29 Version: 1.4 ATTENTION: THIS UPGRADE PROCEDURE MIGHT NOT WORK FOR YOU AS YOUR ENVIRONMENT IS DIFFERENT. ALSO, THIS UPGRADE PROCEDURES MIGHT DESTROY YOUR SYSTEM AND YOU POTENTIALLY MIGHT LOOSE DATA. NO WARRANTY AT ALL. USE IT AT YOUR OWN RISK! This upgrades from FreeBSD 7.3-STABLE to 8.2-STABLE. ---- PREPARE ---------------------------------------------------------------- o # reboot once to make sure OLD system is at least # able to still successfully reboot autonomous at all # SORRY, THIS IS _NOT_ A JOKE -- THIS IS A VERY SERIOUS ISSUE!...

2012-10-22 · 3 分钟 · admin

freebsd8升级到freebsd9

Upgrading from FreeBSD 8.X to FreeBSD 9.X ========================================= Author: Ralf S. Engelschall Created: 2011-09-30 Modified: 2011-09-30 Version: 1.0 ATTENTION: THIS UPGRADE PROCEDURE MIGHT NOT WORK FOR YOU AS YOUR ENVIRONMENT IS DIFFERENT. ALSO, THIS UPGRADE PROCEDURES MIGHT DESTROY YOUR SYSTEM AND YOU POTENTIALLY MIGHT LOOSE DATA. NO WARRANTY AT ALL. USE IT AT YOUR OWN RISK! This upgrades from FreeBSD 8.2-STABLE to 9.0-BETA3. ---- PREPARE ---------------------------------------------------------------- o # reboot once to make sure OLD system is at least # able to still successfully reboot autonomous at all # SORRY, THIS IS _NOT_ A JOKE -- THIS IS A VERY SERIOUS ISSUE!...

2012-10-22 · 3 分钟 · admin

godaddy开始限制中国用户?

最近 godaddy 2.95优惠码 ,5.95优惠码,中国用户支付的时候都会提示 Unfortunately, we are unable to process your purchase using this form of payment. Please utilize another form of payment, or contact (480) 505-8855 for further assistance. 包括刚刚活动的 2.95优惠码还是同样提示。希望这几次只是误伤,不过有同学打电话过去,注册成功,如果你口语还不错,可以试一下。。

2012-10-20 · 1 分钟 · admin

openshift集成了 zend server

今天收到邮 openshift 已经开始支持 zend server 了,这是 openshift 对 php 支持另一种试,强大呀,有兴趣的同学可以去试试,在创建 app 的时候选择 zend server 就可以了。

2012-10-13 · 1 分钟 · admin

GoDaddy .COM域名10月优惠码:2.95美元注册/转入.COM!

GoDaddy 2012年10月份GoDaddy优惠码:2.95美元超低价注册或转入.COM域名!而且不只适用于注册,还适用于从其它注册商将你的域名转入到GoDaddy!无论新老用户均可享受优惠! [drpcoupon name=“godaddy cjc295v” exclude=“name,expiration,description,rss”] (注:此优惠链接已集成GoDaddy 10月优惠码,无需再输入优惠码。有效期未知。)

2012-10-12 · 1 分钟 · admin

GoDaddy .COM域名10月优惠码:5.99美元注册/转入.COM!

GoDaddy 2012年10月份GoDaddy优惠码:5.99美元超低价注册或转入.COM域名!而且不只适用于注册,还适用于从其它注册商将你的域名转入到GoDaddy!无论新老用户均可享受优惠! [drpcoupon name=“godaddy cjc599v2” exclude=“name,expiration,description,rss”] (注:此优惠链接已集成GoDaddy 10月优惠码,无需再输入优惠码。有效期未知。)

2012-10-12 · 1 分钟 · admin