MAMEWorld >> News
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

ShimaPong
MAME Fan
Reged: 03/12/05
Posts: 783
Send PM
Re: MAME 0.140u3
12/29/10 02:44 PM Attachment: Rumba.png 73 KB (0 downloads)


=== 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]

Attachment


"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)







Entire thread
Subject Posted by Posted on
* MAME 0.140u3 abelenki 12/23/10 02:24 PM
. * Re: MAME 0.140u3 Trebor  12/30/10 12:26 AM
. * Re: MAME 0.140u3 ShimaPong  12/29/10 02:44 PM
. * Re: MAME 0.140u3 ShimaPong  12/26/10 03:43 PM
. * Re: MAME 0.140u3 F1ReB4LL  12/25/10 01:23 AM
. * Re: MAME 0.140u3 TafoidAdministrator  12/25/10 01:46 AM
. * Re: MAME 0.140u3 ShimaPong  12/24/10 03:49 PM
. * Re: MAME 0.140u3 twistyAdministrator  12/24/10 08:16 PM
. * Re: MAME 0.140u3 T-2000  12/24/10 11:08 PM
. * Re: MAME 0.140u3 hap  12/24/10 11:44 PM
. * Re: MAME 0.140u3 T-2000  12/27/10 01:54 PM
. * Re: MAME 0.140u3 etabeta  12/27/10 02:44 PM
. * Re: MAME 0.140u3 T-2000  12/28/10 01:01 AM
. * Re: MAME 0.140u3 gregf  12/24/10 11:35 PM
. * Re: MAME 0.140u3 Pugsy  12/24/10 06:09 PM
. * Re: MAME 0.140u3 CrapBoardSoftware  12/24/10 06:30 PM
. * Re: MAME 0.140u3 Pugsy  12/24/10 05:29 PM
. * Re: MAME 0.140u3 CrapBoardSoftware  12/24/10 04:27 PM
. * Samples twistyAdministrator  12/24/10 11:23 AM
. * [segas16b] Bullet - still crashes on the same spot (2 stage) -nt- sjyune  12/24/10 03:38 AM
. * Re: yes, it's known and fixed for 0.141 -nt- TafoidAdministrator  12/24/10 03:44 AM
. * Re: MAME 0.140u3 ranger_lennier  12/24/10 01:52 AM
. * Re: MAME 0.140u3 ranger_lennier  12/24/10 01:42 AM
. * Re: MAME 0.140u3 gregf  12/24/10 11:50 PM
. * Re: MAME 0.140u3 Moose  12/24/10 01:34 PM
. * mame0140u3b redk9258  12/23/10 06:38 PM
. * mame0140u3b_64bit redk9258  12/23/10 06:28 PM
. * thanks Red!! (nt) Jason  12/23/10 07:19 PM
. * Re: thanks Red!! (nt) redk9258  12/23/10 07:20 PM
. * 63701 mcu hammad  12/23/10 07:23 PM
. * Re: MAME 0.140u3 AeroCityMayor  12/23/10 04:26 PM
. * Re: MAME 0.140u3 CrapBoardSoftware  12/23/10 04:13 PM

Extra information Permissions
Moderator:  John IV, Robbbert, Tafoid 
0 registered and 14 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 5711