vlc | branch: master | Hugo Beauzée-Luyssen <h...@beauzee.fr> | Mon Apr 16 
13:40:43 2018 +0200| [a46c030bda7e1f0467366061adba9548ff230ef8] | committer: 
Hugo Beauzée-Luyssen

VLSub: Use a more robust OS detection

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a46c030bda7e1f0467366061adba9548ff230ef8
---

 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"

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to