Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
0bcf3954
Commit
0bcf3954
authored
Mar 07, 2010
by
Geoffroy Couprie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: fix the path to the plugins cache
parent
7de52220
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
38 deletions
+3
-38
extras/package/win32/vlc.win32.nsi.in
extras/package/win32/vlc.win32.nsi.in
+2
-14
src/modules/modules.c
src/modules/modules.c
+1
-24
No files found.
extras/package/win32/vlc.win32.nsi.in
View file @
0bcf3954
...
...
@@ -326,21 +326,9 @@ FunctionEnd
!macroend
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 3. Delete prefs
and cache
;
; 3. Delete prefs
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Function ExecCacheGen
ExecWait "$INSTDIR\vlc-cache-gen.exe $APPDATA\VideoLAN\VLC"
FunctionEnd
!macro gencache
SetShellVarContext all
CreateDirectory "$APPDATA\VideoLAN"
CreateDirectory "$APPDATA\VideoLAN\VLC"
!insertmacro UAC.CallFunctionAsUser ExecCacheGen
SetShellVarContext current
!macroend
!macro delprefs
StrCpy $0 0
!define Index 'Line${__LINE__}'
...
...
@@ -459,7 +447,7 @@ Section $Name_Section01 SEC01
@BUILD_SKINS_TRUE@ !insertmacro InstallFolder skins
@BUILD_HTTPD_TRUE@ !insertmacro InstallFolder http
@BUILD_LUA_TRUE@ !insertmacro InstallFolder lua
!insertmacro gencache
ExecWait "$INSTDIR\vlc-cache-gen.exe $INSTDIR\plugins"
; URLs
...
...
src/modules/modules.c
View file @
0bcf3954
...
...
@@ -821,19 +821,9 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
/* Contruct the special search path for system that have a relocatable
* executable. Set it to <vlc path>/plugins. */
assert
(
vlcpath
);
#ifndef WIN32
if
(
asprintf
(
&
path
,
"%s"
DIR_SEP
"plugins"
,
vlcpath
)
!=
-
1
)
vlc_array_append
(
arraypaths
,
path
);
#else
/* Store the plugins cache in the common AppData folder */
char
commonpath
[
PATH_MAX
]
=
""
;
int
res
=
snprintf
(
commonpath
,
PATH_MAX
-
1
,
"%s
\\
VideoLAN
\\
VLC"
,
config_GetConfDir
());
if
(
res
==
-
1
||
res
>=
PATH_MAX
)
{
vlc_array_destroy
(
arraypaths
);
return
;
}
#endif
/* If the user provided a plugin path, we add it to the list */
char
*
userpaths
=
var_InheritString
(
p_this
,
"plugin-path"
);
...
...
@@ -855,17 +845,9 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
size_t
offset
=
p_module_bank
->
i_cache
;
if
(
b_reset
)
#ifndef WIN32
CacheDelete
(
p_this
,
path
);
#else
CacheDelete
(
p_this
,
commonpath
);
#endif
else
#ifndef WIN32
CacheLoad
(
p_this
,
p_module_bank
,
path
);
#else
CacheLoad
(
p_this
,
p_module_bank
,
commonpath
);
#endif
msg_Dbg
(
p_this
,
"recursively browsing `%s'"
,
path
);
...
...
@@ -873,13 +855,8 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
AllocatePluginDir
(
p_this
,
p_bank
,
path
,
5
);
#ifndef WIN32
CacheSave
(
p_this
,
path
,
p_module_bank
->
pp_cache
+
offset
,
p_module_bank
->
i_cache
-
offset
);
#else
CacheSave
(
p_this
,
commonpath
,
p_module_bank
->
pp_cache
+
offset
,
p_module_bank
->
i_cache
-
offset
);
#endif
free
(
path
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment