aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/staticres.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/staticres.cpp')
-rw-r--r--engines/kyra/staticres.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp
index b64f2f2b8e..1c1a17597c 100644
--- a/engines/kyra/staticres.cpp
+++ b/engines/kyra/staticres.cpp
@@ -39,7 +39,7 @@ namespace Kyra {
bool StaticResource::checkKyraDat() {
Common::File kyraDat;
- if (!kyraDat.open("KYRA.DAT"))
+ if (!kyraDat.open(StaticResource::_staticDataFile))
return false;
uint32 size = kyraDat.size() - 16;
@@ -50,7 +50,7 @@ bool StaticResource::checkKyraDat() {
kyraDat.close();
uint8 digestCalc[16];
- if (!Common::md5_file("KYRA.DAT", digestCalc, size))
+ if (!Common::md5_file(StaticResource::_staticDataFile.c_str(), digestCalc, size))
return false;
for (int i = 0; i < 16; ++i)
@@ -854,6 +854,8 @@ void KyraEngine_v1::loadMainScreen(int page) {
_screen->copyRegion(0, 0, 0, 0, 320, 200, page, 0);
}
+const Common::String StaticResource::_staticDataFile = "kyra.dat";
+
const ScreenDim Screen::_screenDimTable[] = {
{ 0x00, 0x00, 0x28, 0xC8, 0x0F, 0x0C, 0x00, 0x00 },
{ 0x08, 0x48, 0x18, 0x38, 0x0F, 0x0C, 0x00, 0x00 },