mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-07-08 08:22:05 +00:00
Print version in the logs
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#endif
|
||||
#include "../external/nvapi.h"
|
||||
#include "fakenvapi.h"
|
||||
#include "../version.h"
|
||||
|
||||
#include "log.h"
|
||||
|
||||
@@ -25,6 +26,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {
|
||||
prepareLogging(spdlog::level::info);
|
||||
else
|
||||
prepareLogging(spdlog::level::off);
|
||||
spdlog::critical("fakenvapi version: {}", FAKENVAPI_VERSION);
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
closeLogging();
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
windows = import('windows')
|
||||
|
||||
rc_file = configure_file(
|
||||
input: 'resource.rc.in',
|
||||
output: 'resource.rc',
|
||||
configuration: {
|
||||
'FILEVERSION': '1,0,0,0',
|
||||
}
|
||||
)
|
||||
|
||||
rc = windows.compile_resources(rc_file)
|
||||
|
||||
dll = shared_library(
|
||||
'nvapi'+target_suffix,
|
||||
['main.cpp', 'fakenvapi.cpp', 'util.cpp', 'log.cpp'],
|
||||
['main.cpp', 'fakenvapi.cpp', 'util.cpp', 'log.cpp', fakenvapi_version],
|
||||
rc,
|
||||
name_prefix : '',
|
||||
dependencies : [ lib_dxgi ],
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#include <windows.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION @FILEVERSION@
|
||||
FILETYPE VFT_DLL
|
||||
{
|
||||
BLOCK "StringFileInfo"
|
||||
{
|
||||
BLOCK "040904B0"
|
||||
{
|
||||
VALUE "ProductName", "fakenvapi\0"
|
||||
VALUE "FileVersion", "@FILEVERSION@\0"
|
||||
}
|
||||
}
|
||||
BLOCK "VarFileInfo"
|
||||
{
|
||||
VALUE "Translation", 0x0409, 1252
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user