mirror of
https://github.com/libretro/Play-.git
synced 2024-12-02 14:36:38 +00:00
32 lines
601 B
C++
32 lines
601 B
C++
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "RegViewSCU.h"
|
|
#include "../COP_SCU.h"
|
|
|
|
CRegViewSCU::CRegViewSCU(HWND parentWnd, const RECT& rect, CMIPS* ctx)
|
|
: CRegViewPage(parentWnd, rect)
|
|
, m_ctx(ctx)
|
|
{
|
|
}
|
|
|
|
void CRegViewSCU::Update()
|
|
{
|
|
SetDisplayText(GetDisplayText().c_str());
|
|
CRegViewPage::Update();
|
|
}
|
|
|
|
std::string CRegViewSCU::GetDisplayText()
|
|
{
|
|
const auto& state = m_ctx->m_State;
|
|
std::string result;
|
|
|
|
for(unsigned int i = 0; i < 32; i++)
|
|
{
|
|
char sTemp[256];
|
|
sprintf(sTemp, "%10s : 0x%08X\r\n", CCOP_SCU::m_sRegName[i], state.nCOP0[i]);
|
|
result += sTemp;
|
|
}
|
|
|
|
return result;
|
|
}
|