Uthernet II card: support save/load state. (PR #1054)

NB. do not attempt to restore a UDP / TCP socket.
This commit is contained in:
Andrea
2022-03-07 21:08:31 +00:00
committed by GitHub
parent 10337aa95c
commit bbe2a7f8ee
4 changed files with 342 additions and 211 deletions
+2
View File
@@ -465,6 +465,7 @@ void Snapshot_LoadState()
return;
}
LogFileOutput("Loading Save-State from %s\n", g_strSaveStatePathname.c_str());
Snapshot_LoadState_v2();
}
@@ -472,6 +473,7 @@ void Snapshot_LoadState()
void Snapshot_SaveState(void)
{
LogFileOutput("Saving Save-State to %s\n", g_strSaveStatePathname.c_str());
try
{
YamlSaveHelper yamlSaveHelper(g_strSaveStatePathname);