From 2e0269ae398ff9c603cb41adc463a1806021514c Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Fri, 2 Jan 2009 15:11:17 +0000 Subject: [PATCH] GetStringVA fix for "%%"s git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1734 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/HLE/HLE_OS.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Core/Src/HLE/HLE_OS.cpp b/Source/Core/Core/Src/HLE/HLE_OS.cpp index 8ad2947a95..c8937b0fa1 100644 --- a/Source/Core/Core/Src/HLE/HLE_OS.cpp +++ b/Source/Core/Core/Src/HLE/HLE_OS.cpp @@ -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++;