Skip to content

Update atari800 core from 3.1.0 to 5.2.0#123

Open
WizzardSK wants to merge 1 commit intolibretro:masterfrom
WizzardSK:update-atari800-5.2.0
Open

Update atari800 core from 3.1.0 to 5.2.0#123
WizzardSK wants to merge 1 commit intolibretro:masterfrom
WizzardSK:update-atari800-5.2.0

Conversation

@WizzardSK
Copy link
Copy Markdown

@WizzardSK WizzardSK commented Mar 19, 2026

Summary

  • Replace atari800/src/ with standalone atari800 5.2.0 source (from 3.1.0)
  • Re-apply all libretro-specific patches (state save, sound, input, UI, config)
  • Fix crash when TV mode changes before sound initialization (guard POKEYSND_Init against Sound_out.freq==0)

Changes

  • New files: cartridge_info.c/h, file_export.c/h, altirra_5200_charset.c, codecs/, libatari800/, pokeyrec.c/h
  • Removed: emuos.c/h (replaced by EMUOS_ALTIRRA), sndsave.c/h
  • Config: PACKAGE_VERSION 3.1.0 → 5.2.0, added EMUOS_ALTIRRA=1

Replace atari800/src with standalone atari800 5.2.0 source and re-apply
all libretro-specific patches:

- State save/load via memory stream (Retro_SaveAtariState/ReadAtariState)
- Per-subsystem Retro_*_StateSave/StateRead functions
- ROM directory search (retro_system_directory)
- Config file handling (legacy_configuration_file)
- co_switch in Atari800_Sync for libretro coroutine model
- Analog joystick (Atari_POT) and digital 5200 sensitivity
- Stereo sound defaults and POKEYSND_stereo_enabled
- UI menu cleanup (remove screenshot/monitor/exit items)
- CRC-based cart hash detection in AFILE_DetectFileType
- path_mkdir for libretro directory creation

Build system changes:
- Add cartridge_info.c, file_export.c, altirra_5200_charset.c
- Remove emuos.c (replaced by EMUOS_ALTIRRA define), sndsave.c

Config changes:
- PACKAGE_VERSION: 3.1.0 → 5.2.0
- Add EMUOS_ALTIRRA=1 for built-in AltirraOS ROMs

Bug fix:
- Guard POKEYSND_Init in Atari800_SetTVMode against Sound_out.freq==0
  to prevent crash when TV mode changes before sound is initialized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant