fixed some graphics problems with loading savestates (for example, wrong colors on title screen of metroid prime 3)

This commit is contained in:
nitsuja
2012-01-01 12:46:02 -08:00
committed by skidau
parent 19b0b02ad7
commit 2be579e8ba
10 changed files with 107 additions and 58 deletions

View File

@ -43,31 +43,6 @@ void LoadBPReg(u32 value0)
BPWritten(bp);
}
// Called when loading a saved state.
// Needs more testing though.
void BPReload()
{
for (int i = 0; i < 254; i++)
{
switch (i)
{
case BPMEM_BLENDMODE:
case BPMEM_SETDRAWDONE:
case BPMEM_TRIGGER_EFB_COPY:
case BPMEM_LOADTLUT1:
case BPMEM_PERF1:
case BPMEM_PE_TOKEN_ID:
case BPMEM_PE_TOKEN_INT_ID:
// Cases in which we DON'T want to reload the BP
continue;
default:
BPCmd bp = {i, 0xFFFFFF, static_cast<int>(((u32*)&bpmem)[i])};
BPWritten(bp);
}
}
}
void GetBPRegInfo(const u8* data, char* name, size_t name_size, char* desc, size_t desc_size)
{
const char* no_yes[2] = { "No", "Yes" };