2010-11-27 18:25:31 +08:00
|
|
|
// Application main file.
|
|
|
|
|
|
|
|
// Original file name: cocosTemplateEntry.cpp
|
|
|
|
// Generated by TOPS Builder:Project wizard,Date:2010-09-27
|
|
|
|
|
2011-01-19 18:02:35 +08:00
|
|
|
// uphone header
|
2010-11-27 18:25:31 +08:00
|
|
|
#include "TG3.h"
|
|
|
|
// cocos2d
|
2011-01-19 18:02:35 +08:00
|
|
|
#include "cocos2d.h"
|
|
|
|
// game
|
2010-11-27 18:25:31 +08:00
|
|
|
#include "AppDelegate.h"
|
|
|
|
|
|
|
|
|
|
|
|
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
|
|
|
|
{
|
|
|
|
AppDelegate app;
|
2011-01-19 18:02:35 +08:00
|
|
|
|
|
|
|
#ifndef _TRANZDA_VM_ // on uphone emulator, we copy resources files to Work7/TG3/APP/ folder instead of zip file
|
|
|
|
cocos2d::CCFileUtils::setResource(NULL, "TestCocos2dx.zip");
|
|
|
|
#endif
|
|
|
|
|
2010-11-27 18:25:31 +08:00
|
|
|
app.Run();
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|