Synchronize the internal clock with host time when unpausing the emulator

This commit is contained in:
Alexander Babikov
2021-10-17 04:52:53 +05:00
parent db239d64e5
commit a6af62835b
4 changed files with 27 additions and 11 deletions

View File

@@ -1586,6 +1586,10 @@ plat_pause(int p)
ui_window_title(oldtitle);
}
/* If un-pausing, synchronize the internal clock with the host's time. */
if ((p == 0) && (time_sync & TIME_SYNC_ENABLED))
nvr_time_sync();
dopause = p;
/* Update the actual menu. */