Locating and loading V2 resources
|Reported by:||SF/flix76||Owned by:||fingolfin|
This patch allows scummvm to locate and to load V2 resources (rooms, costumes, scripts and sounds), specified in non-blocked 00.LFL files. Indexing V2 resources is almost straightforward. The biggest part of code to implement differently is the method readIndexFile() of the appropriate scumm class. For that, a new class named Scumm_v2 has been added. For the other necessary but minor changes, the flag GIF_OLD_BUNDLE is used to test whether the current game is V1/V2 or not. I don't know, maybe there's a better flag for that.
The diff files refer to the files that I found this morning (08-28-2002) in the scummvm-new module of the CVS repository. resource_v2.cpp is a new file with the implementation of readIndexFile() for V2 games.
Ticket imported from: #601560. Ticket imported from: patches/132.