- Timestamp:
- 01/17/2008 08:45:18 PM (4 years ago)
- Location:
- branches/openyahtzee-1.8
- Files:
-
- 8 edited
-
Makefile.am (modified) (1 diff)
-
src/About.cpp (modified) (1 diff)
-
src/HighScoreTableDB.cpp (modified) (1 diff)
-
src/HighScoreTableDB.h (modified) (1 diff)
-
src/MainFrame.cpp (modified) (1 diff)
-
src/Makefile.am (modified) (1 diff)
-
src/SettingsDB.cpp (modified) (1 diff)
-
src/SettingsDB.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/openyahtzee-1.8/Makefile.am
r2 r144 4 4 5 5 SUBDIRS = src 6 AM_CXXFLAGS = $(wx-config --cxxflags)6 AM_CXXFLAGS = `wx-config --cxxflags` -
branches/openyahtzee-1.8/src/About.cpp
r96 r144 50 50 bitmap_1 = new wxDynamicBitmap((wxWindow*)this, (wxWindowID)wxID_ANY,*logo); 51 51 52 #ifdef PORTABLE 53 app_label = new wxStaticText(this, -1, wxT("Open Yahtzee Portable Edition 1.8.0")); 54 #else 52 55 app_label = new wxStaticText(this, -1, wxT("Open Yahtzee 1.8.0")); 56 #endif 53 57 label_desc = new wxStaticText(notebook_main_pane_about, -1, wxT("A full-featured wxWidgets version of\nthe classic dice game Yahtzee.")); 54 58 label_copyright = new wxStaticText(notebook_main_pane_about, -1, wxT("(c) 2006-2007 Guy Rutenberg")); -
branches/openyahtzee-1.8/src/HighScoreTableDB.cpp
r73 r144 30 30 { 31 31 /* Open the database which holds the settings. */ 32 #ifdef PORTABLE 33 m_path = ""; 34 #else 32 35 m_path = ((wxFileName::GetHomeDir()).mb_str()); 33 m_path += "/"; //IMPORTANT! only works under linux/unix/*nix 36 m_path += "/"; 37 #endif 34 38 m_path += DBFILENAME; 35 39 -
branches/openyahtzee-1.8/src/HighScoreTableDB.h
r28 r144 38 38 #define HIGHSCORETABLEDB_INC 39 39 40 ///Sets the file name of the database the class will open. The directory will always be the home dir. 41 #define DBFILENAME ".OpenYahtzee" 40 ///Sets the file name of the database the class will open. 41 #ifndef PORTABLE 42 #define DBFILENAME ".OpenYahtzee" 43 #else 44 #define DBFILENAME "OpenYahtzee.dat" 45 #endif 46 42 47 class HighScoreTableDB : public DBwrapper 43 48 { -
branches/openyahtzee-1.8/src/MainFrame.cpp
r143 r144 306 306 void MainFrame::OnAbout(wxCommandEvent& event) 307 307 { 308 #ifndef PORTABLE 309 AboutDialog *about = new AboutDialog(this,wxID_ANY,wxT("About Open Yahtzee PE")); 310 #else 308 311 AboutDialog *about = new AboutDialog(this,wxID_ANY,wxT("About Open Yahtzee")); 312 #endif 309 313 about->ShowModal(); 310 314 } -
branches/openyahtzee-1.8/src/Makefile.am
r93 r144 13 13 HighScoreDialog.h SettingsDialog.h Icon.h icon32.ico wxDynamicBitmap.h UtilityFunctions.h 14 14 15 openyahtzee_LDFLAGS = `wx-config --libs` -lsqlite316 AM_CXXFLAGS = `wx-config --cxxflags` -DPREFIX=\"$(prefix)\" \ 17 -DDATA_DIR=\"$(datadir)\" 15 openyahtzee_LDFLAGS = `wx-config --libs` 16 openyahtzee_LDADD = -lsqlite3 17 AM_CXXFLAGS = `wx-config --cxxflags` -
branches/openyahtzee-1.8/src/SettingsDB.cpp
r17 r144 28 28 { 29 29 /* Open the database which holds the settings. */ 30 #ifdef PORTABLE 31 m_path = ""; 32 #else 30 33 m_path = ((wxFileName::GetHomeDir()).mb_str()); 31 m_path += "/"; //IMPORTANT! only works under linux/unix/*nix 34 m_path += "/"; 35 #endif 32 36 m_path += DBFILENAME; 33 37 -
branches/openyahtzee-1.8/src/SettingsDB.h
r17 r144 38 38 #define SETTINGSDB_INC 39 39 40 ///Sets the file name of the database the class will open. The directory will always be the home dir. 41 #define DBFILENAME ".OpenYahtzee" 40 ///Sets the file name of the datase the class will open. 41 #ifndef PORTABLE 42 #define DBFILENAME ".OpenYahtzee" 43 #else 44 #define DBFILENAME "OpenYahtzee.dat" 45 #endif 42 46 class SettingsDB : public DBwrapper 43 47 {
Note: See TracChangeset
for help on using the changeset viewer.
