KYRA: Don't require the Mac version of Legend of Kyrandia to be installed #3552
The Macintosh version of The Legend of Kyrandia that I have is a non-talkie version distributed on CD. This version is supported now that arthxx added a music driver for it.
Annoyingly though, the game data files aren't unpacked on the CD. Instead, everything is inside a self-extracting StuffIt installer. This means that in order to play the game in ScummVM, you have to install the game (probably using a Mac emulator) and then copy the files from the emulated hard disk. Not the smooth kind of experience we want people to have.
This is my attempt at adding support for playing the game directly from the files on the CD, without having to go through the installation process. This is the first time I've worked with the Archive class, but hopefully I got it right.
Obviously it needs more testing. I've only tried it a little bit past the intro. But it appears to work.
The text was updated successfully, but these errors were encountered:
I will have to look out for memory leaks later.
This fixes a Valgrind warning on exit, I believe.
That's the last bit of cleanup that I've been meaning to make. I'll try to give it a bit of testing (at least up to entering Timbermist Wood) tomorrow. If that works, it's probably good enough to merge. (According to arthxx, "If it starts up fine with sound it should actually be okay. There isn't really anything happening with regard to resource management afterwards.")
(replace my own ugly code from a7918a49)