Also add basic support for "clean exit" to Symbian (although hacky)

This commit is contained in:
Henrik Rydgard 2014-02-12 11:54:53 +01:00
parent ae94967bec
commit 5557c6801b
2 changed files with 9 additions and 1 deletions

View file

@ -24,6 +24,8 @@
#endif
#include "QtMain.h"
#include <string.h>
InputState* input_state;
std::string System_GetProperty(SystemProperty prop) {
@ -54,7 +56,12 @@ std::string System_GetProperty(SystemProperty prop) {
}
void System_SendMessage(const char *command, const char *parameter) {
// Log?
// TODO: Cleaner exit
if (!strcmp(command, "finish")) {
NativeShutdown();
net::Shutdown();
exit(0);
}
}
bool System_InputBoxGetString(char *title, const char *defaultValue, char *outValue, size_t outLength)