Closed bentley closed 8 years ago
Does this commit fix it? -> 4be1c8fa2764fdebeed1433bfd164f63248c4cd1
That does fix the crash. Thanks!
The emulator still doesn’t work, failing with “LCD::Error - Could not initialize SDL”. This is because SDL2’s haptic support doesn’t work on OpenBSD; SDL_INIT_ALL
tries to pull in the haptic support, and fails. Replacing SDL_INIT_ALL
with SDL_INIT_TIMER|SDL_INIT_AUDIO|SDL_INIT_VIDEO|SDL_INIT_EVENTS
(like this commit) allows the emulator to run on OpenBSD.
I think it would be better to have each component initialize the subsystems they need (e.g. GamePad initializes joysticks + haptics, APU initializes audio, LCD inits video (and events by that extension). That way, failure is reported appropriately by the failing component. Having the LCD init everything was kind of a hack I never got around to correcting. So, I was being lazy, and SDL 1.2 would let me get away with it :P
Does this commit fix it? -> 7e65cbec66ea3d66493799b1843716ac3fcf
Yep, works for me.
Great! Thanks a lot for the detailed report (that backtrace made it 100x easier to pinpoint the crash). I'll mark this as closed then.
Tested on an OpenBSD 6.0 snapshot.