I was noticing that in the SCI0 template game header, we have this:
// open or fail: Try to open file, abort if not possible
(define fOPENFAIL 0)
// open or create: Try to open file, create it if it doesn't exist
(define fOPENCREATE 1)
I believe these are flipped around though (looking at the ScummVM source code - which appears to use the same values for FOpen() (SCI0), and FileIO(fiOPEN ...) (SCI1.1)). "open fail" should be 1, and "open create" should be 0. I'm wary of changing them, since it would break anyone who is using them. Has anyone encountered this? I don't think file handling is something that is done very frequently... sciaudio only uses fCREATE (which is 2), it looks like.
I will make the corrections for SCI1.1 though.