diff options
author | Max Kellermann <max@duempel.org> | 2014-03-01 18:30:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-03-01 18:48:20 +0100 |
commit | c73771e3ce7a5866f5ddc70d1cc03acf6a104127 (patch) | |
tree | 5002f7a608eb8f5d23438481c890f66c242c6085 /src | |
parent | 350d2bcd6e610acd328eb547120c6036ecf6c573 (diff) | |
download | mpd-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')
-rw-r--r-- | src/Main.cxx | 3 |
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); |