diff --git a/UE4SS/CMakeLists.txt b/UE4SS/CMakeLists.txt index 7e7356585..04015f4ab 100644 --- a/UE4SS/CMakeLists.txt +++ b/UE4SS/CMakeLists.txt @@ -36,7 +36,7 @@ if (NOT res EQUAL 0) set(UE4SS_LIB_BUILD_GITSHA "0") endif () -# Make the hard-coded build numbers available to source files +# Make the hard-coded build numbers and current configuration available to source files add_compile_definitions( UE4SS_LIB_VERSION_MAJOR=${UE4SS_LIB_VERSION_MAJOR} UE4SS_LIB_VERSION_MINOR=${UE4SS_LIB_VERSION_MINOR} @@ -46,6 +46,7 @@ add_compile_definitions( UE4SS_LIB_BETA_STARTED=$ UE4SS_LIB_IS_BETA=$ UE4SS_LIB_BUILD_GITSHA="${UE4SS_LIB_BUILD_GITSHA}" + UE4SS_CONFIGURATION="$" ) # Versioning -> END diff --git a/UE4SS/src/UE4SSProgram.cpp b/UE4SS/src/UE4SSProgram.cpp index cfcc15e8b..ac014bed6 100644 --- a/UE4SS/src/UE4SSProgram.cpp +++ b/UE4SS/src/UE4SSProgram.cpp @@ -221,12 +221,15 @@ namespace RC std::format(L"{}", UE4SS_LIB_BETA_STARTED == 0 ? L"" : (UE4SS_LIB_IS_BETA == 0 ? L" Beta #?" : std::format(L" Beta #{}", UE4SS_LIB_VERSION_BETA))), to_wstring(UE4SS_LIB_BUILD_GITSHA)); -#ifdef WITH_CASE_PRESERVING_NAME - Output::send(STR("WITH_CASE_PRESERVING_NAME: Yes\n\n")); + +#ifdef __clang__ + #define UE4SS_COMPILER L"Clang" #else - Output::send(STR("WITH_CASE_PRESERVING_NAME: No\n\n")); + #define UE4SS_COMPILER L"MSVC" #endif - + + Output::send(STR("Build Configuration: {} ({})\n"), to_wstring(UE4SS_CONFIGURATION), UE4SS_COMPILER); + m_load_library_a_hook = std::make_unique("kernel32.dll", "LoadLibraryA", std::bit_cast(&HookedLoadLibraryA),