Add upper case code for oe1_pcName() in Elvira 1/2.

svn-id: r35330
This commit is contained in:
Travis Howell 2008-12-13 07:38:37 +00:00
parent 3c86a24d70
commit c2daf686d6
5 changed files with 14 additions and 10 deletions

View file

@ -32,7 +32,7 @@ using Common::File;
namespace AGOS {
const byte *AGOSEngine::getStringPtrByID(uint16 stringId) {
const byte *AGOSEngine::getStringPtrByID(uint16 stringId, bool upperCase) {
const byte *string_ptr;
byte *dst;
@ -46,6 +46,12 @@ const byte *AGOSEngine::getStringPtrByID(uint16 stringId) {
dst = _stringReturnBuffer[_freeStringSlot];
strcpy((char *)dst, (const char *)string_ptr);
if (upperCase && *dst) {
if (islower(*dst))
*dst = toupper(*dst);
}
return dst;
}