From 6b4e62004ae435561bb02eb12521b89f22e90f64 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 17 May 2013 08:52:16 +0300 Subject: NEVERHOOD: Add detection for Russian version. Requires more work --- engines/neverhood/detection.cpp | 34 ++++++++++++++++++++++++++++++++++ engines/neverhood/neverhood.cpp | 4 ++++ 2 files changed, 38 insertions(+) (limited to 'engines/neverhood') diff --git a/engines/neverhood/detection.cpp b/engines/neverhood/detection.cpp index 4f70c63299..5f860f8519 100644 --- a/engines/neverhood/detection.cpp +++ b/engines/neverhood/detection.cpp @@ -104,6 +104,40 @@ static const NeverhoodGameDescription gameDescriptions[] = { 0, }, + { + // Neverhood Russian version. Dyadyushka Risech + { + "neverhood", + "DR", + AD_ENTRY1s("hd.blb", "787951bf094aad9962291e69a707bdde", 4248635), + Common::RU_RUS, + Common::kPlatformWindows, + ADGF_NO_FLAGS, + GUIO1(GUIO_NONE) + }, + 0, + 0, + 0, + 0, + }, + + { + // Neverhood Russian version. Fargus + { + "neverhood", + "Fargus", + AD_ENTRY1s("hd.blb", "c87c69db423f560d3708e9de78751a7f", 4425816), + Common::RU_RUS, + Common::kPlatformWindows, + ADGF_NO_FLAGS, + GUIO1(GUIO_NONE) + }, + 0, + 0, + 0, + 0, + }, + { AD_TABLE_END_MARKER, 0, 0, 0, 0 } }; diff --git a/engines/neverhood/neverhood.cpp b/engines/neverhood/neverhood.cpp index 475a459df4..42fe1176b4 100644 --- a/engines/neverhood/neverhood.cpp +++ b/engines/neverhood/neverhood.cpp @@ -59,6 +59,10 @@ NeverhoodEngine::~NeverhoodEngine() { Common::Error NeverhoodEngine::run() { initGraphics(640, 480, true); + const Common::FSNode gameDataDir(ConfMan.get("path")); + + SearchMan.addSubDirectoryMatching(gameDataDir, "data"); + _isSaveAllowed = false; _mouseX = 0; -- cgit v1.2.3