diff options
author | Filippos Karapetis | 2017-03-22 04:07:33 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-03-22 04:07:33 +0200 |
commit | 728b23af2ad939e3da920a41b85730689a1aa71f (patch) | |
tree | cd083a2f12d5fb3371e9e7d50fb8bf451295d2ff /engines/fullpipe/utils.cpp | |
parent | 93e93b56405cc395e723cd43e7ed0008173eab18 (diff) | |
download | scummvm-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.cpp | 5 |
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 |