Reload the current playlist after reboot even if it has ended. (FS#11644)
[kugel-rb.git] / firmware / export / rbpaths.h
blob74d26f93d3c87d9420904b9a7a2dc7ad09936a38
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 ROCKBOX_DIR
34 #undef ROCKBOX_DIR_LEN
35 #undef WPS_DIR
36 #define ROCKBOX_DIR "."
37 #define ROCKBOX_DIR_LEN 1
38 #else
40 /* ROCKBOX_DIR is now defined in autoconf.h for flexible build types */
41 #ifndef ROCKBOX_DIR
42 #error ROCKBOX_DIR not defined (should be in autoconf.h)
43 #endif
44 #define ROCKBOX_DIR_LEN (sizeof(ROCKBOX_DIR)-1)
45 #endif /* def __PCTOOL__ */
47 #ifndef APPLICATION
49 /* make sure both are the same for native builds */
50 #undef ROCKBOX_LIBRARY_PATH
51 #define ROCKBOX_LIBRARY_PATH ROCKBOX_DIR
53 #define PLUGIN_DIR ROCKBOX_DIR "/rocks"
54 #define CODECS_DIR ROCKBOX_DIR "/codecs"
56 #define REC_BASE_DIR "/"
57 #define PLAYLIST_CATALOG_DEFAULT_DIR "/Playlists"
59 #define paths_init()
60 #else /* application */
62 #define PLUGIN_DIR ROCKBOX_LIBRARY_PATH "/rockbox/rocks"
63 #if (CONFIG_PLATFORM & PLATFORM_ANDROID)
64 #define CODECS_DIR ROCKBOX_BINARY_PATH
65 #else
66 #define CODECS_DIR ROCKBOX_LIBRARY_PATH "/rockbox/codecs"
67 #endif
69 #define REC_BASE_DIR ROCKBOX_DIR "/"
70 #define PLAYLIST_CATALOG_DEFAULT_DIR ROCKBOX_DIR "/Playlists"
72 extern void paths_init(void);
74 #endif /* APPLICATION */
76 #define LANG_DIR ROCKBOX_DIR "/langs"
78 #define PLUGIN_GAMES_DIR PLUGIN_DIR "/games"
79 #define PLUGIN_APPS_DIR PLUGIN_DIR "/apps"
80 #define PLUGIN_DEMOS_DIR PLUGIN_DIR "/demos"
81 #define VIEWERS_DIR PLUGIN_DIR "/viewers"
83 #ifdef APPLICATION
84 #define PLUGIN_DATA_DIR "/.rockbox/rocks.data"
85 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DATA_DIR
86 #define PLUGIN_APPS_DATA_DIR PLUGIN_DATA_DIR
87 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DATA_DIR
88 #define VIEWERS_DATA_DIR PLUGIN_DATA_DIR
89 #else
90 #define PLUGIN_DATA_DIR PLUGIN_DIR
91 #define PLUGIN_GAMES_DATA_DIR PLUGIN_DIR "/games"
92 #define PLUGIN_APPS_DATA_DIR PLUGIN_DIR "/apps"
93 #define PLUGIN_DEMOS_DATA_DIR PLUGIN_DIR "/demos"
94 #define VIEWERS_DATA_DIR PLUGIN_DIR "/viewers"
95 #endif
97 #define WPS_DIR ROCKBOX_DIR "/wps"
98 #define SBS_DIR WPS_DIR
99 #define THEME_DIR ROCKBOX_DIR "/themes"
100 #define FONT_DIR ROCKBOX_DIR "/fonts"
101 #define ICON_DIR ROCKBOX_DIR "/icons"
103 #define BACKDROP_DIR ROCKBOX_DIR "/backdrops"
104 #define EQS_DIR ROCKBOX_DIR "/eqs"
106 /* need to fix this once the application gets record/radio abilities */
107 #define RECPRESETS_DIR ROCKBOX_DIR "/recpresets"
108 #define FMPRESET_PATH ROCKBOX_DIR "/fmpresets"
110 #define DIRCACHE_FILE ROCKBOX_DIR "/dircache.dat"
111 #define CODEPAGE_DIR ROCKBOX_DIR "/codepages"
113 #define VIEWERS_CONFIG ROCKBOX_DIR "/viewers.config"
114 #define CONFIGFILE ROCKBOX_DIR "/config.cfg"
115 #define FIXEDSETTINGSFILE ROCKBOX_DIR "/fixed.cfg"
117 #define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control"
118 #define NVRAM_FILE ROCKBOX_DIR "/nvram.bin"
119 #define GLYPH_CACHE_FILE ROCKBOX_DIR "/.glyphcache"
120 #endif /* __PATHS_H__ */