mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-12-12 10:37:02 +00:00
Make it easy to build Cemu on BSD (#1632)
This commit is contained in:
parent
955ce9b973
commit
4efa40c51c
41 changed files with 167 additions and 57 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue