1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-14 14:24:10 +02:00

Added date/time to startup output

This commit is contained in:
Brian Fiete 2020-01-24 11:51:31 -08:00
parent 49122ae6aa
commit fb7745af85

View file

@ -10165,14 +10165,17 @@ namespace IDE
}
}
public FileVersionInfo GetVersionInfo()
public FileVersionInfo GetVersionInfo(out DateTime exeTime)
{
exeTime = default;
if (mVersionInfo == null)
{
String exeFilePath = scope .();
Environment.GetExecutableFilePath(exeFilePath);
mVersionInfo = new .();
mVersionInfo.GetVersionInfo(exeFilePath).IgnoreError();
exeTime = File.GetLastWriteTime(exeFilePath).GetValueOrDefault();
}
return mVersionInfo;
}
@ -10304,8 +10307,15 @@ namespace IDE
mAutoCompletePanel = new AutoCompletePanel();
mAutoCompletePanel.mAutoDelete = false;
GetVersionInfo();
OutputLine("IDE Started. Version {}.", mVersionInfo.FileVersion);
GetVersionInfo(var exeDate);
let localExeDate = exeDate.ToLocalTime();
String exeDateStr = scope .();
localExeDate.ToShortDateString(exeDateStr);
exeDateStr.Append(" at ");
localExeDate.ToShortTimeString(exeDateStr);
OutputLine("IDE Started. Version {} built {}.", mVersionInfo.FileVersion, exeDateStr);
/*if (!mRunningTestScript)
{