
		.586p
GetBase		macro	Reg
		call	$+5
		pop	Reg
		sub	Reg,$-1
		endm

Code		segment	use32
		org	0

		dd	offset End_of_file
		dw	1		; Version
		dd	End_of_header   ; Size of header
		dd	offset	Selections
		dd	offset	Selections_Text
		dd	offset	ID_List
		dd	offset	Entry
		dd	0 ; res1
		dd	0 ; res2
		db	0 ; Master Enable

End_of_header	equ	$




Entry:

		;
		; this code will be called after the game is loaded but before
		; it is launched , it should be able to check for Pal/NTSC version
		; and if multi xbe files is used in the game.
		;

	        mov     edi,010114h     ; xbe Time and Date  
        	cmp     dword ptr [edi],3f33259bh  
	        jne     Exit

		;
		; Get base of this start module location
		;

;		GetBase	ebp		; no need, ebp point to this start module location

		cld
	
		;
		;
		;		
		
item1:
		cmp	[Sel_item1+ebp],0
		je	item2
	
		mov	al,090h
		mov edi, 043956h ; nop the jz
		stosb
		stosb
		
item2:
		cmp	[Sel_item2+ebp],0
		je	item3

		mov	al,0EBh
		mov edi, 043cc3h ; change jnz to jmp
		stosb

item3:
		cmp	[Sel_item3+ebp],0
		je	item4

		mov	al,090h
		mov edi, 02A25Ch ; nop the sub (2 bytes)
		stosb
		stosb

item4:

		
Exit:
		ret


ID_List		label 	dword
		dd	04B4E001Bh ; TMNT
		dd	0


Selections	label 	byte

Sel_item1	db	0
Sel_item2	db	0
Sel_item3	db	0

Selections_Text	label	word
		dd	offset	Text_Menu
		dd	offset	Text_Info

		dd	offset	text_item1
		dd	offset	text_item2
		dd	offset	text_item3
		;dd	offset	text_item4
		dd	0


Text_Menu	db	'Teenage Mutant Ninja Turtles +3 (USA)(v0.1)',0
Text_Info	db	'Trainer By dootdoo',0
		db	0 ; End of info

text_item1	db	'99 Shurikens',0
text_item2	db	'Unlimited Shurikens',0
text_item3	db	'Unlimited Continues',0
;text_item4	db	'Unlimited Continues',0

End_of_file	equ	$

Code		ends


		end
