Consolidate duplicate function
This commit is contained in:
@@ -49,16 +49,6 @@
|
|||||||
|
|
||||||
RageTextureManager* TEXTUREMAN = NULL;
|
RageTextureManager* TEXTUREMAN = NULL;
|
||||||
|
|
||||||
static CString GetExtension(const CString &fn)
|
|
||||||
{
|
|
||||||
CString sDir, sFName, sExt;
|
|
||||||
splitpath( fn, sDir, sFName, sExt );
|
|
||||||
sExt.MakeLower();
|
|
||||||
|
|
||||||
return sExt;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
RageTextureManager::RageTextureManager()
|
RageTextureManager::RageTextureManager()
|
||||||
{
|
{
|
||||||
m_iNoWarnAboutOddDimensions = 0;
|
m_iNoWarnAboutOddDimensions = 0;
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ inline CString GetExtension( CString sPath )
|
|||||||
{
|
{
|
||||||
CString Dir, FName, Ext;
|
CString Dir, FName, Ext;
|
||||||
splitrelpath( sPath, Dir, FName, Ext );
|
splitrelpath( sPath, Dir, FName, Ext );
|
||||||
|
Ext.MakeLower();
|
||||||
return Ext;
|
return Ext;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user