Merge pull request #12 from brain-hackers/feat-version

feat: show version
This commit is contained in:
Suguru Saito 2024-01-27 16:59:23 +09:00 committed by GitHub
commit f3b955417f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <windows.h> #include <windows.h>
#if defined(VERSION_MAJOR) && defined(VERSION_MINOR) && defined(VERSION_PATCH)
#define CONFIG_VERSION TEXT(VERSION_MAJOR) L"." TEXT(VERSION_MINOR) L"." TEXT(VERSION_PATCH)
#else
#define CONFIG_VERSION L"unspecified"
#endif
#define FSNOTIFY_POWER_OFF 1 #define FSNOTIFY_POWER_OFF 1
#define FSNOTIFY_POWER_ON 0 #define FSNOTIFY_POWER_ON 0
@ -194,6 +200,8 @@ static bool doLinux()
HANDLE hUBoot; HANDLE hUBoot;
DWORD wReadSize; DWORD wReadSize;
outputDebugMessage(L"BrainLILO: Version " CONFIG_VERSION);
iVersion.open("\\NAND\\version.txt"); iVersion.open("\\NAND\\version.txt");
while (getline(iVersion, line)) while (getline(iVersion, line))
{ {

View File

@ -27,6 +27,7 @@ DLLFLAGS=-DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \
DRVFLAGS= -DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \ DRVFLAGS= -DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \
-O2 -mcpu=arm926ej-s -D_WIN32_WCE=0x600 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \ -O2 -mcpu=arm926ej-s -D_WIN32_WCE=0x600 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
-DVERSION_MAJOR=\"$(VERSION_MAJOR)\" -DVERSION_MINOR=\"$(VERSION_MINOR)\" -DVERSION_PATCH=\"$(VERSION_PATCH)\" \
-D_FILE_OFFSET_BITS=64 -DNDEBUG -Wall -static \ -D_FILE_OFFSET_BITS=64 -DNDEBUG -Wall -static \
-Wl,--image-base,0x100000,--allow-multiple-definition \ -Wl,--image-base,0x100000,--allow-multiple-definition \
-lcoredll -shared -lcoredll -shared