diff options
author | Travis Howell | 2008-12-13 07:38:37 +0000 |
---|---|---|
committer | Travis Howell | 2008-12-13 07:38:37 +0000 |
commit | c2daf686d6fc207c8bce04674a006619e742749a (patch) | |
tree | 2616388b8df33c5fc2b5219bc64aab697f7b4180 /engines/agos/string.cpp | |
parent | 3c86a24d7070cc18739cb51c8be49011072aa036 (diff) | |
download | scummvm-rg350-c2daf686d6fc207c8bce04674a006619e742749a.tar.gz scummvm-rg350-c2daf686d6fc207c8bce04674a006619e742749a.tar.bz2 scummvm-rg350-c2daf686d6fc207c8bce04674a006619e742749a.zip |
Add upper case code for oe1_pcName() in Elvira 1/2.
svn-id: r35330
Diffstat (limited to 'engines/agos/string.cpp')
-rw-r--r-- | engines/agos/string.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp index 84bcbf5d28..d83a885d40 100644 --- a/engines/agos/string.cpp +++ b/engines/agos/string.cpp @@ -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; } |