Support Uthernet save-state (#984)

Uthernet card: support save/load state
This commit is contained in:
TomCh
2021-09-21 21:32:14 +01:00
committed by GitHub
parent 10a83eed61
commit 4aa6e05528
7 changed files with 143 additions and 49 deletions
+1 -4
View File
@@ -334,10 +334,7 @@ void CPropertySheetHelper::ApplyNewConfig(const CConfigNeedingRestart& ConfigNew
SetSlot(slot, ConfigNew.m_Slot[slot]);
if (ConfigNew.m_Slot[slot] == CT_Uthernet) // TODO: move this to UthernetCard object
{
std::string& regSection = RegGetConfigSlotSection(slot);
RegSaveString(regSection.c_str(), REGVALUE_UTHERNET_INTERFACE, 1, ConfigNew.m_tfeInterface);
}
tfe_SetRegistryInterface(slot, ConfigNew.m_tfeInterface);
}
slot = SLOT4;