Skip to content

Releases

v0.1.3 — Authentic BIOS Boot & Cyan Screen Freeze Fix

Choose a tag to compare

@Niecks90 Niecks90 released this 19 Nov 17:17

🚨 Critical Bug Fix: Boot Freeze on 4-Bar Cyan Screen

The freeze with 4 horizontal grey bars on a cyan background shown at boot has been identified, reproduced, and completely resolved!

Root Cause

  • An inherited CLI argument (--bios-hle and GBARECOMP_BIOS_HLE=1) was instructing the engine to skip the official GBA BIOS boot sequence (bios_hle_boot_skip).
  • In Sonic Advance, skipping the official BIOS boot bypasses crucial GBA hardware, timer, and memory initialization routines, causing the game to jump straight into an uninitialized mode select state with 4 blank character/mode card containers, where input polling was completely inactive.

The Fix in v0.1.3

  1. Authentic BIOS Boot (LLE):

    • Switched from --bios-hle to --no-bios-hle and set GBARECOMP_BIOS_HLE=0.
    • The game now runs the authentic recompiled GBA BIOS, correctly initializing memory, timers, and interrupts.
    • Sonic Advance now cleanly boots through:
      1. GBA intro logo & chime
      2. SEGA logo
      3. Sonic Team logo
      4. Dimps logo
      5. Sonic Advance Title Screen (with Sonic emblem & "Press Start Button")
      6. Main Menu & Gameplay!
  2. Native Nintendo Switch libnx Controls:

    • D-Pad & Left Stick for movement
    • Physical A / X -> GBA A (Jump / Confirm)
    • Physical B / Y -> GBA B (Spin Dash / Cancel)
    • + -> Start
    • - -> Select
    • Hold + and - together to safely exit to hbmenu.
  3. Clean SD Card Commit:

    • fsdevCommitDevice("sdmc") on save flush and exit prevents SD corruption and eliminates crashes on immediate relaunch.

📦 Installation

Extract sonicadvance-nx-v0.1.3.zip to the root of your microSD card:

sdmc:/switch/sonicadvance_nx/
 ├── sonic_advance_nx.nro
 ├── rom.gba (Sonic Advance USA ROM, 8MB)
 ├── gba_bios.bin (GBA BIOS, 16KB)
 └── save/
      └── sonic_advance_usa.sav

v0.1.2 — Input Fix & SD Clean Exit Update

Choose a tag to compare

@Niecks90 Niecks90 released this 19 Nov 14:32

🐛 Bug Fixes & Changes

  1. Flash Identification & Input Polling Fix:

    • Resolved recursive dispatch in IWRAM helper when returning from IdentifyFlash (0x08098CEC).
    • IdentifyFlash now successfully detects the 512K Flash chip, preventing the game from setting Backup Error (0x03001100 |= 0x100) which previously disabled GBA input polling at boot.
    • The language selection screen now responds to input and can be navigated or confirmed.
  2. Native Nintendo Switch libnx Controller Polling:

    • Switched from SDL2 game controller mappings to direct Horizon OS padInitializeAny / padUpdate / padGetButtons.
    • Zero-latency and rock-solid input across Handheld mode, Joy-Con pairs, and Switch Pro Controllers.
    • Physical A / X -> GBA A (Jump / OK), physical B / Y -> GBA B (Roll / Cancel), L / ZL -> L, R / ZR -> R, + -> Start, - -> Select.
    • Hold + and - together to safely quit back to hbmenu.
  3. Clean SD Card Commit & Relaunch Crash Fix:

    • Added fsdevCommitDevice("sdmc") on save flushes, log writes, and application shutdown.
    • Prevents leaving FAT filesystem caches dirty, fixing the crash when immediately relaunching the NRO.
    • Gracefully resets APM CPU boost modes and worker queues on exit.
  4. Pre-Initialized Default Save Included:

    • The release archive includes a pre-initialized English save in save/sonic_advance_usa.sav, allowing the game to skip the language setup screen and boot directly into the SEGA intro and Title sequence.

📦 Installation

Extract the zip directly onto your Switch microSD card so that files are placed at:

sdmc:/switch/sonicadvance_nx/
 ├── sonic_advance_nx.nro
 ├── rom.gba (Sonic Advance USA ROM, 8MB)
 ├── gba_bios.bin (GBA BIOS, 16KB)
 └── save/
      └── sonic_advance_usa.sav (Pre-configured English save)

v0.1.1 — Boot Freeze & Clean Relaunch Fixes

