mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
EXI_DeviceIPL: Unify GetGCTime epoch handling
This commit is contained in:
@ -27,7 +27,7 @@
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
u64 g_netplay_initial_gctime = 1272737767;
|
||||
u64 g_netplay_initial_rtc = 1272737767;
|
||||
|
||||
NetPlayServer::~NetPlayServer()
|
||||
{
|
||||
@ -789,9 +789,9 @@ bool NetPlayServer::StartGame()
|
||||
AdjustPadBufferSize(m_target_buffer_size);
|
||||
|
||||
if (SConfig::GetInstance().bEnableCustomRTC)
|
||||
g_netplay_initial_gctime = SConfig::GetInstance().m_customRTCValue;
|
||||
g_netplay_initial_rtc = SConfig::GetInstance().m_customRTCValue;
|
||||
else
|
||||
g_netplay_initial_gctime = Common::Timer::GetLocalTimeSinceJan1970();
|
||||
g_netplay_initial_rtc = Common::Timer::GetLocalTimeSinceJan1970();
|
||||
|
||||
// tell clients to start game
|
||||
auto spac = std::make_unique<sf::Packet>();
|
||||
@ -811,8 +811,8 @@ bool NetPlayServer::StartGame()
|
||||
*spac << m_settings.m_OCFactor;
|
||||
*spac << m_settings.m_EXIDevice[0];
|
||||
*spac << m_settings.m_EXIDevice[1];
|
||||
*spac << (u32)g_netplay_initial_gctime;
|
||||
*spac << (u32)(g_netplay_initial_gctime >> 32);
|
||||
*spac << (u32)g_netplay_initial_rtc;
|
||||
*spac << (u32)(g_netplay_initial_rtc >> 32);
|
||||
|
||||
SendAsyncToClients(std::move(spac));
|
||||
|
||||
|
Reference in New Issue
Block a user