mirror of https://github.com/axmolengine/axmol.git
fixed #261 Fix a bug of function SoundPlayer::PlaySoundFromMem().
This commit is contained in:
parent
b8b5c2e8cd
commit
9af3d2874d
|
@ -77,7 +77,9 @@ void SoundPlayer::PlaySoundFromMem(UInt8* pData, Int32 nSize, const char* FileNa
|
|||
}
|
||||
else
|
||||
{
|
||||
TUString::StrGBToUnicode(m_fileName, (const Char*)(FileName));
|
||||
std::string strTemp = FileName;
|
||||
std::string strFileName = strTemp.substr(strTemp.rfind('/') + 1);
|
||||
TUString::StrGBToUnicode(m_fileName, (const Char*)(strFileName.c_str()));
|
||||
}
|
||||
|
||||
m_pMediaFile->SetName(m_fileName);
|
||||
|
|
Loading…
Reference in New Issue