aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-11-14 04:05:48 +0100
committerEugene Sandulenko2017-11-14 04:07:11 +0100
commit327dcf98ec7ec520bba5319087affa693d91c87d (patch)
tree1b81cbed97adb3c9853c0bc462ac7be7e36a058b
parent2ab66e7803730c7236aae19d9c48460ee0bd7cff (diff)
downloadscummvm-rg350-327dcf98ec7ec520bba5319087affa693d91c87d.tar.gz
scummvm-rg350-327dcf98ec7ec520bba5319087affa693d91c87d.tar.bz2
scummvm-rg350-327dcf98ec7ec520bba5319087affa693d91c87d.zip
DRASCULA: Make remaining static texts translatable
drascula.dat file version bumped
-rw-r--r--devtools/create_drascula/create_drascula.cpp2
-rw-r--r--devtools/create_drascula/create_drascula.h2
-rw-r--r--devtools/create_drascula/staticdata.h20
-rw-r--r--dists/engine-data/drascula.datbin219267 -> 219527 bytes
-rw-r--r--engines/drascula/animation.cpp2
-rw-r--r--engines/drascula/drascula.h2
-rw-r--r--engines/drascula/objects.cpp2
-rw-r--r--engines/drascula/rooms.cpp2
-rw-r--r--engines/drascula/talk.cpp2
9 files changed, 27 insertions, 7 deletions
diff --git a/devtools/create_drascula/create_drascula.cpp b/devtools/create_drascula/create_drascula.cpp
index 2ed7e4fb4c..4afec21e4a 100644
--- a/devtools/create_drascula/create_drascula.cpp
+++ b/devtools/create_drascula/create_drascula.cpp
@@ -35,7 +35,7 @@
#include "create_drascula.h"
#include "staticdata.h"
-#define DRASCULA_DAT_VER 4 // 1 byte
+#define DRASCULA_DAT_VER 5 // 1 byte
static void writeByte(FILE *fp, uint8 b) {
fwrite(&b, 1, 1, fp);
diff --git a/devtools/create_drascula/create_drascula.h b/devtools/create_drascula/create_drascula.h
index 82abdceacb..6248245042 100644
--- a/devtools/create_drascula/create_drascula.h
+++ b/devtools/create_drascula/create_drascula.h
@@ -41,7 +41,7 @@
#define NUM_TEXTSYS 4
#define NUM_TEXTHIS 5
#define NUM_TEXTVERBS 6
-#define NUM_TEXTMISC 3
+#define NUM_TEXTMISC 7
#define NUM_TEXTD1 11
typedef unsigned char uint8;
diff --git a/devtools/create_drascula/staticdata.h b/devtools/create_drascula/staticdata.h
index 7cafe58703..2efca35734 100644
--- a/devtools/create_drascula/staticdata.h
+++ b/devtools/create_drascula/staticdata.h
@@ -6194,26 +6194,46 @@ const char *_textmisc[NUM_LANGS][NUM_TEXTMISC] = {
"HUNCHBACKED",
"Transilvania, 1993 d.c.",
"GOOOOOOOAAAAAAAL!",
+ "hacker",
+ "yoda",
+ "igor",
+ "groaaarrrrgghhhh!",
},
{
"jorobado",
"Transilvania, 1993 d.c. (despues de cenar)",
"GOOOOOOOOOOOOOOOL",
+ "hacker",
+ "yoda",
+ "igor",
+ "groaaarrrrgghhhh!",
},
{
"HUNCHBACKED",
"Transilvania, 1993 d.c.",
"GOOOOOOOAAAAAAAL!",
+ "hacker",
+ "yoda",
+ "igor",
+ "groaaarrrrgghhhh!",
},
{
"BOSSU",
"Transilvania, 1993 d.c.",
"GOOOOOOOAAAAAAAL!",
+ "hacker",
+ "yoda",
+ "igor",
+ "groaaarrrrgghhhh!",
},
{
"GOBBO",
"Transilvania, 1993 d.c. (dopo cena)",
"GOOOOOOOOOOOOOOOL!",
+ "hacker",
+ "yoda",
+ "igor",
+ "groaaarrrrgghhhh!",
},
};
diff --git a/dists/engine-data/drascula.dat b/dists/engine-data/drascula.dat
index e2b046a527..6346c523a1 100644
--- a/dists/engine-data/drascula.dat
+++ b/dists/engine-data/drascula.dat
Binary files differ
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp
index cb8329236e..c89e5ff738 100644
--- a/engines/drascula/animation.cpp
+++ b/engines/drascula/animation.cpp
@@ -2080,7 +2080,7 @@ void DrasculaEngine::animation_1_4() {
debug(4, "animation_1_4()");
if (flags[21] == 0) {
- strcpy(objName[2], "igor");
+ strcpy(objName[2], _textmisc[5]); // "igor"
talk(275);
updateRefresh_pre();
diff --git a/engines/drascula/drascula.h b/engines/drascula/drascula.h
index fa96fb5e5a..a7eadcd069 100644
--- a/engines/drascula/drascula.h
+++ b/engines/drascula/drascula.h
@@ -54,7 +54,7 @@
*/
namespace Drascula {
-#define DRASCULA_DAT_VER 4
+#define DRASCULA_DAT_VER 5
#define DATAALIGNMENT 4
enum DrasculaGameFeatures {
diff --git a/engines/drascula/objects.cpp b/engines/drascula/objects.cpp
index 2a24e02a40..65c042a9fe 100644
--- a/engines/drascula/objects.cpp
+++ b/engines/drascula/objects.cpp
@@ -111,7 +111,7 @@ void DrasculaEngine::checkObjects() {
if (_mouseX > curX + 2 && _mouseY > curY + 2
&& _mouseX < curX + curWidth - 2 && _mouseY < curY + curHeight - 2) {
if (currentChapter == 2 || !_hasName) {
- strcpy(textName, "hacker");
+ strcpy(textName, _textmisc[3]); // "hacker"
_hasName = true;
}
}
diff --git a/engines/drascula/rooms.cpp b/engines/drascula/rooms.cpp
index b8dc51e6b5..f99f00c8e7 100644
--- a/engines/drascula/rooms.cpp
+++ b/engines/drascula/rooms.cpp
@@ -404,7 +404,7 @@ bool DrasculaEngine::room_13(int fl) {
talk(411);
trackProtagonist = 3;
talk(412);
- strcpy(objName[1], "yoda");
+ strcpy(objName[1], _textmisc[4]); // "yoda"
} else if (pickedObject == kVerbTalk && fl == 51) {
converse(7);
} else if (pickedObject == 19 && fl == 51) {
diff --git a/engines/drascula/talk.cpp b/engines/drascula/talk.cpp
index aa79dab148..7ae06c9cf8 100644
--- a/engines/drascula/talk.cpp
+++ b/engines/drascula/talk.cpp
@@ -973,7 +973,7 @@ void DrasculaEngine::grr() {
copyBackground(253, 110, 150, 65, 20, 30, drawSurface3, screenSurface);
if (!_subtitlesDisabled)
- centerText("groaaarrrrgghhhh!", 153, 65);
+ centerText(_textmisc[6], 153, 65); // "groaaarrrrgghhhh!"
updateScreen();