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