From 11d472362cb1f5896c8a2d3de4b2184a2f0a37ad Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 29 Dec 2023 21:21:06 -0600 Subject: [PATCH] Print a fatal warning for lack of ViGEmBus While this is not technically fatal, it's almost certainly not what the user wants. --- src/platform/windows/input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/windows/input.cpp b/src/platform/windows/input.cpp index 29dd758a..ab4d7262 100644 --- a/src/platform/windows/input.cpp +++ b/src/platform/windows/input.cpp @@ -200,6 +200,8 @@ namespace platf { if (!VIGEM_SUCCESS(status)) { BOOST_LOG(warning) << "Couldn't setup connection to ViGEm for gamepad support ["sv << util::hex(status).to_string_view() << ']'; + // Log a special fatal message for this case to show the error in the web UI + BOOST_LOG(fatal) << "ViGEmBus is not installed or running. You must install ViGEmBus for gamepad support!"sv; return -1; }