mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Movie: Don't access g_netplay_initial_gctime directly
Using the global variable directly is ugly and might not be threadsafe.
This commit is contained in:
parent
3f03e2d5fe
commit
8df4437b6c
2 changed files with 4 additions and 3 deletions
|
@ -1173,6 +1173,8 @@ bool WiimoteEmu::Wiimote::NetPlay_GetWiimoteData(int wiimote, u8* data, u8 size)
|
|||
|
||||
// called from ---CPU--- thread
|
||||
// so all players' games get the same time
|
||||
//
|
||||
// also called from ---GUI--- thread when starting input recording
|
||||
u64 CEXIIPL::NetPlay_GetGCTime()
|
||||
{
|
||||
std::lock_guard<std::mutex> lk(crit_netplay_client);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue