[Android] [PATCH 23/24] Set lua scripts path in vlc.git

Edward Wang edward.c.wang at compdigitec.com
Wed Aug 22 23:15:23 CEST 2012


---
 patches/0006-Android-Set-lua-scripts-path.patch |   28 +++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 patches/0006-Android-Set-lua-scripts-path.patch

diff --git a/patches/0006-Android-Set-lua-scripts-path.patch b/patches/0006-Android-Set-lua-scripts-path.patch
new file mode 100644
index 0000000..8ced3a1
--- /dev/null
+++ b/patches/0006-Android-Set-lua-scripts-path.patch
@@ -0,0 +1,28 @@
+From c0dced5739b64a44abe0d20da9049ad81b17a2c1 Mon Sep 17 00:00:00 2001
+From: Edward Wang <edward.c.wang at compdigitec.com>
+Date: Sat, 18 Aug 2012 17:10:53 -0400
+Subject: [PATCH] Android: Set lua scripts path
+
+---
+ modules/lua/vlc.c |    4 ++++
+ 1 files changed, 4 insertions(+), 0 deletions(-)
+
+diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
+index 0c43e07..ce52d8d 100644
+--- a/modules/lua/vlc.c
++++ b/modules/lua/vlc.c
+@@ -207,7 +207,11 @@ int vlclua_dir_list( const char *luadirname, char ***pppsz_dir_list )
+     char **ppsz_dir_list = *pppsz_dir_list;
+ 
+     int i = 0;
++#ifdef __ANDROID__
++    char *datadir = strdup( "/data/data/org.videolan.vlc/lua" );
++#else
+     char *datadir = config_GetUserDir( VLC_DATA_DIR );
++#endif
+ 
+     if( likely(datadir != NULL)
+      && likely(asprintf( &ppsz_dir_list[i], "%s"DIR_SEP"lua"DIR_SEP"%s",
+-- 
+1.7.5.4
+
-- 
1.7.5.4



More information about the Android mailing list