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

@@ -708,6 +708,9 @@ plat_pause(int p)
static wchar_t oldtitle[512];
wchar_t title[512];
if ((p == 0) && (time_sync & TIME_SYNC_ENABLED))
nvr_time_sync();
dopause = p;
if (p) {
wcsncpy(oldtitle, ui_window_title(NULL), sizeof_w(oldtitle) - 1);