summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VideoState.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-08-30 16:05:32 +0000
committerhrydgard <hrydgard@gmail.com>2008-08-30 16:05:32 +0000
commit4608333a560e9d92f518689ee7ed6730a652dca8 (patch)
tree689250a6f6a76bf6a81d2ac4b7212ec612f77ab3 /Source/Core/VideoCommon/Src/VideoState.cpp
parent95eb8f9ef3b727c66c0e20d6fcdc3e96e1ec883c (diff)
State saving progress. Most core state seems to be saved/loaded correctly, not so for video yet unfortunately.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@386 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VideoState.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VideoState.cpp35
1 files changed, 19 insertions, 16 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoState.cpp b/Source/Core/VideoCommon/Src/VideoState.cpp
index 65ec2e05c3..8e187c585e 100644
--- a/Source/Core/VideoCommon/Src/VideoState.cpp
+++ b/Source/Core/VideoCommon/Src/VideoState.cpp
@@ -23,22 +23,25 @@
#include "TextureDecoder.h"
#include "Fifo.h"
-void VideoCommon_DoState(PointerWrap &p) {
- // BP Memory
- p.Do(bpmem);
- // CP Memory
- p.Do(arraybases);
- p.Do(arraystrides);
- p.Do(MatrixIndexA);
- p.Do(MatrixIndexB);
- // XF Memory
- p.Do(xfregs);
- p.Do(xfmem);
- // Texture decoder
- p.Do(texMem);
-
- // FIFO
- Fifo_DoState(p);
+static void DoState(PointerWrap &p) {
+ // BP Memory
+ p.Do(bpmem);
+ // CP Memory
+ p.DoArray(arraybases, 16);
+ p.DoArray(arraystrides, 16);
+ p.Do(MatrixIndexA);
+ p.Do(MatrixIndexB);
+ // XF Memory
+ p.Do(xfregs);
+ p.DoArray(xfmem, XFMEM_SIZE);
+ // Texture decoder
+ p.DoArray(texMem, TMEM_SIZE);
+
+ // FIFO
+ Fifo_DoState(p);
+}
+void VideoCommon_DoState(PointerWrap &p) {
+ DoState(p);
//TODO: search for more data that should be saved and add it here
}