Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9e8755ae
Commit
9e8755ae
authored
Jun 25, 2009
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: Change the caching directories of VLC Mac OS X to Library/Caches/VLC
parent
fffd3cd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/config/configuration.h
src/config/configuration.h
+3
-0
src/config/dirs.c
src/config/dirs.c
+11
-0
No files found.
src/config/configuration.h
View file @
9e8755ae
...
...
@@ -59,6 +59,7 @@ int ConfigStringToKey( const char * );
# define CONFIG_DIR "config/settings/VideoLAN Client"
#elif defined (__APPLE__)
# define CONFIG_DIR "Library/Preferences/VLC"
# define CACHES_DIR "Library/Caches/VLC"
#elif defined( WIN32 ) || defined( UNDER_CE )
# define CONFIG_DIR "vlc"
#else
...
...
@@ -66,6 +67,8 @@ int ConfigStringToKey( const char * );
#endif
#define CONFIG_FILE "vlcrc"
# ifdef __cplusplus
}
# endif
...
...
src/config/dirs.c
View file @
9e8755ae
...
...
@@ -54,6 +54,7 @@
# define DIR_SHARE "share"
#endif
/**
* config_GetDataDir: find directory where shared data is installed
*
...
...
@@ -232,5 +233,15 @@ char *config_GetUserDataDir( void )
*/
char
*
config_GetCacheDir
(
void
)
{
#if defined(__APPLE__)
char
*
psz_dir
;
const
char
*
psz_parent
=
GetDir
(
true
,
false
);
if
(
asprintf
(
&
psz_dir
,
"%s"
DIR_SEP
CACHES_DIR
,
psz_parent
)
==
-
1
)
psz_dir
=
NULL
;
return
psz_dir
;
#else
return
config_GetFooDir
(
"CACHE"
,
".cache"
);
#endif
}
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