Changed file loading to use cocos2d-x API.