Uthernet: fix -load-state so that tfe_init() is called

This commit is contained in:
tomcw
2021-10-02 12:56:55 +01:00
parent 1f04d1548a
commit 4cb8a6414d
3 changed files with 18 additions and 12 deletions
+2 -2
View File
@@ -264,7 +264,7 @@ void LoadConfiguration(void)
if (RegLoadString(regSection.c_str(), REGVALUE_UTHERNET_INTERFACE, TRUE, szFilename, MAX_PATH, TEXT("")))
update_tfe_interface(szFilename);
tfe_init();
tfe_init(true);
}
}
else if (slot == SLOT7)
@@ -289,7 +289,7 @@ void LoadConfiguration(void)
update_tfe_interface(szFilename);
if (tfeEnabled)
tfe_init();
tfe_init(true);
}
else if (slot == SLOT4 && REGLOAD(TEXT(REGVALUE_SLOT4), &dwTmp))
GetCardMgr().Insert(SLOT4, (SS_CARDTYPE)dwTmp);