Commit b531c4c2 authored by Max Kellermann's avatar Max Kellermann

OtherCommands: use Storage::MapUTF8() instead of Mapper.cxx

parent 4b010df9
...@@ -21,13 +21,13 @@ ...@@ -21,13 +21,13 @@
#include "OtherCommands.hxx" #include "OtherCommands.hxx"
#include "CommandError.hxx" #include "CommandError.hxx"
#include "db/Uri.hxx" #include "db/Uri.hxx"
#include "storage/StorageInterface.hxx"
#include "DetachedSong.hxx" #include "DetachedSong.hxx"
#include "SongPrint.hxx" #include "SongPrint.hxx"
#include "TagPrint.hxx" #include "TagPrint.hxx"
#include "TagStream.hxx" #include "TagStream.hxx"
#include "tag/TagHandler.hxx" #include "tag/TagHandler.hxx"
#include "TimePrint.hxx" #include "TimePrint.hxx"
#include "Mapper.hxx"
#include "decoder/DecoderPrint.hxx" #include "decoder/DecoderPrint.hxx"
#include "protocol/ArgParser.hxx" #include "protocol/ArgParser.hxx"
#include "protocol/Result.hxx" #include "protocol/Result.hxx"
...@@ -349,9 +349,11 @@ handle_config(Client &client, ...@@ -349,9 +349,11 @@ handle_config(Client &client,
} }
#ifdef ENABLE_DATABASE #ifdef ENABLE_DATABASE
const char *path = mapper_get_music_directory_utf8(); const Storage *storage = client.GetStorage();
if (path != nullptr) if (storage != nullptr) {
client_printf(client, "music_directory: %s\n", path); const auto path = storage->MapUTF8("");
client_printf(client, "music_directory: %s\n", path.c_str());
}
#endif #endif
return CommandResult::OK; return CommandResult::OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment