summaryrefslogtreecommitdiff
path: root/dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'dialog.c')
-rw-r--r--dialog.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/dialog.c b/dialog.c
index 814bbc1..c94809b 100644
--- a/dialog.c
+++ b/dialog.c
@@ -3,12 +3,12 @@
#include "TZR.h"
#include <stdio.h>
-static const char *___dialog;
+static char ___dialog[1024];
static int ___cursor;
void dialog_set(const char *s)
{
- ___dialog = s;
+ strcat(___dialog, s);
}
void dialog_update(void)
@@ -26,3 +26,8 @@ void dialog_draw(void)
{
font_draw(0, 0, ___dialog, ___cursor);
}
+
+int dialog_done(void)
+{
+ return ___dialog[___cursor] == '\0';
+}