[vlc-commits] VLSub: Use a more robust OS detection
Hugo Beauzée-Luyssen
git at videolan.org
Tue Apr 17 14:02:18 CEST 2018
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Apr 16 13:40:43 2018 +0200| [5286bb9d21a6b8131f0034cbd68ab5cdad9f4c9e] | committer: Hugo Beauzée-Luyssen
VLSub: Use a more robust OS detection
(cherry picked from commit a46c030bda7e1f0467366061adba9548ff230ef8)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5286bb9d21a6b8131f0034cbd68ab5cdad9f4c9e
---
share/lua/extensions/VLSub.lua | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 69ac3ead49..79567d0153 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -654,12 +654,11 @@ function check_config()
trsl_names[lg[1]] = lg[2]
end
- if is_window_path(vlc.config.datadir()) then
+ slash = package.config:sub(1,1)
+ if slash == "\\" then
openSub.conf.os = "win"
- slash = "\\"
else
openSub.conf.os = "lin"
- slash = "/"
end
local filePath = slash.."vlsub_conf.xml"
More information about the vlc-commits
mailing list