From 0a75e71672ed63d6d92ba42c1a183e72090d7c83 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 10 Apr 2019 14:44:21 +0000 Subject: DolphinNoGUI: Add a FBDev platform And the associated GLContext bits --- Source/Core/DolphinNoGUI/MainNoGUI.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp') diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp index 711583f736..1736c52edd 100644 --- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp +++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp @@ -121,6 +121,11 @@ static std::unique_ptr GetPlatform(const optparse::Values& options) return Platform::CreateX11Platform(); #endif +#ifdef __linux__ + if (platform_name == "fbdev" || platform_name.empty()) + return Platform::CreateFBDevPlatform(); +#endif + if (platform_name == "headless" || platform_name.empty()) return Platform::CreateHeadlessPlatform(); @@ -135,6 +140,10 @@ int main(int argc, char* argv[]) .help("Window platform to use [%choices]") .choices({ "headless" +#ifdef __linux__ + , + "fbdev" +#endif #if HAVE_X11 , "x11" -- cgit v1.2.3