]> git.sesse.net Git - vlc/commitdiff
Lua path for windows modification.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Apr 2008 05:22:06 +0000 (22:22 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 6 Apr 2008 05:22:06 +0000 (22:22 -0700)
modules/misc/lua/vlc.c

index 624a3e904f027294cd222e5b3a6974163992808a..ce4054e31fe7d63dfd89013dc86d952e0108b366 100644 (file)
@@ -418,11 +418,18 @@ int vlclua_dir_list( vlc_object_t *p_this, const char *luadirname,
                       psz_vlcpath, luadirname )  < 0 )
             return VLC_ENOMEM;
         i++;
-
-        if( asprintf( &ppsz_dir_list[i], "%s" DIR_SEP "share" DIR_SEP "lua" DIR_SEP "%s",
+#       ifdef WIN32
+        if( asprintf( &ppsz_dir_list[i], "%s" DIR_SEP "scripts" DIR_SEP "%s",
                       psz_vlcpath, luadirname )  < 0 )
             return VLC_ENOMEM;
         i++;
+#       else
+         if( asprintf( &ppsz_dir_list[i], "%s" DIR_SEP "share" DIR_SEP "lua" DIR_SEP "%s",
+                      psz_vlcpath, luadirname )  < 0 )
+            return VLC_ENOMEM;
+        i++;
+#       endif
+
     }
 #   else
     if( asprintf( &ppsz_dir_list[i],