mirror of
https://github.com/ARMSX2/ARMSX3.git
synced 2026-08-24 16:58:52 -07:00
load_iso() cannot report failure: it mounts the virtual device whether or not the archive actually opened. An image that is unreadable, truncated, or encrypted without a usable disc key therefore sailed past the mount and died much further down as a generic 'invalid file or folder', with nothing in the log distinguishing it from a dozen other causes. A bug report of that failure carries no information at all. Check the mount where the reason is still knowable. An image whose filesystem did not parse now reports whether a disc key was missing or rejected -- returning decryption_error, and naming both the key locations searched -- or, failing that, says the image looks truncated. When the archive is readable but has no EBOOT.BIN at the expected path, log what the disc root did contain; install discs legitimately lack one, so that stays a warning rather than a failure. Also realign BootResult with game_boot_result. It was missing firmware_version and database_config_missing, so every code from ordinal 10 down was reported as its neighbour -- still_running surfaced as 'AlreadyAdded' -- and the last two had no entry at all, making fromInt throw rather than return. fromInt is now total. Refs #88