[RAPPS] settings read/write refactor (#3101)

* [RAPPS] move settings-related stuff to a separate file
* [RAPPS] refactor reg read/write
* [RAPPS] add params for Load/SaveSettings, no longer use global vars
This commit is contained in:
He Yang
2020-08-29 20:32:59 +08:00
committed by Mark Jansen
parent ce0110195b
commit e1974d21dc
7 changed files with 284 additions and 114 deletions

View File

@@ -316,7 +316,7 @@ BOOL CMainWindow::ProcessWindowMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARA
case WM_DESTROY:
{
ShowWindow(SW_HIDE);
SaveSettings(hwnd);
SaveSettings(hwnd, &SettingsInfo);
FreeLogs();
m_AvailableApps.FreeCachedEntries();