1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #include "CFTTAndroidAppCInterface.h"
- #include "CFTTAudio.h"
- #include "XCTRL.h"
- #include "Soccer.h"
- #include "FTTGraphics.h"
- #include "CFE.h"
- #include "SNDGAME.h"
- #include "SNDFE.h"
- #include "TGame.h"
- #include "memctrl.h"
- bool g_bAppResignActive;
- //-------------------------------------------------------------------------------------------------
- namespace CFTTAndroidAppCInterface {
- func_pApp m_OnStart;
- func_pApp m_OnCreate;
- func_pApp m_ResignActive;
- func_pApp m_BecomeActive;
- func_pApp m_DidEnterBackground;
- func_pApp m_WillTerminate;
- func_pApp m_ReceivedUrgentMemWarning;
- func_pApp m_RenderScene;
- func_pApp m_WillEnterForeground;
- bool m_bAppHasFocus;
- bool m_bAppInForeground;
- }; // namespace CFTTAndroidAppCInterface
- //-------------------------------------------------------------------------------------------------
- CFTTMem_HeapSettings CFTTMem_HeapSettings_305950[] = {
- {0x5C00000, "Main_Heap", 0x1010101, 0x100},
- {0, "Debug_Heap", 0x1010100, 0x100},
- {0, "Volatile_Heap", 0x1010100, 0x100},
- };
- //-------------------------------------------------------------------------------------------------
- //001F6934 //^_^ 经过单元测试,功能正常
- int AppStart() {
- LOGE("AppStart");
- return rand();
- }
- //-------------------------------------------------------------------------------------------------
- //001F6838 //^_^
- int AppOnStart(void* parg) {
- LOGE("%pAppOnStart",parg);
- return rand();
- }
- //-------------------------------------------------------------------------------------------------
- class CHeroAnalytics {
- public:
- static void Init() {
- LOGI("CHeroAnalytics::Init entry");
- };
- };
- //001F6820 //^_-
- int AppOnCreate(void* parg) {
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F6840 //^_^
- int AppResignActive(void* parg) {
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F686C //^_^
- int AppBecomeActive(void* parg) {
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F689C //^_^
- int AppDidEnterBackground(void* parg) {
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F68CC //^_^
- int AppWillEnterForeground(void* parg) {
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F683C //^_^
- int AppReceivedUrgentMemoryWarning(void* parg) {
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F6898 //^_^
- int AppWillTerminate(void* parg) {
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F6928 //^_^
- int AppRenderScene(void* parg) {
- Soccer_MainLoop();
- return 1;
- }
- //-------------------------------------------------------------------------------------------------
- //001F6954 //^_^
- void AppSetupCallbacks() {
- LOGE("AppSetupCallbacks");
- }
- //-------------------------------------------------------------------------------------------------
|