diff --git a/MUSHclient.rc b/MUSHclient.rc index fd921852..8184cfb7 100644 --- a/MUSHclient.rc +++ b/MUSHclient.rc @@ -96,7 +96,7 @@ BEGIN VALUE "FileDescription", "MUSHclient\0" VALUE "FileVersion", "4.92\0" VALUE "InternalName", "MUSHCLIENT\0" - VALUE "LegalCopyright", "Copyright © 2013 Nick Gammon\0" + VALUE "LegalCopyright", "Copyright © 2014 Nick Gammon\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "MUSHCLIENT.EXE\0" VALUE "PrivateBuild", "\0" diff --git a/doc.h b/doc.h index 4d4df9f2..892ca6ee 100644 --- a/doc.h +++ b/doc.h @@ -902,6 +902,7 @@ class CMUSHclientDoc : public CDocument // version 4.92 unsigned short m_bLogScriptErrors; // write scripting error messages to log file? + unsigned short m_bOmitSavedDateFromSaveFiles; // if set, do not write the date saved to save files // end of stuff saved to disk ************************************************************** diff --git a/doc_construct.cpp b/doc_construct.cpp index e6aff5e0..b2b5e5f5 100644 --- a/doc_construct.cpp +++ b/doc_construct.cpp @@ -113,6 +113,7 @@ int i; m_bDoNotTranslateIACtoIACIAC = false; m_bAutoResizeCommandWindow = false; m_bLogScriptErrors = false; + m_bOmitSavedDateFromSaveFiles = false; m_iAutoResizeMinimumLines = 1; m_iAutoResizeMaximumLines = 20; m_bDoNotAddMacrosToCommandHistory = false; diff --git a/scriptingoptions.cpp b/scriptingoptions.cpp index f5171745..4185fb5d 100644 --- a/scriptingoptions.cpp +++ b/scriptingoptions.cpp @@ -145,7 +145,8 @@ tConfigurationNumericOption OptionsTable [] = { {"mxp_debug_level", DBG_NONE, O(m_iMXPdebugLevel), 0, 4}, {"naws", false, O(m_bNAWS)}, {"note_text_colour", 4, O(m_iNoteTextColour), 0, 0xFFFFFF, OPT_RGB_COLOUR | OPT_UPDATE_VIEWS}, -{"no_echo_off", false, O(m_bNoEchoOff)}, +{"no_echo_off", false, O(m_bNoEchoOff)}, +{"omit_date_from_save_files", false, O(m_bOmitSavedDateFromSaveFiles)}, {"output_font_height", 12, O(m_font_height), 1, 1000, OPT_UPDATE_VIEWS | OPT_UPDATE_OUTPUT_FONT}, {"output_font_weight", FW_DONTCARE, O(m_font_weight), 0, 1000, OPT_UPDATE_VIEWS | OPT_UPDATE_OUTPUT_FONT}, {"output_font_charset", DEFAULT_CHARSET, O(m_font_charset), 0, 65536, OPT_UPDATE_VIEWS | OPT_UPDATE_OUTPUT_FONT}, diff --git a/xml/xml_save_world.cpp b/xml/xml_save_world.cpp index 2d0d46ce..e9ddf662 100644 --- a/xml/xml_save_world.cpp +++ b/xml/xml_save_world.cpp @@ -29,7 +29,8 @@ void CMUSHclientDoc::Save_Version_And_Date_XML (CArchive& ar) Save_XML_string (ar, "muclient_version", MUSHCLIENT_VERSION); Save_XML_number (ar, "world_file_version", VERSION); - Save_XML_date (ar, "date_saved", CTime::GetCurrentTime()); + if (!m_bOmitSavedDateFromSaveFiles) + Save_XML_date (ar, "date_saved", CTime::GetCurrentTime()); } // end of CMUSHclientDoc::Save_Version_And_Date_XML @@ -43,10 +44,13 @@ void CMUSHclientDoc::Save_World_XML (CArchive& ar, // document type is world ar.WriteString ("" NL); - // when did we save it? - ar.WriteString (CFormat ("" NL, - FixHTMLString (CTime::GetCurrentTime().Format - (TranslateTime ("%A, %B %d, %Y, %#I:%M %p"))))); + if (!m_bOmitSavedDateFromSaveFiles) + { + // when did we save it? + ar.WriteString (CFormat ("" NL, + FixHTMLString (CTime::GetCurrentTime().Format + (TranslateTime ("%A, %B %d, %Y, %#I:%M %p"))))); + } // which version was it? ar.WriteString (CFormat