Add upper case code for oe1_pcName() in Elvira 1/2.
svn-id: r35330
This commit is contained in:
parent
3c86a24d70
commit
c2daf686d6
5 changed files with 14 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue