summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinNoGUI/MainNoGUI.cpp
diff options
context:
space:
mode:
authorHibyehello <joshuadcox05@gmail.com>2023-02-01 18:00:12 -0600
committerHibyehello <joshuadcox05@gmail.com>2023-06-01 09:01:20 -0500
commit8324a853393a0cc96d440a30e135ed72933e587d (patch)
tree5fff8d2c265eace532e89129ed91a986ebd33f6c /Source/Core/DolphinNoGUI/MainNoGUI.cpp
parent6743ca8e098268e7a11f26d626a15a09bd342577 (diff)
Add MacOS Platform
Use MacOS Standard Fullscreen hotkey
Diffstat (limited to 'Source/Core/DolphinNoGUI/MainNoGUI.cpp')
-rw-r--r--Source/Core/DolphinNoGUI/MainNoGUI.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinNoGUI/MainNoGUI.cpp b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
index 9ba5de1e98..887181acb2 100644
--- a/Source/Core/DolphinNoGUI/MainNoGUI.cpp
+++ b/Source/Core/DolphinNoGUI/MainNoGUI.cpp
@@ -168,6 +168,10 @@ static std::unique_ptr<Platform> GetPlatform(const optparse::Values& options)
if (platform_name == "win32" || platform_name.empty())
return Platform::CreateWin32Platform();
#endif
+#ifdef __APPLE__
+ if (platform_name == "macos" || platform_name.empty())
+ return Platform::CreateMacOSPlatform();
+#endif
if (platform_name == "headless" || platform_name.empty())
return Platform::CreateHeadlessPlatform();
@@ -199,6 +203,10 @@ int main(int argc, char* argv[])
,
"win32"
#endif
+#ifdef __APPLE__
+ ,
+ "macos"
+#endif
});
optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);