Implement the close and revert menu choices, as well as PC editor help

- Fix storing directions in save file as control characters
This commit is contained in:
2015-02-14 13:19:52 -05:00
parent 4fbc6cfa77
commit 0aaa299642
13 changed files with 96 additions and 31 deletions

View File

@@ -7,8 +7,9 @@
//
#include <Cocoa/Cocoa.h>
#include <string>
extern bool verify_restore_quit(bool mode);
extern bool verify_restore_quit(std::string dlog);
extern bool All_Done;
typedef NSAppleEventDescriptor AEDescr;
@@ -37,7 +38,7 @@ void set_up_apple_events() {
-(void)handleQuit:(AEDescr*)theAppleEvent withReply: (AEDescr*)reply {
(void) theAppleEvent; // Suppress "unused parameter" warning
(void) reply;
All_Done = verify_restore_quit(0);
All_Done = verify_restore_quit("save-quit");
}
@end