Use SetCursor() to busy when loading state file. (Fixes #781)

Fixed typos in dbg-bookmarks.html.
This commit is contained in:
tomcw
2020-06-03 20:26:06 +01:00
parent 105d0d77d8
commit f238be27e8
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -371,6 +371,7 @@ static void ParseUnit(void)
static void Snapshot_LoadState_v2(void)
{
bool restart = false; // Only need to restart if any VM state has change
HCURSOR oldcursor = SetCursor(LoadCursor(0,IDC_WAIT));
try
{
@@ -474,6 +475,7 @@ static void Snapshot_LoadState_v2(void)
PostMessage(g_hFrameWindow, WM_USER_RESTART, 0, 0); // Power-cycle VM (undoing all the new state just loaded)
}
SetCursor(oldcursor);
yamlHelper.FinaliseParser();
}