diff options
author | Max Horn | 2003-04-30 13:23:31 +0000 |
---|---|---|
committer | Max Horn | 2003-04-30 13:23:31 +0000 |
commit | 2b74abd2c900d1a8bfd6c15829397503d9439849 (patch) | |
tree | be0e1c3845c90a7e66fffc6b763b964066621ebb /scumm/imuse.cpp | |
parent | 30e3a8161857260e75c84e4a54cf0849afa10dfd (diff) | |
download | scummvm-rg350-2b74abd2c900d1a8bfd6c15829397503d9439849.tar.gz scummvm-rg350-2b74abd2c900d1a8bfd6c15829397503d9439849.tar.bz2 scummvm-rg350-2b74abd2c900d1a8bfd6c15829397503d9439849.zip |
PalmOS changes
svn-id: r7224
Diffstat (limited to 'scumm/imuse.cpp')
-rw-r--r-- | scumm/imuse.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp index 5d44d7c1e5..d320219b1c 100644 --- a/scumm/imuse.cpp +++ b/scumm/imuse.cpp @@ -154,6 +154,11 @@ struct Player { int fade_vol(byte vol, int time); bool is_fading_out(); void sequencer_timer(); + + Player() { + memset(this,0,sizeof(Player)); // palmos + } + }; struct VolumeFader { @@ -171,6 +176,10 @@ struct VolumeFader { } void on_timer(bool probe); byte fading_to(); + + VolumeFader() { + memset(this,0,sizeof(VolumeFader)); //palmos + } }; struct SustainingNotes { @@ -255,6 +264,10 @@ struct Part { void update_pris(); void changed(uint16 what); + + Part() { + memset(this,0,sizeof(Part)); + } }; struct ImTrigger { @@ -433,6 +446,9 @@ private: void unlock(); public: + IMuseInternal() { + memset(this,0,sizeof(IMuseInternal)); // palmos + } ~IMuseInternal(); Part *parts_ptr() { @@ -2967,6 +2983,10 @@ int IMuseInternal::save_or_load(Serializer *ser, Scumm *scumm) { #ifdef _WIN32_WCE // Don't break savegames made with andys' build if (!ser->isSaving() && ser->checkEOFLoadStream()) return 0; +#elif defined(__PALM_OS__) // previous PalmOS ver. without imuse implementation or not saved(Oopps...forgot it !), is this really working ? will we have sound with old saved game ? + if (!ser->isSaving() && ser->checkEOFLoadStream()) + return 0; //palmfixme + #endif ser->_ref_me = this; @@ -3241,6 +3261,8 @@ void Part::set_instrument(uint b) { IMuseDriver::IMuseDriver (MidiDriver *midi) { int i; + memset(this,0,sizeof(IMuseDriver)); //palmos + // Initialize our "last" trackers with impossible // values, so that they don't accidentally match // any changes that are sent (which would cause |