Vanfanel wrote: Sun Feb 10, 2019
I've been playing Alone in the Dark, and it hangs after some minutes playing. You have to let the full intro run, then try to play from the start with the keyboard, and you will see that the game just hangs after a while.
I'll see if I can reproduce it and will watch what it does in debug mode if I can. I've probably intruded a bug somewhere.
JonAbbott wrote: Sat Feb 09, 2019
It doesn't look like the OS always raises SeriousErrorV when an Abort occurs, so I can't currently trap aborts.
This has been confirmed, so back to the drawing board.
Thinking aloud, I'll try adding an Exit handler when
OS_FSControl 4 sees an Obey, prior to handing it off to OS SWI dispatch. That might actually work, as it can point into the Module at that point.
I've previously tried adding an Exit handler when a 26 bit task starts up, but Obey does some odd things with the Error and Exit handlers so it can clean itself up and that seems to somehow bypass any Exit handler I add. The OS also sets any handlers to default at certain points, if they're within Appspace, which is not helpful as all the environment handler shims (which allow 26bit handlers to directly call 32bit handlers - bad practice but lots of games do it) have to be with 26bit address