aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-01 18:30:16 +0100
committerMax Kellermann <max@duempel.org>2014-03-01 18:48:20 +0100
commitc73771e3ce7a5866f5ddc70d1cc03acf6a104127 (patch)
tree5002f7a608eb8f5d23438481c890f66c242c6085 /src/Main.cxx
parent350d2bcd6e610acd328eb547120c6036ecf6c573 (diff)
downloadmpd-c73771e3ce7a5866f5ddc70d1cc03acf6a104127.tar.gz
mpd-c73771e3ce7a5866f5ddc70d1cc03acf6a104127.tar.xz
mpd-c73771e3ce7a5866f5ddc70d1cc03acf6a104127.zip
Main: load mpd.conf from /sdcard/ on Android
Hard-coded path. Will be replaced soon.
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index b26be9135..b64d68cf2 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -418,6 +418,9 @@ int mpd_main(int argc, char *argv[])
#ifdef ANDROID
(void)argc;
(void)argv;
+
+ if (!ReadConfigFile(Path::FromFS("/sdcard/mpd.conf"), error))
+ LogError(error);
#else
if (!parse_cmdline(argc, argv, &options, error)) {
LogError(error);