|
@@ -1,5 +1,6 @@
|
|
|
#ifdef __APPLE__
|
|
#ifdef __APPLE__
|
|
|
|
|
|
|
|
|
|
+#import <Foundation/Foundation.h>
|
|
|
#include "gameplay.h"
|
|
#include "gameplay.h"
|
|
|
|
|
|
|
|
using namespace gameplay;
|
|
using namespace gameplay;
|
|
@@ -9,11 +10,13 @@ using namespace gameplay;
|
|
|
*/
|
|
*/
|
|
|
int main(int argc, char** argv)
|
|
int main(int argc, char** argv)
|
|
|
{
|
|
{
|
|
|
|
|
+ NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
|
|
|
Game* game = Game::getInstance();
|
|
Game* game = Game::getInstance();
|
|
|
Platform* platform = Platform::create(game);
|
|
Platform* platform = Platform::create(game);
|
|
|
GP_ASSERT(platform);
|
|
GP_ASSERT(platform);
|
|
|
int result = platform->enterMessagePump();
|
|
int result = platform->enterMessagePump();
|
|
|
delete platform;
|
|
delete platform;
|
|
|
|
|
+ [p release];
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
|
|
|