ChunkFile: Provide additional helpers for C-style arrays

Gets rid of magic numbers in cases where the array size is known at compile time.
This is also useful for future entries that are stack allocated arrays as these
functions prevent incorrect sizes being provided.
This commit is contained in:
Lioncash
2015-09-29 12:35:30 -04:00
parent 6a27f1bbf6
commit c6678687b0
12 changed files with 38 additions and 32 deletions

View File

@ -31,7 +31,7 @@ static void DoState(PointerWrap &p)
p.DoMarker("XF Memory");
// Texture decoder
p.DoArray(texMem, TMEM_SIZE);
p.DoArray(texMem);
p.DoMarker("texMem");
// FIFO