mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Common/PointerWrap: Hide internals.
This commit is contained in:
parent
3ed9d5a3c7
commit
853cf4f818
@ -46,6 +46,7 @@ public:
|
|||||||
MODE_VERIFY, // compare
|
MODE_VERIFY, // compare
|
||||||
};
|
};
|
||||||
|
|
||||||
|
private:
|
||||||
u8** ptr;
|
u8** ptr;
|
||||||
Mode mode;
|
Mode mode;
|
||||||
|
|
||||||
|
@ -994,8 +994,8 @@ void WiiSockMan::Convert(sockaddr_in const& from, WiiSockAddrIn& to, s32 addrlen
|
|||||||
|
|
||||||
void WiiSockMan::DoState(PointerWrap& p)
|
void WiiSockMan::DoState(PointerWrap& p)
|
||||||
{
|
{
|
||||||
bool saving =
|
bool saving = p.GetMode() == PointerWrap::Mode::MODE_WRITE ||
|
||||||
p.mode == PointerWrap::Mode::MODE_WRITE || p.mode == PointerWrap::Mode::MODE_MEASURE;
|
p.GetMode() == PointerWrap::Mode::MODE_MEASURE;
|
||||||
auto size = pending_polls.size();
|
auto size = pending_polls.size();
|
||||||
p.Do(size);
|
p.Do(size);
|
||||||
if (!saving)
|
if (!saving)
|
||||||
|
@ -26,7 +26,7 @@ void DoCPState(PointerWrap& p)
|
|||||||
p.Do(g_main_cp_state.vtx_desc);
|
p.Do(g_main_cp_state.vtx_desc);
|
||||||
p.DoArray(g_main_cp_state.vtx_attr);
|
p.DoArray(g_main_cp_state.vtx_attr);
|
||||||
p.DoMarker("CP Memory");
|
p.DoMarker("CP Memory");
|
||||||
if (p.mode == PointerWrap::MODE_READ)
|
if (p.GetMode() == PointerWrap::MODE_READ)
|
||||||
{
|
{
|
||||||
CopyPreprocessCPStateFromMain();
|
CopyPreprocessCPStateFromMain();
|
||||||
VertexLoaderManager::g_bases_dirty = true;
|
VertexLoaderManager::g_bases_dirty = true;
|
||||||
|
@ -94,7 +94,7 @@ void DoState(PointerWrap& p)
|
|||||||
p.DoPointer(write_ptr, s_video_buffer);
|
p.DoPointer(write_ptr, s_video_buffer);
|
||||||
s_video_buffer_write_ptr = write_ptr;
|
s_video_buffer_write_ptr = write_ptr;
|
||||||
p.DoPointer(s_video_buffer_read_ptr, s_video_buffer);
|
p.DoPointer(s_video_buffer_read_ptr, s_video_buffer);
|
||||||
if (p.mode == PointerWrap::MODE_READ && s_use_deterministic_gpu_thread)
|
if (p.GetMode() == PointerWrap::MODE_READ && s_use_deterministic_gpu_thread)
|
||||||
{
|
{
|
||||||
// We're good and paused, right?
|
// We're good and paused, right?
|
||||||
s_video_buffer_seen_ptr = s_video_buffer_pp_read_ptr = s_video_buffer_read_ptr;
|
s_video_buffer_seen_ptr = s_video_buffer_pp_read_ptr = s_video_buffer_read_ptr;
|
||||||
|
@ -298,7 +298,7 @@ Common::Vec2 FreeLookCamera::GetFieldOfViewMultiplier() const
|
|||||||
|
|
||||||
void FreeLookCamera::DoState(PointerWrap& p)
|
void FreeLookCamera::DoState(PointerWrap& p)
|
||||||
{
|
{
|
||||||
if (p.mode == PointerWrap::MODE_WRITE || p.mode == PointerWrap::MODE_MEASURE)
|
if (p.GetMode() == PointerWrap::MODE_WRITE || p.GetMode() == PointerWrap::MODE_MEASURE)
|
||||||
{
|
{
|
||||||
p.Do(m_current_type);
|
p.Do(m_current_type);
|
||||||
if (m_camera_controller)
|
if (m_camera_controller)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user