don't use istring here
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
#ifndef NOTES_LOADER_H
|
||||
#define NOTES_LOADER_H
|
||||
|
||||
#include "RageUtil.h"
|
||||
#include <set>
|
||||
|
||||
class Song;
|
||||
@@ -13,11 +12,11 @@ class NotesLoader
|
||||
protected:
|
||||
virtual void GetApplicableFiles( const RString &sPath, vector<RString> &out )=0;
|
||||
|
||||
set<istring> BlacklistedImages;
|
||||
set<RString> BlacklistedImages;
|
||||
|
||||
public:
|
||||
virtual ~NotesLoader() { }
|
||||
const set<istring> &GetBlacklistedImages() const { return BlacklistedImages; }
|
||||
const set<RString> &GetBlacklistedImages() const { return BlacklistedImages; }
|
||||
static void GetMainAndSubTitlesFromFullTitle( const RString &sFullTitle, RString &sMainTitleOut, RString &sSubTitleOut );
|
||||
virtual bool LoadFromDir( const RString &sPath, Song &out ) = 0;
|
||||
virtual void TidyUpData( Song &song, bool cache ) { }
|
||||
|
||||
@@ -525,7 +525,8 @@ bool DWILoader::LoadFromDWIFile( const RString &sPath, Song &out )
|
||||
|
||||
pos = endpos + 1;
|
||||
|
||||
BlacklistedImages.insert( sub.c_str() );
|
||||
sub.ToLower();
|
||||
BlacklistedImages.insert( sub );
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -192,7 +192,7 @@ NotesLoader *Song::MakeLoader( RString sDir ) const
|
||||
|
||||
/* Hack: This should be a parameter to TidyUpData, but I don't want to
|
||||
* pull in <set> into Song.h, which is heavily used. */
|
||||
static set<istring> BlacklistedImages;
|
||||
static set<RString> BlacklistedImages;
|
||||
|
||||
/*
|
||||
* If PREFSMAN->m_bFastLoad is true, always load from cache if possible. Don't read
|
||||
@@ -641,7 +641,9 @@ void Song::TidyUpData()
|
||||
break; /* done */
|
||||
|
||||
// ignore DWI "-char" graphics
|
||||
if( BlacklistedImages.find( arrayImages[i].c_str() ) != BlacklistedImages.end() )
|
||||
RString sLower = arrayImages[i];
|
||||
sLower.ToLower();
|
||||
if( BlacklistedImages.find(sLower) != BlacklistedImages.end() )
|
||||
continue; // skip
|
||||
|
||||
// Skip any image that we've already classified
|
||||
|
||||
Reference in New Issue
Block a user