diff options
author | James Cowgill <jcowgill@debian.org> | 2018-12-23 22:09:29 +0000 |
---|---|---|
committer | James Cowgill <jcowgill@debian.org> | 2018-12-23 22:09:29 +0000 |
commit | fa977e826b34fe2fcfeb253f50d8def6127068b6 (patch) | |
tree | d0e1cd7cdc903a5c858d2339ec4a359c6b7a9903 /soundlib/ModSequence.h | |
parent | db8e0c1070c79653be541929205e7b7004d43663 (diff) |
New upstream version 0.4.0
Diffstat (limited to 'soundlib/ModSequence.h')
-rw-r--r-- | soundlib/ModSequence.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/soundlib/ModSequence.h b/soundlib/ModSequence.h index 8ebf602..09e0454 100644 --- a/soundlib/ModSequence.h +++ b/soundlib/ModSequence.h @@ -10,6 +10,8 @@ #pragma once +#include "BuildSettings.h" + #include <algorithm> #include <vector> #include "Snd_defs.h" @@ -95,8 +97,10 @@ public: // If another usage is found, the pattern is replaced by a copy and the new index is returned. PATTERNINDEX EnsureUnique(ORDERINDEX ord); +#ifndef MODPLUG_NO_FILESAVE // Write order items as bytes. '---' is written as stopIndex, '+++' is written as ignoreIndex - size_t WriteAsByte(FILE *f, const ORDERINDEX count, uint8 stopIndex = 0xFF, uint8 ignoreIndex = 0xFE) const; + size_t WriteAsByte(std::ostream &f, const ORDERINDEX count, uint8 stopIndex = 0xFF, uint8 ignoreIndex = 0xFE) const; +#endif // MODPLUG_NO_FILESAVE // Returns true if the IT orderlist datafield is not sufficient to store orderlist information. bool NeedsExtraDatafield() const; @@ -185,13 +189,19 @@ public: const char FileIdSequences[] = "mptSeqC"; const char FileIdSequence[] = "mptSeq"; +#ifndef MODPLUG_NO_FILESAVE void WriteModSequences(std::ostream& oStrm, const ModSequenceSet& seq); +#endif // MODPLUG_NO_FILESAVE void ReadModSequences(std::istream& iStrm, ModSequenceSet& seq, const size_t nSize = 0); +#ifndef MODPLUG_NO_FILESAVE void WriteModSequence(std::ostream& oStrm, const ModSequence& seq); +#endif // MODPLUG_NO_FILESAVE void ReadModSequence(std::istream& iStrm, ModSequence& seq, const size_t); +#ifndef MODPLUG_NO_FILESAVE void WriteModSequenceOld(std::ostream& oStrm, const ModSequenceSet& seq); +#endif // MODPLUG_NO_FILESAVE void ReadModSequenceOld(std::istream& iStrm, ModSequenceSet& seq, const size_t); |