resource extension patch
|Reported by:||SF/japj||Owned by:|
Some games (sam & max demo) have an additional
extension to the resource files (SM for Sam & Max, LA
for Full Throttle). This means the generic resource
open code that tries to open .000/.001 files fails
because those files do not exist.
The attached patch fixes this by adding an additional
field to the version detection code (resExt - resource
extension). When this field is set (!=0) it contains a
string that should be appended to the _exe_name
(together with an 'appropriate' room number). This
results in the resource filenames SNMDEMO.SM0 and
SNMDEMO.SM1 wich allows the sam & max demo to run
correctly without renaming the files to .000 and .001
care should be taken when applying this patch since it
does not incorporate the DOTTDEMO version info yet
(could result in a conflict with the other patch
present in the patch manager).
Ticket imported from: #479274. Ticket imported from: patches/7.