Changeset 9111898 in nscp for include/settings


Ignore:
Timestamp:
08/22/10 09:51:17 (3 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
57a86f3
Parents:
2a1411e
Message:

Various settings loading fixes

Location:
include/settings
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/settings/settings_ini.hpp

    r291548e r9111898  
    225225        return; 
    226226      } 
    227       SI_Error rc = ini.LoadFile(get_file_name().string().c_str()); 
     227      std::wstring f = get_file_name().string(); 
     228      get_core()->get_logger()->debug(__FILEW__, __LINE__, _T("Loading: ") + f); 
     229      SI_Error rc = ini.LoadFile(f.c_str()); 
    228230      if (rc < 0) 
    229231        throw_SI_error(rc, _T("Failed to load file")); 
  • include/settings/settings_interface_impl.hpp

    r291548e r9111898  
    492492    } 
    493493    virtual std::wstring get_file_from_context() { 
    494       return core_->find_file(url_.host + url_.path, DEFAULT_CONF_OLD_LOCATION); 
     494      return core_->find_file(url_.host + url_.path, _T("")); 
    495495    } 
    496496    ////////////////////////////////////////////////////////////////////////// 
Note: See TracChangeset for help on using the changeset viewer.