octopt
is a library for handling CHIP-8 configuration settings.
CHIP-8 is a virtual machine for playing simple computer games written in interpreted bytecode. It has been around since 1977, and has many slightly incompatible implementations.
CHIP-8 games often require specific behavior from its interpreter to run correctly, but since it's impossible to know what behavior it expects just by looking at the game's bytecode, additional metadata is required to instruct the interpreter how to run the game. This metadata can come in the form of JSON – as is the case with Octocarts (see decart
) and the CHIP-8 Community Archive – or an INI file, as is the case for C-Octo.
This library contains Rust data structures that represent all possible CHIP-8 options. It can also serialize and deserialize these structures into the standard JSON and INI formats.