aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-08-19 16:25:40 +0200
committerArisotura <thetotalworm@gmail.com>2020-08-19 16:25:40 +0200
commite1add6f3d7dc5131f67708ebb2050a09581d9142 (patch)
tree081d9dcb9cc7edbd819e6f9e164c01bb30d2e811 /src
parent00f33343e4b2b58eacba46238928fc7c870063ad (diff)
3D: add a bunch of missing variables to savestates. oops.
fixes #716
Diffstat (limited to 'src')
-rw-r--r--src/GPU3D.cpp28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp
index bd27783..d9d6ba8 100644
--- a/src/GPU3D.cpp
+++ b/src/GPU3D.cpp
@@ -401,8 +401,33 @@ void DoSavestate(Savestate* file)
file->Var32(&NumTestCommands);
file->Var32(&DispCnt);
+ file->Var8(&AlphaRefVal);
file->Var8(&AlphaRef);
+ file->VarArray(ToonTable, 32*2);
+ file->VarArray(EdgeTable, 8*2);
+
+ file->Var32(&FogColor);
+ file->Var32(&FogOffset);
+ file->VarArray(FogDensityTable, 32);
+
+ file->Var32(&ClearAttr1);
+ file->Var32(&ClearAttr2);
+
+ file->Var32(&RenderDispCnt);
+ file->Var8(&RenderAlphaRef);
+
+ file->VarArray(RenderToonTable, 32*2);
+ file->VarArray(RenderEdgeTable, 8*2);
+
+ file->Var32(&RenderFogColor);
+ file->Var32(&RenderFogOffset);
+ file->Var32(&RenderFogShift);
+ file->VarArray(RenderFogDensityTable, 34);
+
+ file->Var32(&RenderClearAttr1);
+ file->Var32(&RenderClearAttr2);
+
file->Var32(&ZeroDotWLimit);
file->Var32(&GXStat);
@@ -471,9 +496,6 @@ void DoSavestate(Savestate* file)
file->Var32(&NumPolygons);
file->Var32(&NumOpaquePolygons);
- file->Var32(&ClearAttr1);
- file->Var32(&ClearAttr2);
-
file->Var32(&FlushRequest);
file->Var32(&FlushAttributes);