mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DolphinNoGUI: Add a FBDev platform
And the associated GLContext bits
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user