Make it easy to build Cemu on BSD (#1632)

This commit is contained in:
Kevin Reinholz 2025-07-22 23:59:09 -07:00 committed by GitHub
parent 955ce9b973
commit 4efa40c51c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 167 additions and 57 deletions

View file

@ -51,11 +51,11 @@
#define exit(__c) _Exit(__c)
#endif
#if BOOST_OS_LINUX || BOOST_OS_MACOS
#if BOOST_OS_LINUX || BOOST_OS_MACOS || BOOST_OS_BSD
#include "resource/embedded/resources.h"
#endif
#if BOOST_OS_LINUX && HAS_WAYLAND
#if ( BOOST_OS_LINUX || BOOST_OS_BSD ) && HAS_WAYLAND
#include "wxgui/helpers/wxWayland.h"
#endif
@ -710,7 +710,7 @@ void MainWindow::OnInstallUpdate(wxCommandEvent& event)
break;
if (modalChoice == wxID_OK)
{
#if BOOST_OS_LINUX || BOOST_OS_MACOS
#if BOOST_OS_LINUX || BOOST_OS_MACOS || BOOST_OS_BSD
fs::path dirPath((const char*)(openDirDialog.GetPath().fn_str()));
#else
fs::path dirPath(openDirDialog.GetPath().fn_str());
@ -812,7 +812,7 @@ void MainWindow::TogglePadView()
m_padView->Show(true);
#if BOOST_OS_LINUX && HAS_WAYLAND
#if ( BOOST_OS_LINUX || BOOST_OS_BSD ) && HAS_WAYLAND
if (wxWlIsWaylandWindow(m_padView))
wxWlSetAppId(m_padView, "info.cemu.Cemu");
#endif
@ -2320,6 +2320,8 @@ void MainWindow::RecreateMenu()
if (!std::getenv("APPIMAGE")) {
m_check_update_menu->Enable(false);
}
#elif BOOST_OS_BSD // BSD users must update from source so disable update checks
m_check_update_menu->Enable(false);
#endif
helpMenu->AppendSeparator();
helpMenu->Append(MAINFRAME_MENU_ID_HELP_ABOUT, _("&About Cemu"));