Skip to content

roberts126/libretro-chtfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Libretro Cheat Fix

Parses and fixes multiline libretro cheat files.

Example:

The following

cheat0_desc = "Infinite Lives"
cheat0_code = "AAAAAA+BBBBBB"
cheat0_enable = true

Becomes

cheat0_desc = "Infinite Lives"
cheat0_code = "AAAAAA"
cheat0_enable = true

cheat1_desc = "Infinite Lives"
cheat1_code = "AAAAAA"
cheat1_enable = true

Getting Started

Installing from source

Download and install golang. Clone into your $GOPATH/src directory. Run go build in the libretro-chtfix directory.

Binaries

Download a binary for your system.

Symlink or add $GOPATH/src/libretro-chtfix or the binary to your $PATH variable. Run libretro-chtfix -in=/path/to/cheat/file.cht

CLI Options: in: A single file to parse and fix. out: Optional output file name. Defaults to the file specified using the in paramater with _fixed added to the end of the file name. dir: Will scan and parse all cheat files in a directory.

You must supply either in or dir

Prerequisites

Golang > 1.8

License

This project is licensed under the MIT License - see the LICENSE.md file for details