aboutsummaryrefslogtreecommitdiff
path: root/src/qt_common/qt_common.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2025-10-22 04:53:40 +0200
committercrueter <crueter@eden-emu.dev>2025-10-22 04:53:40 +0200
commit87cacbeed49facf18355c55cc93d0a2a0142be09 (patch)
tree320ab5933dd97b5f54f5fcc2cb4ed775587c9cbf /src/qt_common/qt_common.cpp
parent992bae4e2a14ca2547c09637b7dc6fc5f73b353a (diff)
[compat] HaikuOS port (#2805)
Still had the issues with libusb, but that should get solved with the other PRs anyways Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2805 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/qt_common/qt_common.cpp')
-rw-r--r--src/qt_common/qt_common.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt_common/qt_common.cpp b/src/qt_common/qt_common.cpp
index 6be241c740..1fa3df98cf 100644
--- a/src/qt_common/qt_common.cpp
+++ b/src/qt_common/qt_common.cpp
@@ -33,8 +33,7 @@ std::unique_ptr<Core::System> system = nullptr;
std::shared_ptr<FileSys::RealVfsFilesystem> vfs = nullptr;
std::unique_ptr<FileSys::ManualContentProvider> provider = nullptr;
-Core::Frontend::WindowSystemType GetWindowSystemType()
-{
+Core::Frontend::WindowSystemType GetWindowSystemType() {
// Determine WSI type based on Qt platform.
QString platform_name = QGuiApplication::platformName();
if (platform_name == QStringLiteral("windows"))
@@ -49,6 +48,8 @@ Core::Frontend::WindowSystemType GetWindowSystemType()
return Core::Frontend::WindowSystemType::Cocoa;
else if (platform_name == QStringLiteral("android"))
return Core::Frontend::WindowSystemType::Android;
+ else if (platform_name == QStringLiteral("haiku"))
+ return Core::Frontend::WindowSystemType::Xcb;
LOG_CRITICAL(Frontend, "Unknown Qt platform {}!", platform_name.toStdString());
return Core::Frontend::WindowSystemType::Windows;