Config::Config ()
: _num_local_encoding_threads (max (2U, boost::thread::hardware_concurrency()))
, _server_port (6192)
- , _tms_path (N_("."))
+ , _tms_path (".")
, _sound_processor (SoundProcessor::from_id (N_("dolby_cp750")))
, _default_still_length (10)
, _default_container (Ratio::from_id ("185"))
void
Config::read_old_metadata ()
{
- ifstream f (file(true).c_str ());
+ ifstream f (file(true).string().c_str ());
string line;
while (getline (f, line)) {
if (old) {
p /= ".dvdomatic";
} else {
- p /= "dcpomatic.xml";
+ p /= "dcpomatic";
+ p /= "config.xml";
}
return p;
}
{
boost::filesystem::path p;
p /= g_get_user_config_dir ();
- p /= "dvdomatic";
+ p /= "dcpomatic";
p /= "crypt";
boost::filesystem::create_directories (p);
return p;