Rewrite Blorb file loading to allow for more robust file handling.
authorDavid Griffith <dave@661.org>
Tue, 1 Oct 2019 08:33:30 +0000 (01:33 -0700)
committerDavid Griffith <dave@661.org>
Wed, 2 Oct 2019 09:24:27 +0000 (02:24 -0700)
commit7473e1b8ed72ab50eb5edd29684409617dd7e319
treeb5fcf35c0b142565cef7d136d6093b5cd83faf08
parenta1a27bb42903868672068acd5d3502d3d9514f8d
Rewrite Blorb file loading to allow for more robust file handling.

Previously, the way Blorb files were opened was a bit haphazard.  This
led to segfault problems when trying to load a naked Zcode file that has
an acompanying Blorb file.  Typically the Blorb file is found in the
same directory as the Zcode file.  The segfault would occur because the
path for the Zcode file was not prepended to the generated Blorb
filename.  When I wrote Blorb support for the curses interface, I didn't
have/cause this problem.
src/sdl/sf_frotz.h
src/sdl/sf_resource.c
src/sdl/sf_sound.c
src/sdl/sf_util.c