diff --git a/stepmania/src/RageUtil_FileDB.cpp b/stepmania/src/RageUtil_FileDB.cpp index e986fe42cf..9123c52f36 100644 --- a/stepmania/src/RageUtil_FileDB.cpp +++ b/stepmania/src/RageUtil_FileDB.cpp @@ -389,6 +389,15 @@ const File *FilenameDB::GetFile( const CString &sPath ) return const_cast (&*it); } +const void *FilenameDB::GetFilePriv( const CString &path ) +{ + const File *pFile = GetFile( path ); + void *pRet = NULL; + if( pFile != NULL ) + pRet = pFile->priv; + + return pRet; +} diff --git a/stepmania/src/RageUtil_FileDB.h b/stepmania/src/RageUtil_FileDB.h index 2d8371fd85..dbe27478ae 100644 --- a/stepmania/src/RageUtil_FileDB.h +++ b/stepmania/src/RageUtil_FileDB.h @@ -93,6 +93,7 @@ public: void AddFile( const CString &sPath, int size, int hash, void *priv=NULL ); void DelFile( const CString &sPath ); const File *GetFile( const CString &path ); + const void *GetFilePriv( const CString &path ); /* This handles at most two * wildcards. If we need anything more complicated, * we'll need to use fnmatch or regex. */