Remove static buffers from StringHelpers to prevent overwriting strings from another thread.
This commit is contained in:
parent
3f7745b262
commit
5d459c0ff9
15 changed files with 68 additions and 55 deletions
|
|
@ -1400,7 +1400,7 @@ BufferedImage *Textures::readImage(TEXTURE_NAME texId, const wstring& name) // 4
|
|||
}
|
||||
else
|
||||
{
|
||||
const char *pchName=wstringtofilename(name);
|
||||
std::string pchName=wstringtofilename(name);
|
||||
#ifdef __PS3__
|
||||
if(app.GetBootedFromDiscPatch() && app.IsFileInPatchList(pchName))
|
||||
{
|
||||
|
|
@ -1423,7 +1423,7 @@ BufferedImage *Textures::readImage(TEXTURE_NAME texId, const wstring& name) // 4
|
|||
drive = skins->getDefault()->getPath(isTu);
|
||||
}
|
||||
|
||||
const char *pchDrive=wstringtofilename(drive);
|
||||
std::string pchDrive=wstringtofilename(drive);
|
||||
|
||||
if(IsOriginalImage(texId, name) || isTu)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue