freebsd-ports/games/openmw/files/patch-apps_openmw_mwinput_inputmanagerimp.cpp
Tobias Kortkamp dda47e88e1 games/openmw: Update to 0.45.0
- Pet portlint and clean up port a bit while here

Changes:	https://github.com/OpenMW/openmw/releases/tag/openmw-0.45.0
2019-03-22 11:56:26 +00:00

18 lines
806 B
C++

--- apps/openmw/mwinput/inputmanagerimp.cpp.orig 2019-03-10 10:50:29 UTC
+++ apps/openmw/mwinput/inputmanagerimp.cpp
@@ -121,11 +121,12 @@ namespace MWInput
SDL_ControllerDeviceEvent evt;
evt.which = i;
controllerAdded(mFakeDeviceID, evt);
- Log(Debug::Info) << "Detected game controller: " << SDL_GameControllerNameForIndex(i);
+ //Bug in FreeBSD's SDL? SDL_GameControllerNameForIndex returns NULL
+ Log(Debug::Info) << "Detected game controller: " << i;
}
else
{
- Log(Debug::Info) << "Detected unusable controller: " << SDL_JoystickNameForIndex(i);
+ Log(Debug::Info) << "Detected unusable controller: " << i;
}
}