gsdump: fix casting on vsync type field

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-03-06 17:36:44 +01:00 committed by Kojin
parent 29356ef465
commit db2b487247
1 changed files with 3 additions and 2 deletions

View File

@ -389,7 +389,7 @@ void Dialogs::GSDumpDialog::GenPacketInfo(GSData& dump)
case VSync: case VSync:
{ {
wxString s; wxString s;
s.Printf("Field = %d", *(u8*)(dump.data)); s.Printf("Field = %d", (u32)(dump.data));
m_gif_packet->AppendItem(rootId, s); m_gif_packet->AppendItem(rootId, s);
break; break;
} }
@ -693,7 +693,7 @@ void Dialogs::GSDumpDialog::GSThread::ExecuteTaskInThread()
{ {
u8 vsync = 0; u8 vsync = 0;
dump_file.Read(&vsync, 1); dump_file.Read(&vsync, 1);
GSData data = {id, (char*)&vsync, 1, Dummy}; GSData data = {id, (char*)vsync, 1, Dummy};
m_root_window->m_dump_packets.push_back(data); m_root_window->m_dump_packets.push_back(data);
break; break;
} }
@ -719,6 +719,7 @@ void Dialogs::GSDumpDialog::GSThread::ExecuteTaskInThread()
if (m_root_window->m_debug_mode->GetValue()) if (m_root_window->m_debug_mode->GetValue())
m_root_window->GenPacketList(m_root_window->m_dump_packets); m_root_window->GenPacketList(m_root_window->m_dump_packets);
//return;
GetCorePlugins().Init(); GetCorePlugins().Init();
GSsetBaseMem((void*)regs); GSsetBaseMem((void*)regs);
if (GSopen2((void*)pDsp, renderer_override) != 0) if (GSopen2((void*)pDsp, renderer_override) != 0)