aboutsummaryrefslogtreecommitdiff
path: root/src/FIFO.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/FIFO.h')
-rw-r--r--src/FIFO.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/FIFO.h b/src/FIFO.h
index 4130b85..7ce67e9 100644
--- a/src/FIFO.h
+++ b/src/FIFO.h
@@ -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;