summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-11-08 11:05:53 +1000
committerGitHub <noreply@github.com>2019-11-08 11:05:53 +1000
commita89fdb628c349ae112d6b9749b9ba7fba1e46b04 (patch)
treec5a9dd2a524bf5f31d046d6668933172984160fa /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent2ebea1bfa7e6436d0379ab25951b31e28e296763 (diff)
parent0a75e71672ed63d6d92ba42c1a183e72090d7c83 (diff)
Merge pull request #8343 from stenzek/fbdev
DolphinNoGUI: Add a FBDev platform
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp9
1 files changed, 9 insertions, 0 deletions
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<Platform> 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"