From fa81f9170982520d00d773733bfac265978f0494 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Sun, 24 Apr 2016 12:30:14 +0200 Subject: [PATCH] Save programStartTime in settings file rather than save time The -saveDate time stamp is used to decide whether XBoard has seen options added to the master settings file before. But it looks only to the master settings file at stratup. So when we save settings we now put XBoards startup time as -saveDte in it, so that installs when XBoard was already running would still find their way into the user settings file. --- args.h | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/args.h b/args.h index c67abf1..85e8765 100644 --- a/args.h +++ b/args.h @@ -1530,11 +1530,10 @@ SaveSettings(char* name) ArgDescriptor *ad; char dir[MSG_SIZ], buf[MSG_SIZ]; int mps = appData.movesPerSession; - TimeMark now; if (!MainWindowUp() && !autoClose) return; - GetTimeMark(&now); saveDate = now.sec; + saveDate = programStartTime.sec; GetCurrentDirectory(MSG_SIZ, dir); if(MySearchPath(installDir, name, buf)) { -- 1.7.0.4