Set cwd to appdir, so relative logfiles work.

This commit is contained in:
Ron Pedde 2006-06-06 04:04:57 +00:00
parent 9e648abd61
commit b925279bb2

View File

@ -32,6 +32,7 @@ Application::Application()
: m_dlg(NULL), m_server_events(&m_icon)
{
CDosPath path = CDosPath::AppPath();
SetCurrentDirectory(path.GetPath());
CDosPath filename(_T("mt-daapd.conf"));
filename |= path;
m_config_path = filename.GetPath();