2010-11-12 16:25:14 +08:00
|
|
|
#include "TG3.h"
|
|
|
|
#include "../AppDelegate.h"
|
2011-01-19 18:02:35 +08:00
|
|
|
#include "cocos2d.h"
|
|
|
|
#include "SimpleAudioEngine.h"
|
2010-11-12 16:25:14 +08:00
|
|
|
|
|
|
|
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
|
|
|
|
{
|
2011-01-19 18:02:35 +08:00
|
|
|
AppDelegate app;
|
|
|
|
|
2011-01-22 16:22:26 +08:00
|
|
|
#ifndef _TRANZDA_VM_ // on uphone emulator, we copy resources files to Work7/TG3/APP/ folder instead of zip file
|
2011-01-25 14:26:26 +08:00
|
|
|
cocos2d::CCFileUtils::setResource("TestCocos2dx.zip");
|
|
|
|
CocosDenshion::SimpleAudioEngine::setResource("TestCocos2dx.zip");
|
2011-01-22 16:22:26 +08:00
|
|
|
#endif
|
2011-01-19 18:02:35 +08:00
|
|
|
|
|
|
|
app.Run();
|
|
|
|
|
2010-11-12 16:25:14 +08:00
|
|
|
return 1;
|
|
|
|
}
|