Choose a tag to compare

@Niecks90 Niecks90 released this 19 Nov 12:28

🛠️ Bug Fixes & Improvements in v0.1.1

  • Fix Boot / Language Screen Freeze:

    • Added static code coverage and [[code_copy]] for the M4A sound mixer (0x03000000) and audio/task callback (0x08097150) in game.toml.
    • Added a dedicated flash stack dispatch hook (sa_flash_stack_dispatch) to intercept dynamic stack-frame execution (ldrb r0, [r0]; bx lr) with zero misses.
    • Corrected cartridge save specification from EEPROM to 512 Kbit Flash (flash512, 64 KB) matching Macronix FLASH_V126.
    • The game now advances smoothly through the initial Language selection screen directly into the intro cutscene, Sega / Sonic Team logos, and gameplay at a locked 60 FPS.
  • Fix Immediate Relaunch Crash:

    • Implemented clean shutdown of the multi-threaded PPU worker (switch_ppu_shutdown()) and SDL2 subsystems (SDL_Quit()) upon exiting via + (Start) and - (Select).
    • Horizon OS audio (audren) and display (vi/nvn) IPC sessions are fully unlinked and released, allowing immediate relaunch from hbmenu without crashing.
  • Enhanced Controller Usability:

    • Added dual Nintendo / standard mappings: both physical A / X confirm (GBA A) and B / Y jump/roll (GBA B).
    • Left Analog Stick and D-Pad both navigate menus and movement.

📦 Installation

  1. Extract sonicadvance-nx-v0.1.1.zip to the root of your microSD card (or place sonic_advance_nx.nro in sdmc:/switch/sonicadvance_nx/).
  2. Ensure your rom.gba (Sonic Advance USA) and gba_bios.bin are in sdmc:/switch/sonicadvance_nx/.
  3. Launch from Homebrew Menu in Title Override mode.

Sonic Advance NX v0.1.0

Choose a tag to compare

@Niecks90 Niecks90 released this 19 Nov 00:07

Initial public release of Sonic Advance NX, a native static recompilation port of Sonic Advance (GBA) for the Nintendo Switch.

⚡ Highlights & Features

  • Native 60 FPS AArch64 Execution: All 24,000+ Game Boy Advance routines statically recompiled directly to native 64-bit ARM machine code without CPU emulation overhead.
  • Multi-Core PPU Architecture: Background scanline and sprite rasterization running on a dedicated worker thread pinned to CPU Core 2 with vertical sprite culling and 1:1 sprite fast-path.
  • Pixel-Perfect 4:3 Display: Authentic integer scaling preserving the original 240×160 aspect ratio without distortion or uneven scaling.
  • Audio-Paced Low Latency: Smooth frame delivery paced via SDL2 audio buffers on Core 1 without scanout starvation.
  • Rear Trigger Controls: Ergonomic mapping with ZL acting as L and ZR acting as R.
  • Analog Stick & D-Pad Navigation: Full analog and digital directional control with tuned deadzones.
  • Safe Exit: Hold + (Start) and - (Select) simultaneously to quit safely back to the Homebrew Menu.
  • Isolated Saves: Game saves automatically stored in sdmc:/switch/sonicadvance_nx/save/sonic_advance_usa.sav (EEPROM 8K).
  • Custom Homebrew Icon: Dedicated high-resolution icon embedded directly into the .nro.

📦 Installation

  1. Extract sonicadvance-nx-v0.1.0.zip to the root of your microSD card (or place sonic_advance_nx.nro inside sdmc:/switch/sonicadvance_nx/).
  2. Place your legally dumped Sonic Advance GBA ROM renamed as rom.gba into sdmc:/switch/sonicadvance_nx/rom.gba:
    • Exact Size: 8,388,608 bytes (8 MB)
    • SHA-1: d842afa7dd1e84de08addb94a51506f1bcafd551
    • SHA-256: afc29e3325baf68a1822e88b25fcb59c8bdc29b8cdc48fa21c56defbd60ca020
  3. Place your official GBA BIOS dump named gba_bios.bin into sdmc:/switch/sonicadvance_nx/gba_bios.bin:
    • Exact Size: 16,384 bytes
    • SHA-1: 300c20df6731a33952ded8c436f7f186d25d3492
  4. Launch via Title Override (hold R while launching any installed game from the Switch home menu for full RAM allocation).

Legal: No copyrighted game code, assets, ROMs, or BIOS binaries are distributed with this release.