package
Bundled game-code/cheat database for romdev - a pre-parsed per-platform labeled RAM/code map (libretro-database lineage), lazy-loaded one platform at a time.
npm install romdev_game_codesGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
28.7 MB
Includes dependencies.
The bundled game-code / cheat database for
romdev, split into its own package so the
main romdevtools package stays small and the database can grow and version
independently.
It is a data package - no runtime logic of its own beyond a tiny lazy
loader. romdevtools depends on it, resolves it at run time and reads one
platform's index at a time (never the whole database into memory). It backs
romdevtools' cheats({op:'lookup'}).
index/<platform>.json - one compact name → entries map per platform. Each
entry is { desc, code, parts } where code is the raw RetroArch cheat code
(applied to the core verbatim) and parts is the decoded address/value/kind for
inspection.
Platforms are limited to those romdev supports and that the RetroArch/RetroDECK community cheats tree actually carries:
| Platform | id |
|---|---|
| NES | nes |
| Game Boy / Color | gb, gbc |
| Game Boy Advance | gba |
| SNES | snes |
| Sega Genesis / Mega Drive | genesis |
| Sega Master System | sms |
| Sega Game Gear | gg |
| Atari 2600 / 7800 | atari2600, atari7800 |
| Atari Lynx | lynx |
| PC Engine / TurboGrafx-16 | pce |
| MSX |
(C64 has no entry: the community cheats tree ships no Commodore-64 cheat folder.
Raw ADDR:VAL pokes made with cheats({op:'make'}) still work on C64 in
romdev.)
import { loadPlatformIndex, hasPlatform, listPlatforms, indexDir } from "romdev_game_codes";
if (hasPlatform("genesis")) {
const idx = await loadPlatformIndex("genesis"); // { platform, source, gameCount, games }
}
listPlatforms(); // ["atari2600","atari7800","gb","gba",...]Cheat codes are community-aggregated data from the libretro-database / RetroArch
cheats lineage (originally Game Genie code books and GameHacking.org). The index
here is pre-parsed (decoded and compacted) by
packages/romdevtools/scripts/build-cheat-index.mjs in the romdev repo rather
than a redistribution of the raw .cht tree.
msx