summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VideoState.cpp
diff options
context:
space:
mode:
authorXTra.KrazzY <XTra.KrazzY@gmail.com>2008-08-30 15:54:44 +0000
committerXTra.KrazzY <XTra.KrazzY@gmail.com>2008-08-30 15:54:44 +0000
commit95eb8f9ef3b727c66c0e20d6fcdc3e96e1ec883c (patch)
tree38f4bdb47ca8d916ab4d089abe5153b3ca6c20f1 /Source/Core/VideoCommon/Src/VideoState.cpp
parent06f0b02ecda6654c5931a6482bb65daf3da18812 (diff)
Save states now work (to some extent). Please report special cases which cause crashes or anything of the sort. Also removed debug messages from state management
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@385 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VideoState.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VideoState.cpp45
1 files changed, 17 insertions, 28 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoState.cpp b/Source/Core/VideoCommon/Src/VideoState.cpp
index a774ac5426..65ec2e05c3 100644
--- a/Source/Core/VideoCommon/Src/VideoState.cpp
+++ b/Source/Core/VideoCommon/Src/VideoState.cpp
@@ -23,33 +23,22 @@
#include "TextureDecoder.h"
#include "Fifo.h"
-static void 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);
- PanicAlert("video: XFMem");
- p.Do(xfmem);
- PanicAlert("video: Texture decoder");
- // Texture decoder
- p.Do(texMem);
-
- // FIFO
- PanicAlert("video: FIFO");
- Fifo_DoState(p);
-
- //TODO: Check for more pointers in the data structures and make them
- // serializable
-}
-
void VideoCommon_DoState(PointerWrap &p) {
- PanicAlert("Saving state from Video Common Library");
- //TODO: Save the video state
- DoState(p);
- PanicAlert("END save video");
+ // 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);
+
+ //TODO: search for more data that should be saved and add it here
}