save_ext: Initial support for save/load of RIFF chunk sizes > 28 bits.

Add a chunk extension header with a flag for increased RIFF size.
This commit is contained in:
Jonathan G Rennison
2015-09-11 19:44:16 +01:00
parent ddcb3bf560
commit 86dea90c4f
2 changed files with 68 additions and 2 deletions

View File

@@ -99,10 +99,17 @@ enum ChunkType {
CH_ARRAY = 1,
CH_SPARSE_ARRAY = 2,
CH_TYPE_MASK = 3,
CH_EXT_HDR = 15, ///< Extended chunk header
CH_LAST = 8, ///< Last chunk in this array.
CH_AUTO_LENGTH = 16,
};
/** Flags for chunk extended headers */
enum SaveLoadChunkExtHeaderFlags {
SLCEHF_BIG_RIFF = 1 << 0, ///< This block uses a 60-bit RIFF chunk size
};
DECLARE_ENUM_AS_BIT_SET(SaveLoadChunkExtHeaderFlags)
/**
* VarTypes is the general bitmasked magic type that tells us
* certain characteristics about the variable it refers to. For example