~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
It's actually vitally important, it turns out, to have all of the
[sgt/puzzles]
/
midend.c
diff --git
a/midend.c
b/midend.c
index
30ad32b
..
efe8111
100644
(file)
--- a/
midend.c
+++ b/
midend.c
@@
-573,3
+573,11
@@
char *midend_set_config(midend_data *me, int which, config_item *cfg)
return NULL;
}
return NULL;
}
+
+char *midend_text_format(midend_data *me)
+{
+ if (me->ourgame->can_format_as_text && me->statepos > 0)
+ return me->ourgame->text_format(me->states[me->statepos-1]);
+ else
+ return NULL;
+}