axmol/samples/Javascript/CocosPlayer/proj.ios/AppController.h

24 lines
758 B
C
Raw Normal View History

2013-04-18 08:24:59 +08:00
#import "ServerController.h"
void startServer(bool isRetina, bool isIPhone);
void cleanCache() {
std::string path = cocos2d::CCFileUtils::sharedFileUtils()->getWritablePath();
NSString *writeablePath = [NSString stringWithCString:path.c_str() encoding:NSASCIIStringEncoding];
NSString* dirPath = [writeablePath stringByAppendingPathComponent:@"ccb"];
[[NSFileManager defaultManager] removeItemAtPath:dirPath error:NULL];
[[NSFileManager defaultManager] removeItemAtPath:writeablePath error:NULL];
}
@class RootViewController;
@interface AppController : NSObject <UIAccelerometerDelegate, UIAlertViewDelegate, UITextFieldDelegate,UIApplicationDelegate> {
UIWindow *window;
RootViewController *viewController;
}
@end