aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/utils.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2017-03-22 04:07:33 +0200
committerFilippos Karapetis2017-03-22 04:07:33 +0200
commit728b23af2ad939e3da920a41b85730689a1aa71f (patch)
treecd083a2f12d5fb3371e9e7d50fb8bf451295d2ff /engines/fullpipe/utils.cpp
parent93e93b56405cc395e723cd43e7ed0008173eab18 (diff)
downloadscummvm-rg350-728b23af2ad939e3da920a41b85730689a1aa71f.tar.gz
scummvm-rg350-728b23af2ad939e3da920a41b85730689a1aa71f.tar.bz2
scummvm-rg350-728b23af2ad939e3da920a41b85730689a1aa71f.zip
FULLPIPE: Change transCyrillic() to accept a Common::String
Diffstat (limited to 'engines/fullpipe/utils.cpp')
-rw-r--r--engines/fullpipe/utils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index f58249c04e..d06354cb91 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -104,7 +104,7 @@ char *MfcArchive::readPascalString(bool twoByte) {
tmp = (char *)calloc(len + 1, 1);
read(tmp, len);
- debugC(9, kDebugLoading, "readPascalString: %d <%s>", len, transCyrillic((byte *)tmp));
+ debugC(9, kDebugLoading, "readPascalString: %d <%s>", len, transCyrillic(tmp));
return tmp;
}
@@ -498,7 +498,8 @@ char *genFileName(int superId, int sceneId, const char *ext) {
}
// Translates cp-1251..utf-8
-byte *transCyrillic(byte *s) {
+byte *transCyrillic(Common::String str) {
+ byte *s = (byte *)str.c_str();
static byte tmp[1024];
#ifndef WIN32