Update bulgarian.lang by Zahari Yurukov
[maemo-rb.git] / firmware / export / rbpaths.h
blobd50f66d72de0096031d42c10f5dd82b3ee8eb1ff
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2010 Thomas Martitz
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __PATHS_H__
23 #define __PATHS_H__
25 #include <stdbool.h>
26 #include "autoconf.h"
27 #include "string-extra.h"
30 /* name of directory where configuration, fonts and other data
31 * files are stored */
32 #ifdef __PCTOOL__
33 #undef WPS_DIR
34 #else
36 /* ROCKBOX_DIR is now defined in autoconf.h for flexible build types */
37 #ifndef ROCKBOX_DIR
38 #error ROCKBOX_DIR not defined (should be in autoconf.h)
39 #endif
40 #define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1)
41 #endif /* def __PCTOOL__ */
43 #if !defined(APPLICATION) || defined(SAMSUNG_YPR0)
45 #ifdef SAMSUNG_YPR0
46 #define HOME_DIR "/mnt/media0"
47 #else
48 #define HOME_DIR "/"
49 #endif
51 /* make sure both are the same for native builds */
52 #undef ROCKBOX_LIBRARY_PATH
53 #define ROCKBOX_LIBRARY_PATH ROCKBOX_DIR
55 #define PLUGIN_DIR ROCKBOX_DIR "/rocks"
56 #define CODECS_DIR ROCKBOX_DIR "/codecs"
58 #define paths_init()
60 #else /* APPLICATION */
62 #define HOME_DIR "<HOME>" /* replaced at runtime */
63 #define HOME_DIR_LEN (sizeof(HOME_DIR)-1)
65 #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
66 #if (CONFIG_PLATFORM & PLATFORM_ANDROID)
67 #define CODECS_DIR ROCKBOX_BINARY_PATH
68 #else
69 #define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
70 #endif
72 extern void paths_init(void);
74 #endif /* !APPLICATION || SAMSUNG_YPR0 */
76 #define REC_BASE_DIR HOME_DIR
77 #define PLAYLIST_CATALOG_DEFAULT_DIR HOME_DIR "/Playlists"
79 #define LANG_DIR ROCKBOX_DIR "/langs"
81 #define PLUGIN_GAMES_DIR PLUGIN_DIR "/games"
82 #define PLUGIN_APPS_DIR PLUGIN_DIR "/apps"
83 #define PLUGIN_DEMOS_DIR PLUGIN_DIR "/demos"
84 #define VIEWERS_DIR PLUGIN_DIR "/viewers"
86 #if defined(APPLICATION) && !defined(SAMSUNG_YPR0)
87 #define PLUGIN_DATA_DIR ROCKBOX_DIR "/rocks.data"
88 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DATA_DIR
89 #define PLUGIN_APPS_DATA_DIR PLUGIN_DATA_DIR
90 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DATA_DIR
91 #define VIEWERS_DATA_DIR PLUGIN_DATA_DIR
92 #else
93 #define PLUGIN_DATA_DIR PLUGIN_DIR
94 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DIR "/games"
95 #define PLUGIN_APPS_DATA_DIR PLUGIN_DIR "/apps"
96 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DIR "/demos"
97 #define VIEWERS_DATA_DIR PLUGIN_DIR "/viewers"
98 #endif
100 #define WPS_DIR ROCKBOX_DIR "/wps"
101 #define SBS_DIR WPS_DIR
102 #define THEME_DIR ROCKBOX_DIR "/themes"
103 #define FONT_DIR ROCKBOX_DIR "/fonts"
104 #define ICON_DIR ROCKBOX_DIR "/icons"
106 #define BACKDROP_DIR ROCKBOX_DIR "/backdrops"
107 #define EQS_DIR ROCKBOX_DIR "/eqs"
109 /* need to fix this once the application gets record/radio abilities */
110 #define RECPRESETS_DIR ROCKBOX_DIR "/recpresets"
111 #define FMPRESET_PATH ROCKBOX_DIR "/fmpresets"
113 #define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat"
114 #define CODEPAGE_DIR ROCKBOX_DIR "/codepages"
116 #define VIEWERS_CONFIG ROCKBOX_DIR "/viewers.config"
117 #define CONFIGFILE ROCKBOX_DIR "/config.cfg"
118 #define FIXEDSETTINGSFILE ROCKBOX_DIR "/fixed.cfg"
120 #define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control"
121 #define NVRAM_FILE ROCKBOX_DIR "/nvram.bin"
122 #define GLYPH_CACHE_FILE ROCKBOX_DIR "/.glyphcache"
123 #endif /* __PATHS_H__ */