-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Add commit hash and build date to window title
time
- Loading branch information
Showing
5 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo off | ||
FOR /F "tokens=*" %%g IN ('git rev-parse HEAD') DO (SET UEVR_COMMIT_HASH=%%g) | ||
|
||
FOR /F "tokens=2 delims==" %%a IN ('wmic OS get localdatetime /value') DO ( | ||
SET datetime=%%a | ||
) | ||
|
||
SET year=%datetime:~0,4% | ||
SET month=%datetime:~4,2% | ||
SET day=%datetime:~6,2% | ||
SET hour=%datetime:~8,2% | ||
SET minute=%datetime:~10,2% | ||
|
||
echo #pragma once > src/CommitHash.hpp | ||
echo #define UEVR_COMMIT_HASH "%UEVR_COMMIT_HASH%" >> src/CommitHash.hpp | ||
echo #define UEVR_BUILD_DATE "%day%.%month%.%year%" >> src/CommitHash.hpp | ||
echo #define UEVR_BUILD_TIME "%hour%:%minute%" >> src/CommitHash.hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#pragma once | ||
#define UEVR_COMMIT_HASH "d921a7f616a228e549a0f6826266dcd88a5066f9" | ||
#define UEVR_BUILD_DATE "31.01.2024" | ||
#define UEVR_BUILD_TIME "00:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters