Add DoState() to scePsmfPlayer .

This commit is contained in:
raven02 2013-01-19 21:05:05 +08:00
parent 229d4e9f32
commit b0868613bb
2 changed files with 19 additions and 1 deletions

View file

@ -43,7 +43,7 @@ PSPDialog::DialogStatus PSPDialog::GetStatus()
void PSPDialog::StartDraw()
{
PPGeBegin();
PPGeDrawRect(0, 0, 480, 272, CalcFadedColor(0x90606060));
PPGeDrawRect(0, 0, 480, 272, CalcFadedColor(0x00606060));
}
void PSPDialog::EndDraw()
{

View file

@ -141,6 +141,7 @@ public:
class PsmfPlayer {
public:
PsmfPlayer(u32 data);
void DoState(PointerWrap &p);
int videoCodec;
int videoStreamNum;
@ -295,6 +296,23 @@ void Psmf::DoState(PointerWrap &p) {
p.DoMarker("Psmf");
}
void PsmfPlayer::DoState(PointerWrap &p) {
p.Do(videoCodec);
p.Do(videoStreamNum);
p.Do(audioCodec);
p.Do(audioStreamNum);
p.Do(playMode);
p.Do(playSpeed);
p.Do(displayBuffer);
p.Do(displayBufferSize);
p.Do(playbackThreadPriority);
p.Do(psmfMaxAheadTimestamp);
p.Do(psmfPlayerLastTimestamp);
p.DoMarker("PsmfPlayer");
}
static std::map<u32, Psmf *> psmfMap;
static std::map<u32, PsmfPlayer *> psmfPlayerMap;
// TODO: Should have a map.