ppsspp/ios/main.mm
Henrik Rydgard 32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01:00

34 lines
579 B
Plaintext

// main.mm boilerplate
#import <UIKit/UIKit.h>
#import <string>
#import "AppDelegate.h"
#include "base/NativeApp.h"
std::string System_GetProperty(SystemProperty prop) {
switch (prop) {
case SYSPROP_NAME:
return "iOS:";
case SYSPROP_LANGREGION:
return "en_US";
default:
return "";
}
}
void System_SendMessage(const char *command, const char *parameter) {
}
void Vibrate(int length_ms) {
// TODO: Haptic feedback?
}
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}