diff options
Diffstat (limited to 'src/FIFO.h')
-rw-r--r-- | src/FIFO.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - Copyright 2016-2017 StapleButter + Copyright 2016-2019 StapleButter This file is part of melonDS. @@ -47,6 +47,16 @@ public: } + void DoSavestate(Savestate* file) + { + file->Var32(&NumOccupied); + file->Var32(&ReadPos); + file->Var32(&WritePos); + + file->VarArray(Entries, sizeof(T)*NumEntries); + } + + void Write(T val) { if (IsFull()) return; |