Ignore:
Timestamp:
09/24/2008 04:14:04 PM (4 years ago)
Author:
guyru
Message:

rename configuration file from .OpenYahtzee? to .openyahtzee

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r155 r156  
    7070        SetIcon(wxIcon(ICON)); 
    7171 
     72        /* Check if there is configuration file under old-name and 
     73         * rename it 
     74         */ 
     75        wxString home_path = wxFileName::GetHomeDir(); 
     76        if (wxFileExists(home_path+wxT("/.OpenYahtzee"))) { 
     77                // we don't won't to overwrite newer files. 
     78                wxRenameFile(home_path+wxT("/.OpenYahtzee"),home_path+wxT("/.openyahtzee"),false); 
     79        } 
    7280        m_settingsdb = new SettingsDB(); //Get the settings database connection 
    7381        m_highscoredb = new HighScoreTableDB(); 
Note: See TracChangeset for help on using the changeset viewer.