Changeset 357 for src/global/ini.cpp


Ignore:
Timestamp:
12/24/07 15:43:02 (12 years ago)
Author:
Eoin
Message:

Added small backing up of previous data xml files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/global/ini.cpp

    r303 r357  
    3434        ini_impl(std::wstring filename) : 
    3535                working_file_(app().working_directory()/filename) 
    36         {} 
     36        { 
     37                wpath backup = app().working_directory()/(filename + L".pre") 
     38                 
     39                if (boost::filesystem::exists(backup)) 
     40                        boost::filesystem::boost::filesystem(backup); 
     41                 
     42                boost::filesystem::copy_file(app().working_directory()/filename, backup); 
     43        } 
    3744         
    3845        void load_data() 
Note: See TracChangeset for help on using the changeset viewer.