aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-05-05 08:09:51 +0800
committerjbeich <jbeich@FreeBSD.org>2015-05-05 08:09:51 +0800
commit1e5f4badb97aae6ad445298526e5d54978e14b12 (patch)
tree734d8be9bfcd2a38bedcbb70354ada5a708c5bfb /games
parent41fbccabcfe74ca3c22f6dbcfb5daa79687998b3 (diff)
downloadfreebsd-ports-gnome-1e5f4badb97aae6ad445298526e5d54978e14b12.tar.gz
freebsd-ports-gnome-1e5f4badb97aae6ad445298526e5d54978e14b12.tar.zst
freebsd-ports-gnome-1e5f4badb97aae6ad445298526e5d54978e14b12.zip
games/wxlauncher: unbreak build when WX3=on JOYSTICK=off
wxgtk30 enables debug logging by default. This led to breakage because the calls within wxLogDebug() are no longer eliminated. PR: 199919 Submitted by: lightside <lightside@gmx.com> (maintainer)
Diffstat (limited to 'games')
-rw-r--r--games/wxlauncher/files/patch-code_apis_JoystickManager.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/wxlauncher/files/patch-code_apis_JoystickManager.cpp b/games/wxlauncher/files/patch-code_apis_JoystickManager.cpp
new file mode 100644
index 000000000000..c10088726827
--- /dev/null
+++ b/games/wxlauncher/files/patch-code_apis_JoystickManager.cpp
@@ -0,0 +1,13 @@
+--- code/apis/JoystickManager.cpp.orig 2015-04-11 22:15:55 UTC
++++ code/apis/JoystickManager.cpp
+@@ -65,8 +65,10 @@ bool JoyMan::IsInitialized() {
+ */
+ bool JoyMan::Initialize() {
+ if ( JoyMan::IsInitialized() ) {
++#if USE_JOYSTICK
+ wxLogDebug(_T("JoyMan already initialized with %d joysticks"),
+ joysticks.Count());
++#endif
+ return true;
+ }
+