GetStringVA fix for "%%"s

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1734 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY 2009-01-02 15:11:17 +00:00
parent a2a5d0a066
commit 2e0269ae39
1 changed files with 6 additions and 0 deletions

View File

@ -82,12 +82,18 @@ void GetStringVA(std::string& _rOutBuffer)
//PanicAlert("Invalid GetStringVA call");
return;
}
while(*pString)
{
if (*pString == '%')
{
char* pArgument = ArgumentBuffer;
*pArgument++ = *pString++;
if(*pString == '%') {
_rOutBuffer += "%";
pString++;
continue;
}
while(*pString < 'A' || *pString > 'z' || *pString == 'l' || *pString == '-')
*pArgument++ = *pString++;