CControlView* CControlView::create(const char* pBaseBoard, const char* pJoystick) { CControlView* pRet = new CControlView(); if( pRet && pRet->initWithFile(pBaseBoard, pJoystick) ) { pRet->autorelease(); return pRet; } CC_SAFE_DELETE(pRet); return NULL; }
CControlView* CControlView::create() { CControlView* pRet = new CControlView(); if( pRet && pRet->init() ) { pRet->autorelease(); return pRet; } CC_SAFE_DELETE(pRet); return NULL; }