Skip to content

Commit

Permalink
Print a fatal warning for lack of ViGEmBus
Browse files Browse the repository at this point in the history
While this is not technically fatal, it's almost certainly not what the user wants.
  • Loading branch information
cgutman committed Dec 30, 2023
1 parent 0d7811a commit 11d4723
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/windows/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 11d4723

Please sign in to comment.