#include "main.h" #include "../Classes/AppDelegate.h" #include "cocos2d.h" #include "CCInstance.h" #include "CCModule.h" #include #include #include #include #include USING_NS_CC; AppDelegate g_app; void* cocos_main(void* arg) { CocosPepperInstance* instance = (CocosPepperInstance*)arg; fprintf(stderr, "in cocos_main: %p\n", instance); alSetPpapiInfo(instance->pp_instance(), pp::Module::Get()->get_browser_interface()); fprintf(stderr, "calling application->run\n"); int rtn = Application::sharedApplication()->run(); fprintf(stderr, "app run returned: %d\n", rtn); return NULL; } namespace pp { Module* CreateModule() { return new CocosPepperModule(); } }