#!/bin/sh # Rockman cheat code generator for FCEU # This program updates the rockman.cht file of FCE Ultra. # Copyright (C) 1992,2005 Bisqwit (http://iki.fi/bisqwit/) # Stages: # 0-5 = cut,ice,bomb,fire,elec,gut # 6=wily1 # 7=wily2 (rematches) # 8=wily3 (water tunnel) # 9=wily4 # 10=elecman crap # 11=ending # 12=crash ################################################################## # Update these variables to your preference. -1 = cheat disabled stage=2 life=99 C=28 I=28 B=28 F=28 E=28 G=28 M=28 P=-1 blink=-1 ############################################ echo_p() { v=$2 [ "$2" = "-1" ] && echo -n ':' && v=255 printf '00%s:%02x:%s\n' $3 $v $1 } ( #echo_p 'completed' 255 5D echo_p 'C' $C 6B echo_p 'I' $I 6C echo_p 'B' $B 6D echo_p 'F' $F 6E echo_p 'E' $E 6F echo_p 'G' $G 70 echo_p 'M' $M 71 echo_p 'P' $P 6A echo_p 'life' $life A6 echo_p 'stage' $stage 31 echo_p 'blink' $blink 55 ) | tee ~/.fceultra/cheats/rockman.cht > ~/.fceultra/cheats/megaman1.cht