From 8c5238c34927abc5ec4dcb88f1fcc4ec24b39838 Mon Sep 17 00:00:00 2001 From: Arzed Five Date: Wed, 8 Jun 2016 23:03:49 +0100 Subject: [PATCH] Undo Load State and Undo Save State both seem to be working. --- command.c | 4 ++-- internal buffer | Bin 0 -> 83988 bytes intl/msg_hash_us.c | 10 +++++----- msg_hash.h | 4 ++-- tasks/task_save_state.c | 25 ++++++++++++++++--------- 5 files changed, 25 insertions(+), 18 deletions(-) create mode 100644 internal buffer diff --git a/command.c b/command.c index 3a69e11525..63e5ff9d90 100644 --- a/command.c +++ b/command.c @@ -1600,7 +1600,7 @@ static void command_event_undo_save_state(char *s, size_t len) if (!content_undo_save_state()) { snprintf(s, len, "%s \"%s\".", - msg_hash_to_str(MSG_FAILED_TO_SAVE_UNDO), + msg_hash_to_str(MSG_FAILED_TO_UNDO_SAVE_STATE), "from internal buffer"); } } @@ -1638,7 +1638,7 @@ static void command_event_undo_load_state(char *s, size_t len) if (!content_undo_load_state()) { snprintf(s, len, "%s \"%s\".", - msg_hash_to_str(MSG_FAILED_TO_LOAD_UNDO), + msg_hash_to_str(MSG_FAILED_TO_UNDO_LOAD_STATE), "from internal buffer"); } } diff --git a/internal buffer b/internal buffer new file mode 100644 index 0000000000000000000000000000000000000000..84b907ed8eb914cfb32722a72f8b8517e345225a GIT binary patch literal 83988 zcmeHw4RjpEooBU1)(B%fa%@0=(2M~m7|2H0T#!NQnQ&oWmh3)!Y@Bd+OKe$oj1ybd zS^|j!R0DVy_CXf&miLbLHg|T|x9^CP4Y|wPg z&=5&e_xo3MRaf_XNX9bQP}Q30`qlrlepOx5-7}+M9%F0}56{~|&uq)~!LdEEdf%4q z!*+da913j*4{q5$f=WT~M{oMv2N^4_@Xp@5>akVD70=~5&$)h?;LqjOtU7CzmN(mP z*{&QiHY5WNUAb#;bZigRy`eQ$eXXgpp{q>Y8zQrI#vVU1G&-_p$JjQq6kDaQt-A)d zj*g+)c1{lU(LJQw_I%gY+s3XOk}=xbI-Yr%;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