=== cheat3.c ===
- Refined "prestate" on cheat entry. It is checked in loading a cheat from a file then gives some actions for this entry.
'skip' : skip loading the entry, 'on' : pre-enable automatically (for toggle code), '<itemname>' : select target item then pre-enable automatically (for item selection code)
Sample
Code:
<cheat desc="test" prestate="skip">
...
</cheat>
'skip' means no loading the entry into the cheat main list. If a code has some error, other (no problem) codes will load after set and skip it for error code.
Sample
Code:
<cheat desc="test" prestate="on">
<script state="on">
...
</script>
</cheat>
'on' for toggle code means auto enabled this code automatically after loaded this entry.
Sample
Code:
<cheat desc="test" prestate="Item 2">
<parameter maxparams="4">
<item value0="00" value1="02" value2="FF" value3="80">Item 1</item>
<item value0="10" value1="22" value2="EF" value3="7F">Item 2</item>
<item value0="20" value1="22" value2="EF" value3="00">Item 3</item>
...
</parameter>
<script state="on">
...
</script>
</cheat>
'<itemname>' means auto selected <itemname> then execute script automatically after loaded this entry.
In selection type code, 'on' is treated as the error though.
[ATTACHED IMAGE - CLICK FOR FULL SIZE]
"Any company has no power to stop people emulating"
MAME is the emulator of no giving in the pressure from any company even if they don't allow
Edited by ShimaPong (12/29/10 02:45 PM)