예제 #1
0
bool vgmstreamPreferences::HasChanged()
{
	if(IsDlgButtonChecked(IDC_LOOP_FOREVER))
		if(cfg_LoopForever != true) return true;

	if(IsDlgButtonChecked(IDC_IGNORE_LOOP))
		if(cfg_IgnoreLoop != true) return true;

	if(IsDlgButtonChecked(IDC_LOOP_NORMALLY))
		if(cfg_IgnoreLoop != false || cfg_LoopForever != false) return true;

    bool current_cfg_DisableSubsongs = IsDlgButtonChecked(IDC_DISABLE_SUBSONGS)?true:false;
    if(cfg_DisableSubsongs != current_cfg_DisableSubsongs) return true;

    bool current_cfg_TagfileDisable = IsDlgButtonChecked(IDC_TAGFILE_DISABLE)?true:false;
    if(cfg_TagfileDisable != current_cfg_TagfileDisable) return true;

    bool current_cfg_OverrideTitle = IsDlgButtonChecked(IDC_OVERRIDE_TITLE)?true:false;
    if(cfg_OverrideTitle != current_cfg_OverrideTitle) return true;

	pfc::string FadeLength(cfg_FadeLength);
	pfc::string FadeDelay(cfg_FadeDelay);
	pfc::string LoopCount(cfg_LoopCount);

	if(FadeLength != uGetDlgItemText(m_hWnd, IDC_FADE_SECONDS)) return true;
	if(FadeDelay != uGetDlgItemText(m_hWnd, IDC_FADE_DELAY_SECONDS)) return true;
	if(LoopCount != uGetDlgItemText(m_hWnd, IDC_LOOP_COUNT)) return true;

    pfc::string DownmixChannels(cfg_DownmixChannels);
    if(DownmixChannels != uGetDlgItemText(m_hWnd, IDC_DOWNMIX_CHANNELS)) return true;

	return FALSE;
}
예제 #2
0
bool vgmstreamPreferences::HasChanged()
{
    if(IsDlgButtonChecked(IDC_LOOP_FOREVER))
        if(cfg_LoopForever != true) return true;

    if(IsDlgButtonChecked(IDC_IGNORE_LOOP))
        if(cfg_IgnoreLoop != true) return true;

    if(IsDlgButtonChecked(IDC_LOOP_NORMALLY))
        if(cfg_IgnoreLoop != false || cfg_LoopForever != false) return true;

    pfc::string FadeLength(cfg_FadeLength);
    pfc::string FadeDelay(cfg_FadeDelay);
    pfc::string LoopCount(cfg_LoopCount);

    if(FadeLength != uGetDlgItemText(m_hWnd, IDC_FADE_SECONDS)) return true;
    if(FadeDelay != uGetDlgItemText(m_hWnd, IDC_FADE_DELAY_SECONDS)) return true;
    if(LoopCount != uGetDlgItemText(m_hWnd, IDC_LOOP_COUNT)) return true;

    return FALSE;
}