The beheviour of this is that when launching mame with a game loaded, the cheat is enabled immediately upon startup. It should apply before any rom code is executed.
These behaviour is very useful for "Skip checksum" cheats
for example, here are some skip checksum cheats that I made:
captcomm.xml
Code: Select all
<cheat desc="Skip checksum">
<script state="run">
<action>maincpu.mw@00061C=0448</action>
</script>
</cheat>
cawing.xml
Code: Select all
<cheat desc="Skip checksum">
<script state="run">
<action>maincpu.mw@000428=01bc</action>
</script>
</cheat>
Code: Select all
<cheat desc="Skip checksum">
<script state="run">
<action>maincpu.mw@607a=7e60</action>
<action>maincpu.mb@607a=7d</action>
<action>maincpu.mb@68a4=00</action>
<action>maincpu.mb@5634=00</action>
</script>
</cheat>
Thanks for your support!