From c4d951443b8fa70c5df9cbad988e29f1083d175b Mon Sep 17 00:00:00 2001 From: Robert Beckebans Date: Tue, 21 May 2024 21:05:52 +0200 Subject: [PATCH] Automatically sign in master user if compiled without DOOM_CLASSIC. close #892 --- neo/sys/DeviceManager_VK.cpp | 6 +++--- neo/sys/sys_session_local.cpp | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/neo/sys/DeviceManager_VK.cpp b/neo/sys/DeviceManager_VK.cpp index 86599b71..a43fd4b0 100644 --- a/neo/sys/DeviceManager_VK.cpp +++ b/neo/sys/DeviceManager_VK.cpp @@ -1258,11 +1258,11 @@ bool DeviceManager_VK::CreateDeviceAndSwapChain() // 0x609a13b: vertex shader writes to output location X.0 which is not consumed by fragment shader... // 0x609a13b: Vertex attribute at location X not consumed by vertex shader. // 0x609a13b: fragment shader writes to output location X with no matching attachment. - #ifdef _WIN32 +#ifdef _WIN32 SetEnvironmentVariable( "VK_LAYER_MESSAGE_ID_FILTER", "0xc81ad50e;0x9805298c;0x609a13b" ); - #else +#else setenv( "VK_LAYER_MESSAGE_ID_FILTER", "0xc81ad50e:0x9805298c:0x609a13b", 1 ); - #endif +#endif } // SRS - make static so ~DynamicLoader() does not prematurely unload vulkan dynamic lib diff --git a/neo/sys/sys_session_local.cpp b/neo/sys/sys_session_local.cpp index 3e7433bc..e9addce0 100644 --- a/neo/sys/sys_session_local.cpp +++ b/neo/sys/sys_session_local.cpp @@ -2676,6 +2676,9 @@ void idSessionLocal::UpdateSignInManager() #if defined( USE_DOOMCLASSIC ) // If we don't have a master user at all, then we need to be at "Press Start" MoveToPressStart( GDM_SP_SIGNIN_CHANGE_POST ); +#else + // RB: automatically sign in the first user. This enumerates the savegames #892 + session->GetSignInManager().RegisterLocalUser( 0 ); #endif return; }