fix dupe texture loads (mostly harmless _blank/_black dupes, but sometimes
more)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "RageTextureID.h"
|
#include "RageTextureID.h"
|
||||||
#include "RageTextureManager.h"
|
#include "RageTextureManager.h"
|
||||||
|
#include "RageUtil.h"
|
||||||
|
|
||||||
void RageTextureID::Init()
|
void RageTextureID::Init()
|
||||||
{
|
{
|
||||||
@@ -51,3 +52,8 @@ bool RageTextureID::operator==(const RageTextureID &rhs) const
|
|||||||
// EQUAL(Policy); // don't do this
|
// EQUAL(Policy); // don't do this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RageTextureID::SetFilename( const CString &fn )
|
||||||
|
{
|
||||||
|
filename = fn;
|
||||||
|
CollapsePath( filename );
|
||||||
|
}
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ struct RageTextureID
|
|||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
RageTextureID() { Init(); }
|
RageTextureID() { Init(); }
|
||||||
RageTextureID(const CString &fn) { Init(); filename=fn; }
|
RageTextureID( const CString &fn ) { Init(); SetFilename(fn); }
|
||||||
|
void SetFilename( const CString &fn );
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user