diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-19 12:04:12 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-19 12:04:12 -0700 |
commit | 2b5947171bfa4cdad73bb87d7195408fca4e685a (patch) | |
tree | 18031046af095edd65b5f4b2c61c944b68767bb6 /src/recorder.h | |
parent | fa007dafa2c499425e7112095cbda9c2ff5ea20c (diff) | |
download | mana-2b5947171bfa4cdad73bb87d7195408fca4e685a.tar.gz mana-2b5947171bfa4cdad73bb87d7195408fca4e685a.tar.bz2 mana-2b5947171bfa4cdad73bb87d7195408fca4e685a.tar.xz mana-2b5947171bfa4cdad73bb87d7195408fca4e685a.zip |
Fixed a directory creation error reported by our Windows users (why
doesn't PhysFS handle this properly?!?) when there's already an update
directory. Also fixed the recorder class so that it's fixed on Windows
as well.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/recorder.h')
-rw-r--r-- | src/recorder.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/recorder.h b/src/recorder.h index fe49810f..eeaf4821 100644 --- a/src/recorder.h +++ b/src/recorder.h @@ -31,18 +31,18 @@ class ChatWindow; class Recorder : public ButtonBoxListener { + private: + ChatWindow *mChat; + std::ofstream mStream; + ButtonBox *mButtonBox; public: Recorder(ChatWindow *chat); - void record(const std::string &msg); - void respond(const std::string &msg); - void help() const; - void help(const std::string &args) const; - void buttonBoxRespond(); - bool isRecording() const {return mStream.is_open();} + void record(const std::string &msg); + void respond(const std::string &msg); + void help() const; + void help(const std::string &args) const; + void buttonBoxRespond(); + bool isRecording() {return (bool) mStream.is_open();} virtual ~Recorder(); - private: - ChatWindow *mChat; - std::ofstream mStream; - ButtonBox *mButtonBox; }; #endif |