Changeset 156 for trunk


Ignore:
Timestamp:
24/09/08 16:14:04 (6 years ago)
Author:
guyru
Message:

rename configuration file from .OpenYahtzee? to .openyahtzee

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/HighScoreTableDB.h

    r112 r156  
    4040///Sets the file name of the database the class will open. 
    4141#ifndef PORTABLE 
    42         #define DBFILENAME ".OpenYahtzee"  
     42        #define DBFILENAME ".openyahtzee"  
    4343#else 
    4444        #define DBFILENAME "OpenYahtzee.dat" 
  • 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(); 
  • trunk/src/SettingsDB.h

    r112 r156  
    4040///Sets the file name of the database the class will open. 
    4141#ifndef PORTABLE 
    42         #define DBFILENAME ".OpenYahtzee"  
     42        #define DBFILENAME ".openyahtzee"  
    4343#else 
    4444        #define DBFILENAME "OpenYahtzee.dat" 
Note: See TracChangeset for help on using the changeset viewer.