1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

GLideNUI-wtl: Save to custom.ini

This commit is contained in:
zilmar 2020-04-27 10:50:10 +09:30 committed by Sergey Lipskiy
parent bc69499b62
commit 29bd0d10ab

View File

@ -219,7 +219,12 @@ void CConfigDlg::SaveSettings() {
m_Saved = true;
for (size_t i = 0; i < m_TabWindows.size(); i++)
m_TabWindows[i]->SaveSettings();
writeSettings(m_strIniPath.c_str());
if (config.generalEmulation.enableCustomSettings && CButton(m_EmulationTab->GetDlgItem(IDC_GAME_PROFILE)).GetCheck() == BST_CHECKED && m_romName != nullptr)
saveCustomRomSettings(m_strIniPath.c_str(), m_romName);
else
writeSettings(m_strIniPath.c_str());
}
LRESULT CConfigDlg::OnRestoreDefaults(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) {