DRASCULA: Added support for Russian fan translation

This commit is contained in:
Eugene Sandulenko 2018-02-21 22:04:08 +01:00
parent 3e26edfb59
commit 59905eee0d
7 changed files with 1133 additions and 5 deletions

View file

@ -35,7 +35,7 @@
#include "create_drascula.h"
#include "staticdata.h"
#define DRASCULA_DAT_VER 5 // 1 byte
#define DRASCULA_DAT_VER 6 // 1 byte
static void writeByte(FILE *fp, uint8 b) {
fwrite(&b, 1, 1, fp);

View file

@ -27,7 +27,7 @@
#define DATAALIGNMENT 4
#define NUM_LANGS 5
#define NUM_LANGS 6
#define NUM_TEXT 501
#define NUM_TEXTD 84
#define NUM_TEXTB 15

File diff suppressed because it is too large Load diff

Binary file not shown.

View file

@ -202,6 +202,23 @@ static const DrasculaGameDescription gameDescriptions[] = {
},
},
{
// Drascula Russian version (ScummVM repacked files)
{
"drascula",
0,
{
{"packet.001", 0, "c6a8697396e213a18472542d5f547cb4", 32847563},
{"packet.006", 1, "e464b99de7f226391337510d5c328258", 697173},
{NULL, 0, NULL, 0}
},
Common::RU_RUS,
Common::kPlatformDOS,
GF_PACKED,
GUIO1(GUIO_LINKSPEECHTOSFX)
},
},
//// Unpacked versions ////////////////////////////////////////////////////
{
@ -294,6 +311,18 @@ static const DrasculaGameDescription gameDescriptions[] = {
GUIO1(GUIO_LINKSPEECHTOSFX)
},
},
{
// Drascula Russian version
{
"drascula",
0,
AD_ENTRY1s("14.ald", "4dfab170eae935a2e9889196df427a4a", 1426),
Common::RU_RUS,
Common::kPlatformDOS,
ADGF_NO_FLAGS,
GUIO1(GUIO_LINKSPEECHTOSFX)
},
},
{ AD_TABLE_END_MARKER }
};

View file

@ -246,6 +246,9 @@ Common::Error DrasculaEngine::run() {
case Common::IT_ITA:
_lang = kItalian;
break;
case Common::RU_RUS:
_lang = kRussian;
break;
default:
warning("Unknown game language. Falling back to English");
_lang = kEnglish;

View file

@ -54,7 +54,7 @@
*/
namespace Drascula {
#define DRASCULA_DAT_VER 5
#define DRASCULA_DAT_VER 6
#define DATAALIGNMENT 4
enum DrasculaGameFeatures {
@ -66,7 +66,8 @@ enum Languages {
kSpanish = 1,
kGerman = 2,
kFrench = 3,
kItalian = 4
kItalian = 4,
kRussian = 5
};
enum Verbs {