mirror of https://github.com/axmolengine/axmol.git
28 lines
790 B
C++
28 lines
790 B
C++
#include "AppDelegate.h"
|
|
|
|
[! if CCX_USE_UI_RESOURCE]
|
|
#include "[!output PROJECT_NAME_LOWER]_res_c.h"
|
|
|
|
const ResourceRegisterEntry ResRegList_[!output PROJECT_NAME][] =
|
|
{
|
|
TG_RESOURCE_DEFINE
|
|
};
|
|
|
|
extern const AppResourceEntry [!output PROJECT_NAME]ResourceEntry =
|
|
{
|
|
(ResourceRegisterEntry*)ResRegList_[!output PROJECT_NAME], // res list in this app
|
|
sizeof(ResRegList_[!output PROJECT_NAME]) / sizeof(ResourceRegisterEntry), //number of item in res
|
|
};
|
|
|
|
[! endif]
|
|
Int32 TG3AppMain(const TUChar * pAppID, UInt32 nCmd, void * pCmdParam)
|
|
{
|
|
AppDelegate app;
|
|
[! if CCX_USE_UI_RESOURCE]
|
|
app.WM_SetResourceEntry(&[!output PROJECT_NAME]ResourceEntry);
|
|
[! endif]
|
|
app.Run();
|
|
|
|
return 1;
|
|
}
|