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
c9833343
Commit
c9833343
authored
Oct 27, 2004
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/modules:
+ Support for CACHEDIR.TAG (see
http://www.brynosaurus.com/cachedir/
).
parent
130e15be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
src/misc/modules.c
src/misc/modules.c
+17
-3
No files found.
src/misc/modules.c
View file @
c9833343
...
...
@@ -1828,6 +1828,11 @@ int CacheLoadConfig( module_t *p_module, FILE *file )
*****************************************************************************/
static
void
CacheSave
(
vlc_object_t
*
p_this
)
{
static
char
const
psz_tag
[]
=
"Signature: 8a477f597d28d172789f06886806bc55
\r\n
"
"# This file is a cache directory tag created by VLC.
\r\n
"
"# For information about cache directory tags, see:
\r\n
"
"# http://www.brynosaurus.com/cachedir/
\r\n
"
;
char
*
psz_filename
,
*
psz_homedir
;
FILE
*
file
;
int
i
,
j
,
i_cache
;
...
...
@@ -1850,7 +1855,7 @@ static void CacheSave( vlc_object_t *p_this )
return
;
}
sprintf
(
psz_filename
,
"%s/
"
CONFIG_DIR
,
psz_homedir
);
sprintf
(
psz_filename
,
"%s/
%s"
,
psz_homedir
,
CONFIG_DIR
);
config_CreateDir
(
p_this
,
psz_filename
);
...
...
@@ -1858,8 +1863,17 @@ static void CacheSave( vlc_object_t *p_this )
config_CreateDir
(
p_this
,
psz_filename
);
strcat
(
psz_filename
,
"/"
);
strcat
(
psz_filename
,
CacheName
()
);
strcat
(
psz_filename
,
"/CACHEDIR.TAG"
);
file
=
fopen
(
psz_filename
,
"wb"
);
if
(
file
)
{
fwrite
(
psz_tag
,
1
,
strlen
(
psz_tag
),
file
);
fclose
(
file
);
}
sprintf
(
psz_filename
,
"%s/%s/%s/%s"
,
psz_homedir
,
CONFIG_DIR
,
PLUGINSCACHE_DIR
,
CacheName
()
);
msg_Dbg
(
p_this
,
"saving plugins cache file %s"
,
psz_filename
);
...
...
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