fix for FlushDirCache, sm4 alpha 5

This commit is contained in:
Chris Danford
2009-12-12 17:56:47 +00:00
parent a1ce925ae1
commit 678965aaf9
4 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
// Version info displayed to the user
#ifndef PRODUCT_VER_BARE
#define PRODUCT_VER_BARE alpha 4
#define PRODUCT_VER_BARE alpha 5
#endif
// A unique ID for a build of an application. This is used in crash reports and in the network code's version handling
+1 -1
View File
@@ -5,7 +5,7 @@
; see ProductInfo.h for use descriptions
!define PRODUCT_ID "StepMania 4"
!define PRODUCT_VER "alpha 4"
!define PRODUCT_VER "alpha 5"
!define PRODUCT_DISPLAY "${PRODUCT_ID} ${PRODUCT_VER}"
!define PRODUCT_BITMAP "sm4"
-3
View File
@@ -220,8 +220,6 @@ void LanguagesDlg::OnBnClickedButtonCreate()
file.Open( sLanguageFile, RageFile::WRITE );
file.Close(); // flush file
FlushDirCache();
OnSelchangeListThemes();
SelectString( m_listLanguages, SMPackageUtil::GetLanguageDisplayString(RString(dlg.m_sChosenLanguageCode)) );
OnSelchangeListLanguages();
@@ -245,7 +243,6 @@ void LanguagesDlg::OnBnClickedButtonDelete()
return;
FILEMAN->Remove( sLanguageFile );
FlushDirCache();
OnSelchangeListThemes();
}
+2 -2
View File
@@ -192,7 +192,7 @@ void MainMenuDlg::OnBnClickedClearKeymaps()
{
// TODO: Add your control notification handler code here
FlushDirCache();
FILEMAN->FlushDirCache( Dirname(SpecialFiles::KEYMAPS_PATH) );
if( !DoesFileExist( SpecialFiles::KEYMAPS_PATH ) )
{
Dialog::OK( ssprintf(IS_ALREADY_CLEARED.GetValue(),SpecialFiles::KEYMAPS_PATH.c_str()) );
@@ -229,7 +229,7 @@ void MainMenuDlg::OnBnClickedOpenPreferences()
void MainMenuDlg::OnBnClickedClearPreferences()
{
// TODO: Add your control notification handler code here
FlushDirCache();
FILEMAN->FlushDirCache( Dirname(SpecialFiles::PREFERENCES_INI_PATH) );
if( !DoesFileExist(SpecialFiles::PREFERENCES_INI_PATH) )
{
Dialog::OK( ssprintf(IS_ALREADY_CLEARED.GetValue(),SpecialFiles::PREFERENCES_INI_PATH.c_str()) );