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:
parent
49122ae6aa
commit
fb7745af85
1 changed files with 13 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue