Skip to content

Instantly share code, notes, and snippets.

View punesemu's full-sized avatar

Fabio Cavallo (FHorse) punesemu

  • Italia
  • 00:05 (UTC +02:00)
View GitHub Profile
Subject: [PATCH] Open menubar with mouse.
---
Index: src/gui/mainWindow.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp
--- a/src/gui/mainWindow.cpp (revision 3f64b8d390a8b272db4808499e5f5981ae7b0f9f)
+++ b/src/gui/mainWindow.cpp (date 1700262731114)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c981f90..4b1f9e4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -72,4 +72,9 @@
endif()
+if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
+ find_package(Sndio REQUIRED)
+ find_package(UsbHid REQUIRED)
diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp
index e18e2b3..1d0840e 100644
--- a/src/gui/mainWindow.cpp
+++ b/src/gui/mainWindow.cpp
@@ -175,5 +175,5 @@
connect(shcjoy.timer, SIGNAL(timeout()), this, SLOT(s_shcjoy_read_timer()));
- connect(qApp, SIGNAL(receivedMessage(quint32, QByteArray)), this, SLOT(s_received_message(quint32, QByteArray)));
+ connect(qApp, SIGNAL(receivedMessage(quint32, QByteArray)), this, SLOT(s_received_message(quint32, QByteArray)));
diff --git a/configure.ac b/configure.ac
index 6550ae9..9a886a8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,15 +94,30 @@
my_CPPFLAGS="${my_CPPFLAGS} -I${TOP_SRCDIR}/src/gui/linux -I${TOP_SRCDIR}/src/video/opengl"
linux=yes
- openbsd=no
+ bsd=no
windows=no
@punesemu
punesemu / punes_no_threads.patch
Last active June 2, 2019 13:38
tests to study the issue #78
diff --git a/src/core/emu_thread.c b/src/core/emu_thread.c
index 680a082..14e4f2b 100644
--- a/src/core/emu_thread.c
+++ b/src/core/emu_thread.c
@@ -54,4 +54,10 @@
memset(&emu_thread, 0x00, sizeof(emu_thread));
+
+
+ return (EXIT_OK);