Recomp Achievements: an achievement library for recompiled games
A C library that lets recompiled games report achievements to RecompLauncher, currently in alpha.
Recomp Achievements is a C library that lets recompiled games report achievements to RecompLauncher, which runs them on PC. It is in alpha with testers.
Players earn achievements as they play and climb leaderboards. A recomp reports unlocks through three methods. Native passes an Xbox 360 game achievements through the runtime. Memory checks rules against console RAM every frame, and the launcher hosts those rules so fixes reach players without a new recomp build. Events map a named call in code, such as beat_final_boss, to an achievement for decomps and source ports.
Unlocks count on leaderboards when they happen live in a session seen by the launcher. Copied saves, cheats and save states record as Casual. Completing every offline achievement marks the game as Mastered, with values set to 5, 10, 25 or 50 points.
To integrate it into a build:
- Include
rl_achievements.hand callrl_ach_initat startup. - Call
rl_ach_frameonce per frame from a VI or vblank hook. - Add
rl_ach_native,rl_ach_eventorrl_ach_save_loadedas needed.
The library uses C99 without outside dependencies and is free to use for any game.