gdtoo: file basename on json with -info-basename
fclose properly, 0 on coreio_open fail
Remove dead code
Merge pull request #501 from reicast/skmp/gdtool

Fix coreio/fclose leak, -info-basename option for gdtool