mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 05:01:26 -07:00
feat(config): add configuration window (#70)
This commit is contained in:
1 parent
a54f03f0cd
commit
dc52bc2fba
287 files changed
+14506
-8133
No files matched your search
@@ -18,8 +18,14 @@ function M.create(ctx)
|
||||
|
||||
local function is_macos()
|
||||
local platform = mp.get_property("platform") or ""
|
||||
if platform == "macos" or platform == "darwin" then
|
||||
return true
|
||||
if platform ~= "" then
|
||||
local normalized = platform:lower()
|
||||
if normalized == "macos" or normalized == "darwin" or normalized == "osx" then
|
||||
return true
|
||||
end
|
||||
if normalized == "windows" or normalized == "win32" or normalized == "linux" then
|
||||
return false
|
||||
end
|
||||
end
|
||||
local ostype = os.getenv("OSTYPE") or ""
|
||||
return ostype:find("darwin") ~= nil
|
||||
|
||||
Reference in new issue
Block a user