more statesave bugfixes...
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@387 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4608333a56
commit
e4825be7a8
|
@ -220,7 +220,7 @@ static u8 g_SIBuffer[128];
|
||||||
|
|
||||||
void DoState(PointerWrap &p)
|
void DoState(PointerWrap &p)
|
||||||
{
|
{
|
||||||
p.Do(g_Channel);
|
// p.DoArray(g_Channel);
|
||||||
p.Do(g_Poll);
|
p.Do(g_Poll);
|
||||||
p.Do(g_ComCSR);
|
p.Do(g_ComCSR);
|
||||||
p.Do(g_StatusReg);
|
p.Do(g_StatusReg);
|
||||||
|
|
|
@ -38,10 +38,11 @@ static std::string cur_filename;
|
||||||
|
|
||||||
void DoState(PointerWrap &p)
|
void DoState(PointerWrap &p)
|
||||||
{
|
{
|
||||||
|
// Begin with video plugin, so that it gets a chance to clear it's caches and writeback modified things to RAM
|
||||||
|
PluginVideo::Video_DoState(p.GetPPtr(), p.GetMode());
|
||||||
PowerPC::DoState(p);
|
PowerPC::DoState(p);
|
||||||
HW::DoState(p);
|
HW::DoState(p);
|
||||||
CoreTiming::DoState(p);
|
CoreTiming::DoState(p);
|
||||||
// PluginVideo::Video_DoState(p.GetPPtr(), p.GetMode());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SaveStateCallback(u64 userdata, int cyclesLate)
|
void SaveStateCallback(u64 userdata, int cyclesLate)
|
||||||
|
|
|
@ -33,7 +33,7 @@ static int size = 0;
|
||||||
static int readptr = 0;
|
static int readptr = 0;
|
||||||
|
|
||||||
void Fifo_DoState(PointerWrap &p) {
|
void Fifo_DoState(PointerWrap &p) {
|
||||||
p.DoArray(videoBuffer, size);
|
p.DoArray(videoBuffer, FIFO_SIZE);
|
||||||
p.Do(size);
|
p.Do(size);
|
||||||
p.Do(readptr);
|
p.Do(readptr);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include "Fifo.h"
|
#include "Fifo.h"
|
||||||
|
|
||||||
static void DoState(PointerWrap &p) {
|
static void DoState(PointerWrap &p) {
|
||||||
|
|
||||||
// BP Memory
|
// BP Memory
|
||||||
p.Do(bpmem);
|
p.Do(bpmem);
|
||||||
// CP Memory
|
// CP Memory
|
||||||
|
|
|
@ -167,6 +167,9 @@ void Video_Initialize(SVideoInitialize* _pVideoInitialize)
|
||||||
}
|
}
|
||||||
|
|
||||||
void Video_DoState(unsigned char **ptr, int mode) {
|
void Video_DoState(unsigned char **ptr, int mode) {
|
||||||
|
// Clear all caches
|
||||||
|
TextureCache::Invalidate();
|
||||||
|
|
||||||
PointerWrap p(ptr, mode);
|
PointerWrap p(ptr, mode);
|
||||||
VideoCommon_DoState(p);
|
VideoCommon_DoState(p);
|
||||||
//PanicAlert("Saving/Loading state from DirectX9");
|
//PanicAlert("Saving/Loading state from DirectX9");
|
||||||
|
|
|
@ -180,6 +180,10 @@ void Video_Initialize(SVideoInitialize* _pVideoInitialize)
|
||||||
}
|
}
|
||||||
|
|
||||||
void Video_DoState(unsigned char **ptr, int mode) {
|
void Video_DoState(unsigned char **ptr, int mode) {
|
||||||
|
|
||||||
|
// Clear all caches
|
||||||
|
TextureMngr::Invalidate();
|
||||||
|
|
||||||
PointerWrap p(ptr, mode);
|
PointerWrap p(ptr, mode);
|
||||||
VideoCommon_DoState(p);
|
VideoCommon_DoState(p);
|
||||||
//PanicAlert("Saving/Loading state from OpenGL");
|
//PanicAlert("Saving/Loading state from OpenGL");
|
||||||
|
|
Loading…
Reference in New Issue