mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
MOHAWK: Fix Myst ME Mac picture file names
This commit is contained in:
parent
8cd55a11a0
commit
d1628feb76
@ -308,16 +308,19 @@ MystGraphics::~MystGraphics() {
|
||||
delete _backBuffer;
|
||||
}
|
||||
|
||||
static const char* picFileNames[] = {
|
||||
static const char *s_picFileNames[] = {
|
||||
"CHpics",
|
||||
"",
|
||||
"",
|
||||
"DUpics",
|
||||
"INpics",
|
||||
"",
|
||||
"MEpics",
|
||||
"MYpics",
|
||||
"SEpics",
|
||||
"STpics",
|
||||
""
|
||||
"",
|
||||
"",
|
||||
"STpics"
|
||||
};
|
||||
|
||||
void MystGraphics::loadExternalPictureFile(uint16 stack) {
|
||||
@ -328,11 +331,11 @@ void MystGraphics::loadExternalPictureFile(uint16 stack) {
|
||||
_pictureFile.picFile.close();
|
||||
delete[] _pictureFile.entries;
|
||||
|
||||
if (!scumm_stricmp(picFileNames[stack], ""))
|
||||
if (!scumm_stricmp(s_picFileNames[stack], ""))
|
||||
return;
|
||||
|
||||
if (!_pictureFile.picFile.open(picFileNames[stack]))
|
||||
error ("Could not open external picture file \'%s\'", picFileNames[stack]);
|
||||
if (!_pictureFile.picFile.open(s_picFileNames[stack]))
|
||||
error ("Could not open external picture file \'%s\'", s_picFileNames[stack]);
|
||||
|
||||
_pictureFile.pictureCount = _pictureFile.picFile.readUint32BE();
|
||||
_pictureFile.entries = new PictureFile::PictureEntry[_pictureFile.pictureCount];
|
||||
|
Loading…
Reference in New Issue
Block a user