From 4c43e575b37164015bd8e080a66705fe5157f464 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sun, 24 Jan 2016 01:36:00 +0100 Subject: LAB: Fix DOS filename in speciallocks --- engines/lab/speciallocks.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/lab/speciallocks.cpp b/engines/lab/speciallocks.cpp index 6470e58641..3104d9d4dd 100644 --- a/engines/lab/speciallocks.cpp +++ b/engines/lab/speciallocks.cpp @@ -242,7 +242,12 @@ void SpecialLocks::showTileLock(const Common::String filename, bool showSolution _vm->_anim->_noPalChange = false; _vm->_graphics->blackScreen(); - Common::File *tileFile = _vm->_resource->openDataFile(showSolution ? "P:TileSolution" : "P:Tile"); + Common::File *tileFile; + if (_vm->getPlatform() == Common::kPlatformDOS) + tileFile = _vm->_resource->openDataFile(showSolution ? "P:TileSolu" : "P:Tile"); + else + // Windows and Amiga versions use TileSolution and Tile + tileFile = _vm->_resource->openDataFile(showSolution ? "P:TileSolution" : "P:Tile"); int start = showSolution ? 0 : 1; -- cgit v1.2.3