- Timestamp:
- 24/09/08 16:14:04 (5 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
-
HighScoreTableDB.h (modified) (1 diff)
-
MainFrame.cpp (modified) (1 diff)
-
SettingsDB.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/HighScoreTableDB.h
r112 r156 40 40 ///Sets the file name of the database the class will open. 41 41 #ifndef PORTABLE 42 #define DBFILENAME ". OpenYahtzee"42 #define DBFILENAME ".openyahtzee" 43 43 #else 44 44 #define DBFILENAME "OpenYahtzee.dat" -
trunk/src/MainFrame.cpp
r155 r156 70 70 SetIcon(wxIcon(ICON)); 71 71 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 } 72 80 m_settingsdb = new SettingsDB(); //Get the settings database connection 73 81 m_highscoredb = new HighScoreTableDB(); -
trunk/src/SettingsDB.h
r112 r156 40 40 ///Sets the file name of the database the class will open. 41 41 #ifndef PORTABLE 42 #define DBFILENAME ". OpenYahtzee"42 #define DBFILENAME ".openyahtzee" 43 43 #else 44 44 #define DBFILENAME "OpenYahtzee.dat"
Note: See TracChangeset
for help on using the changeset viewer.
