rom loader: return error rather than dying
commit7bcebc692d2e12f1667ccb2afbf7c82723e73420
authorrofl0r <rofl0r@users.noreply.github.com>
Mon, 21 Mar 2022 18:46:41 +0000 (21 18:46 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Tue, 22 Mar 2022 03:17:24 +0000 (22 03:17 +0000)
treeea80925e03a428b2bc9b3a64875958847be57063
parentb111a219caf12da74cad864de129b3f2d1676c2f
rom loader: return error rather than dying

it's ok to just die when loading a rom fails for a command line
app, but for an application that's running e.g. on a game console
or handheld with a menu system, it's not really tolerable.

with this change, the frontend has to check for error return code
(i.e. not 0), and then get the error message via loader_get_error()
and decide on whether to abort or just do something else (like
returning to the rom selection menu).
inflate.c
inflate.h
loader.c
loader.h
main.c