Changeset b4c313573076f43fb5c8e8bf0b104d4615441028
- Timestamp:
- 10/02/08 13:31:27
(8 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1202646687 +0000
- git-parent:
[49bcf08a4e65e9704566586f04a96d8b24972a1b]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1202646687 +0000
- Message:
Use config_GetDataDir() instead of DATA_PATH.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2bd0742 |
rb4c3135 |
|
| 264 | 264 | if( ( psz_src == NULL ) || ( *psz_src == '\0' ) ) |
|---|
| 265 | 265 | { |
|---|
| 266 | | static char const* ppsz_paths[] = { |
|---|
| | 266 | const char *data_path = config_GetDataDir (); |
|---|
| | 267 | char buf[strlen (data_path) + sizeof ("/http")]; |
|---|
| | 268 | snprintf (buf, sizeof (buf), "%s/http", data_path); |
|---|
| | 269 | |
|---|
| | 270 | const char const* ppsz_paths[] = { |
|---|
| 267 | 271 | "share/http", |
|---|
| 268 | 272 | "../share/http", |
|---|
| 269 | | DATA_PATH"/http", |
|---|
| | 273 | buf, |
|---|
| 270 | 274 | NULL |
|---|
| 271 | 275 | }; |
|---|
| r16f32e1 |
rb4c3135 |
|
| 75 | 75 | + "/skins2" ); |
|---|
| 76 | 76 | m_resourcePath.push_back( (string)"share/skins2" ); |
|---|
| 77 | | m_resourcePath.push_back( (string)DATA_PATH + "/skins2" ); |
|---|
| | 77 | m_resourcePath.push_back( (string)config_GetDataDir () + "/skins2" ); |
|---|
| 78 | 78 | |
|---|
| 79 | 79 | return true; |
|---|
| r99fab90 |
rb4c3135 |
|
| 433 | 433 | { |
|---|
| 434 | 434 | free(ppsz_dir_list[1]); |
|---|
| 435 | | if( asprintf( &ppsz_dir_list[1], |
|---|
| 436 | | DATA_PATH DIR_SEP "%s", luadirname ) < 0 ) |
|---|
| | 435 | if( asprintf( &ppsz_dir_list[1], "%s" DIR_SEP "%s", |
|---|
| | 436 | config_GetDataDir (), luadirname ) < 0 ) |
|---|
| 437 | 437 | return VLC_ENOMEM; |
|---|
| 438 | 438 | } |
|---|
| r94a6747 |
rb4c3135 |
|
| 220 | 220 | } |
|---|
| 221 | 221 | else /* else we show state-of-the art logo */ |
|---|
| 222 | | pix = gdk_pixbuf_new_from_file( DATA_PATH "/vlc48x48.png", &p_error ); |
|---|
| | 222 | { |
|---|
| | 223 | const char *data_path = config_GetDataDir (); |
|---|
| | 224 | char buf[strlen (data_path) + sizeof ("/vlc48x48.png")]; |
|---|
| | 225 | |
|---|
| | 226 | snprintf (buf, sizeof (buf), "%s/vlc48x48.png", data_path); |
|---|
| | 227 | pix = gdk_pixbuf_new_from_file( buf, &p_error ); |
|---|
| | 228 | } |
|---|
| 223 | 229 | |
|---|
| 224 | 230 | /* we need to replace '&' with '&' because '&' is a keyword of |
|---|