[vlc-devel] commit: Lua path for windows modification. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun Apr 6 07:21:35 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Apr 5 22:22:06 2008 -0700| [7633315069456e39e1301fdbf3b64d20d5a3a1a2]
Lua path for windows modification.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7633315069456e39e1301fdbf3b64d20d5a3a1a2
---
modules/misc/lua/vlc.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/modules/misc/lua/vlc.c b/modules/misc/lua/vlc.c
index 624a3e9..ce4054e 100644
--- a/modules/misc/lua/vlc.c
+++ b/modules/misc/lua/vlc.c
@@ -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],
More information about the vlc-devel
mailing list