Print a fatal warning for lack of ViGEmBus

While this is not technically fatal, it's almost certainly not what the user wants.
This commit is contained in:
Cameron Gutman 2023-12-29 21:21:06 -06:00
parent 0d7811ad43
commit 11d472362c

View File

@ -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;
}