mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add DoState() to scePsmfPlayer .
This commit is contained in:
parent
229d4e9f32
commit
b0868613bb
2 changed files with 19 additions and 1 deletions
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue