X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70d26c3f4ffb24d50457d405c9595fd23f9e5b7c..c5e2dc6f5ba909192ff6c22ead5e7600a00bad0f:/demos/forty/scorefil.h diff --git a/demos/forty/scorefil.h b/demos/forty/scorefil.h index 1e89904eca..d73bb62540 100644 --- a/demos/forty/scorefil.h +++ b/demos/forty/scorefil.h @@ -15,21 +15,26 @@ #include -class wxConfig; +#ifdef __WIN16__ +#include + +#undef wxConfig +#define wxConfig wxFileConfig +#endif class ScoreFile { public: - ScoreFile(const char* appName); + ScoreFile(const wxString& appName); virtual ~ScoreFile(); void GetPlayerList( wxArrayString &list ); wxString GetPreviousPlayer() const; - void ReadPlayersScore(const char* player, int& wins, int& games, int &score); - void WritePlayersScore(const char* player, int wins, int games, int score); + void ReadPlayersScore(const wxString& player, int& wins, int& games, int &score); + void WritePlayersScore(const wxString& player, int wins, int games, int score); private: - long CalcCheck(const char* name, int p1, int p2, int p3); + long CalcCheck(const wxString& name, int p1, int p2, int p3); wxString m_configFilename; wxConfig* m_config; };