summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uisimulator/app.c15
-rw-r--r--uisimulator/tetris.c4
2 files changed, 17 insertions, 2 deletions
diff --git a/uisimulator/app.c b/uisimulator/app.c
index 9222172d22..a9456664c4 100644
--- a/uisimulator/app.c
+++ b/uisimulator/app.c
@@ -21,13 +21,17 @@
#include "types.h"
#include "lcd.h"
-#define HAVE_RECORDER_KEYPAD
#include "button.h"
+#include "kernel.h"
#ifdef SIMULATOR
#include <stdio.h>
+#ifndef _WIN32
#include <unistd.h>
#endif
+#endif
+
+extern void tetris(void);
#define LINE_HEIGHT 8
@@ -87,3 +91,12 @@ void app_main(void)
lcd_update();
}
}
+
+
+#ifdef _WIN32
+// for win32 simulator compability
+void main (void)
+{
+ app_main ();
+}
+#endif \ No newline at end of file
diff --git a/uisimulator/tetris.c b/uisimulator/tetris.c
index e18474a83a..f85074a541 100644
--- a/uisimulator/tetris.c
+++ b/uisimulator/tetris.c
@@ -21,13 +21,15 @@
#include "types.h"
#include "lcd.h"
-#define HAVE_RECORDER_KEYPAD
#include "button.h"
+#include "kernel.h"
#ifdef SIMULATOR
#include <stdio.h>
+#ifndef _WIN32
#include <unistd.h>
#endif
+#endif
int start_x = 1;
int start_y = 1;