feat: show version

This commit is contained in:
Suguru Saito 2024-01-26 18:49:00 +09:00
parent 9e2d126e58
commit 48be6a7427
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