remove CreateDirectories uses
This commit is contained in:
@@ -18,10 +18,10 @@
|
|||||||
#include "BGAnimation.h"
|
#include "BGAnimation.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "RageUtil_FileDB.h"
|
|
||||||
#include "RageDisplay.h"
|
#include "RageDisplay.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "arch/ArchHooks/ArchHooks.h"
|
#include "arch/ArchHooks/ArchHooks.h"
|
||||||
|
#include "RageFileManager.h"
|
||||||
|
|
||||||
|
|
||||||
static Actor* LoadActor( CString sPath )
|
static Actor* LoadActor( CString sPath )
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#include "AnnouncerManager.h"
|
#include "AnnouncerManager.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
|
#include "RageFile.h"
|
||||||
#include "arch/arch.h"
|
#include "arch/arch.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -136,7 +137,8 @@ CString AnnouncerManager::GetPathTo( CString sAnnouncerName, CString sFolderName
|
|||||||
LOG->Trace( "The announcer in '%s' is missing the folder '%s'.",
|
LOG->Trace( "The announcer in '%s' is missing the folder '%s'.",
|
||||||
AnnouncerPath.c_str(), sFolderName.c_str() );
|
AnnouncerPath.c_str(), sFolderName.c_str() );
|
||||||
// MessageBeep( MB_OK );
|
// MessageBeep( MB_OK );
|
||||||
CreateDirectories( AnnouncerPath+sFolderName );
|
RageFile temp;
|
||||||
|
temp.Open( AnnouncerPath+sFolderName + "/announcer files go here.txt", RageFile::WRITE );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
@@ -118,7 +118,6 @@ void BannerCache::UnloadAllBanners()
|
|||||||
|
|
||||||
BannerCache::BannerCache()
|
BannerCache::BannerCache()
|
||||||
{
|
{
|
||||||
CreateDirectories( CACHE_DIR "Banners" SLASH );
|
|
||||||
BannerData.SetPath( CACHE_DIR "banners.cache" );
|
BannerData.SetPath( CACHE_DIR "banners.cache" );
|
||||||
BannerData.ReadFile(); // don't care if this fails
|
BannerData.ReadFile(); // don't care if this fails
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,8 +113,6 @@ bool ProfileManager::CreateProfile( CString sProfileDir, CString sName )
|
|||||||
{
|
{
|
||||||
bool bResult;
|
bool bResult;
|
||||||
|
|
||||||
CreateDirectories( sProfileDir );
|
|
||||||
|
|
||||||
Profile pro;
|
Profile pro;
|
||||||
pro.m_sName = sName;
|
pro.m_sName = sName;
|
||||||
bResult = pro.SaveToIni( sProfileDir + PROFILE_FILE );
|
bResult = pro.SaveToIni( sProfileDir + PROFILE_FILE );
|
||||||
@@ -272,13 +270,10 @@ bool ProfileManager::CreateMachineProfile( CString sName )
|
|||||||
return false;
|
return false;
|
||||||
sProfileDir += SLASH;
|
sProfileDir += SLASH;
|
||||||
|
|
||||||
bool bResult;
|
|
||||||
bResult = CreateDirectories( sProfileDir );
|
|
||||||
if( !bResult )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
Profile pro;
|
Profile pro;
|
||||||
pro.m_sName = sName;
|
pro.m_sName = sName;
|
||||||
|
|
||||||
|
bool bResult;
|
||||||
bResult = pro.SaveToIni( sProfileDir + PROFILE_FILE );
|
bResult = pro.SaveToIni( sProfileDir + PROFILE_FILE );
|
||||||
if( !bResult )
|
if( !bResult )
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ SongCacheIndex *SONGINDEX;
|
|||||||
|
|
||||||
SongCacheIndex::SongCacheIndex()
|
SongCacheIndex::SongCacheIndex()
|
||||||
{
|
{
|
||||||
CreateDirectories( CACHE_DIR "Songs" );
|
|
||||||
CacheIndex.SetPath( CACHE_DIR "index.cache" );
|
CacheIndex.SetPath( CACHE_DIR "index.cache" );
|
||||||
ReadCacheIndex();
|
ReadCacheIndex();
|
||||||
}
|
}
|
||||||
@@ -33,6 +32,7 @@ static void EmptyDir( CString dir )
|
|||||||
ASSERT(dir[dir.size()-1] == '/');
|
ASSERT(dir[dir.size()-1] == '/');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* XXX RageFile */
|
||||||
CStringArray asCacheFileNames;
|
CStringArray asCacheFileNames;
|
||||||
GetDirListing( dir, asCacheFileNames );
|
GetDirListing( dir, asCacheFileNames );
|
||||||
for( unsigned i=0; i<asCacheFileNames.size(); i++ )
|
for( unsigned i=0; i<asCacheFileNames.size(); i++ )
|
||||||
|
|||||||
Reference in New Issue
Block a user