Add Configurable RTC

This commit is contained in:
Chris Burgener
2016-07-13 16:46:14 -04:00
parent e21cc8937b
commit cac9516e39
10 changed files with 148 additions and 5 deletions

View File

@ -792,7 +792,10 @@ bool NetPlayServer::StartGame()
// no change, just update with clients
AdjustPadBufferSize(m_target_buffer_size);
g_netplay_initial_gctime = Common::Timer::GetLocalTimeSinceJan1970();
if (SConfig::GetInstance().bEnableCustomRTC)
g_netplay_initial_gctime = SConfig::GetInstance().m_customRTCValue;
else
g_netplay_initial_gctime = Common::Timer::GetLocalTimeSinceJan1970();
// tell clients to start game
auto spac = std::make_unique<sf::Packet>();