[Constants]
global persist $Hair = 0

[KeyHair]
Key = x 
;whenever you press X it changes the value of $hair       
type = cycle
;add a number number for each option
$Hair = 0, 1, 2        

;then in your Texture override where you set your vb0, ib and textures you set an if condition for each option

[ResourceBakVB]
[ResourceBakIB]

; Option 0 = Senran Kagura Ayane Yagyu
if $Hair == 0
    	[textureoverrideTails]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranVB
	IB = ResourceSenranIB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/Base.vb
	[ResourceSenranIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/Base.ib
	[ResourceSenranT0] 
	filename = Senran/001041.1-[commandlisthair]-ps-t0=e4498d43.dds
	[ResourceSenranT1] 
	filename = Senran/001041.2-[commandlisthair]-ps-t1=86d50901.dds
	[ResourceSenranT2] 
	filename = Senran/001041.3-[commandlisthair]-ps-t2=dd4df57a.dds

	[textureoverrideTails1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran1VB
	IB = ResourceSenran1IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots.vb
	[ResourceSenran1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots.ib

	[textureoverrideTails2]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran2VB
	IB = ResourceSenran2IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran2VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots1.vb
	[ResourceSenran2IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots1.ib

	[textureoverrideTails3]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran3VB
	IB = ResourceSenran3IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran3VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots2.vb
	[ResourceSenran3IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots2.ib

	[textureoverrideTails4]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran4VB
	IB = ResourceSenran4IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran4VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots3.vb
	[ResourceSenran4IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots3.ib

	[textureoverrideTails5]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran5VB
	IB = ResourceSenran5IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran5VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots4.vb
	[ResourceSenran5IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots4.ib


	[textureoverrideTails6]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran6VB
	IB = ResourceSenran6IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran6VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots5.vb
	[ResourceSenran6IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots5.ib

	[textureoverrideTails7]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran7VB
	IB = ResourceSenran7IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran7VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots6.vb
	[ResourceSenran7IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots6.ib

	[textureoverrideTails8]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenran8VB
	IB = ResourceSenran8IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenran8VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRoots7.vb
	[ResourceSenran8IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRoots7.ib

	[textureoverrideTailsIn]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 0
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranInVB
	IB = ResourceSenranInIB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranInVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRootsIn.vb
	[ResourceSenranInIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRootsIn.ib

	[textureoverrideTailsIn1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 0
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranIn1VB
	IB = ResourceSenranIn1IB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranIn1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/BaseRootsIn1.vb
	[ResourceSenranIn1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/BaseRootsIn1.ib

	[textureoverrideRibbons1]
	if $Hair == 0 
	hash = c231fa4e
	handling = skip

	[textureoverridePigTailsIn]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 10983
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigInVB
	IB = ResourceSenranPigInIB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigInVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/PigtailsIn.vb
	[ResourceSenranPigInIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/PigtailsIn.ib
	[ResourceSenran1T0] 
	filename = Senran/001161.1-[commandlisthair]-ps-t0=c3683a18.dds
	[ResourceSenran1T1] 
	filename = Senran/001161.2-[commandlisthair]-ps-t1=2303ce80.dds
	[ResourceSenran1T2] 
	filename = Senran/001161.3-[commandlisthair]-ps-t2=dc5ec075.dds

	[textureoverridePigTailsIn1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 6171
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigIn1VB
	IB = ResourceSenranPigIn1IB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigIn1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/PigtailsIn1.vb
	[ResourceSenranPigIn1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/PigtailsIn1.ib

	[textureoverridePigTailsIn2]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 6171
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigIn2VB
	IB = ResourceSenranPigIn2IB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigIn2VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/PigtailsIn2.vb
	[ResourceSenranPigIn2IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/PigtailsIn2.ib

	[textureoverridePigTails]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 10983
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigOutVB
	IB = ResourceSenranPigOutIB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigOutVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/PigtailsOut.vb
	[ResourceSenranPigOutIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/PigtailsOut.ib

	[textureoverridePigTails1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 19335
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigOut1VB
	IB = ResourceSenranPigOut1IB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigOut1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/PigtailsOut1.vb
	[ResourceSenranPigOut1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/PigtailsOut1.ib

	[textureoverridePigTails2]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 19335
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigOut2VB
	IB = ResourceSenranPigOut2IB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigOut2VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/PigtailsOut2.vb
	[ResourceSenranPigOut2IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/PigtailsOut2.ib

	[textureoverridePigTails3]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 19335
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigOut3VB
	IB = ResourceSenranPigOut3IB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigOut3VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Senran/PigtailsOut3.vb
	[ResourceSenranPigOut3IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/PigtailsOut3.ib


	[textureoverrideHide]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 22695
	handling = skip


	[textureoverrideHide1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 14343
	handling = skip


	[textureoverridePigTailsShadow]
	if $Hair == 0 
	hash = e56078ce
	match_first_index = 4716
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigShadowVB
	IB = ResourceSenranPigShadowIB
	ps-t0 = ResourceSenranT0 
	ps-t1 = ResourceSenranT1 
	ps-t2 = ResourceSenranT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigShadowVB]
	if $Hair == 0 
	type = buffer
	stride = 60
	filename = Senran/ShadowRoot.vb
	[ResourceSenranPigShadowIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/ShadowRoot.ib

	[textureoverridePigTailsShadow1]
	if $Hair == 0 
	hash = e56078ce
	match_first_index = 19482
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigShadow1VB
	IB = ResourceSenranPigShadow1IB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigShadow1VB]
	if $Hair == 0 
	type = buffer
	stride = 60
	filename = Senran/ShadowPig1.vb
	[ResourceSenranPigShadow1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/ShadowPig1.ib

	[textureoverridePigTailsShadow2]
	if $Hair == 0 
	hash = e56078ce
	match_first_index = 12762
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceSenranPigShadow2VB
	IB = ResourceSenranPigShadow2IB
	ps-t0 = ResourceSenran1T0 
	ps-t1 = ResourceSenran1T1 
	ps-t2 = ResourceSenran1T2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceSenranPigShadow2VB]
	if $Hair == 0 
	type = buffer
	stride = 60
	filename = Senran/ShadowPig2.vb
	[ResourceSenranPigShadow2IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Senran/ShadowPig2.ib
endif

;Option 1 = Marie's Twin Buns
if $Hair == 1
    	[textureoverrideTailsBuns]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBunVB
	IB = ResourceBunIB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBunVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/Base.vb
	[ResourceBunIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/Base.ib
	[ResourceBunT0] 
	filename = MarieBuns/001041.1-[commandlisthair]-ps-t0=e4498d43.dds
	[ResourceBunT1] 
	filename = MarieBuns/001041.2-[commandlisthair]-ps-t1=86d50901.dds
	[ResourceBunT2] 
	filename = MarieBuns/001041.3-[commandlisthair]-ps-t2=dd4df57a.dds

	[textureoverrideBuns]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBunRVB
	IB = ResourceBunRIB
	ps-t0 = ResourceBunST0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBunRVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/Buns.vb
	[ResourceBunRIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/Buns.ib
	[ResourceBunST0] 
	filename = MarieBuns/Buns.dds

	[textureoverrideTails1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun1VB
	IB = ResourceBun1IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots.vb
	[ResourceBun1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots.ib

	[textureoverrideTails2]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun2VB
	IB = ResourceBun2IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun2VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots1.vb
	[ResourceBun2IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots1.ib

	[textureoverrideTails3]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun3VB
	IB = ResourceBun3IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun3VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots2.vb
	[ResourceBun3IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots2.ib

	[textureoverrideTails4]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun4VB
	IB = ResourceBun4IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun4VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots3.vb
	[ResourceBun4IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots3.ib

	[textureoverrideTails5]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun5VB
	IB = ResourceBun5IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun5VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots4.vb
	[ResourceBun5IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots4.ib


	[textureoverrideTails6]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun6VB
	IB = ResourceBun6IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun6VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots5.vb
	[ResourceBun6IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots5.ib

	[textureoverrideTails7]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun7VB
	IB = ResourceBun7IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun7VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots6.vb
	[ResourceBun7IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots6.ib

	[textureoverrideTails8]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBun8VB
	IB = ResourceBun8IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBun8VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRoots7.vb
	[ResourceBun8IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRoots7.ib


	[textureoverrideTailsIn1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 0
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBunIn1VB
	IB = ResourceBunIn1IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBunIn1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/BaseRootsIn1.vb
	[ResourceBunIn1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/BaseRootsIn1.ib

	[textureoverrideRibbons1]
	if $Hair == 0 
	hash = c231fa4e
	handling = skip

	;Resources
	[ResourceBunPigIn1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = MarieBuns/PigtailsIn1.vb
	[ResourceBunPigIn1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/PigtailsIn1.ib

	[textureoverridePigTailsIn2]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 6171


	[textureoverrideHide]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 22695
	handling = skip


	[textureoverrideHide1]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 14343
	handling = skip

	[textureoverrideHide2]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 19335
	handling = skip

	[textureoverrideHide3]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 10983
	handling = skip

	[textureoverrideHide4]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 6171
	handling = skip

	[textureoverrideHide5]
	if $Hair == 0 
	hash = 99259119
	match_first_index = 0
	handling = skip

	[textureoverrideBunsShadow]
	if $Hair == 0 
	hash = e56078ce
	match_first_index = 4716
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBunSRVB
	IB = ResourceBunSRIB
	ps-t0 = ResourceBunST0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBunSRVB]
	if $Hair == 0 
	type = buffer
	stride = 60
	filename = MarieBuns/ShadowBuns.vb
	[ResourceBunSRIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/ShadowBuns.ib

	[textureoverrideBunsShadow1]
	if $Hair == 0 
	hash = e56078ce
	match_first_index = 4716
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourceBunSR1VB
	IB = ResourceBunSR1IB
	ps-t0 = ResourceBunT0 
	ps-t1 = ResourceBunT1 
	ps-t2 = ResourceBunT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourceBunSR1VB]
	if $Hair == 0 
	type = buffer
	stride = 60
	filename = MarieBuns/ShadowRoots.vb
	[ResourceBunSR1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = MarieBuns/ShadowRoots.ib

endif

;Option 2 = Leifang's OG Ponytail
if $Hair == 2
    [textureoverrideTailsPonytail]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 8475
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePonyVB
	IB = ResourcePonyIB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePonyVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/Roots.vb
	[ResourcePonyIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/Roots.ib
	[ResourcePonyT0] 
	filename = Ponytail/hair-a_base.dds
	[ResourcePonyT1] 
	filename = Ponytail/hair-a_nrm.dds
	[ResourcePonyT2] 
	filename = Ponytail/hair-a_spec.dds

	[textureoverrideTails1]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 0
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePony1VB
	IB = ResourcePony1IB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePony1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/RootsIn1.vb
	[ResourcePony1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/RootsIn1.ib

	[textureoverrideTails2]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 0
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePony2VB
	IB = ResourcePony2IB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePony2VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/RootsIn2.vb
	[ResourcePony2IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/RootsIn2.ib

	[textureoverrideTails3]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 2400
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePony3VB
	IB = ResourcePony3IB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePony3VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/Sideburns.vb
	[ResourcePony3IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/Sideburns.ib

	[textureoverrideTails4]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 2400
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePony4VB
	IB = ResourcePony4IB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePony4VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/Sideburns1.vb
	[ResourcePony4IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/Sideburns1.ib

	[textureoverrideRibbons1]
	if $Hair == 0 
	if $Hair == 0 
	hash = c231fa4e
	match_first_index = 0
	vb0 = ResourceTieVB
	IB = ResourceTieIB
	ps-t0 = ResourceTieT0 
	ps-t1 = ResourceTieT1 
	ps-t2 = ResourceTieT2 
	handling = skip
	drawindexed = auto

	;Resources
	[ResourceTieVB]
	if $Hair == 0 
	type = buffer
	stride = 60
	filename = Ponytail/Tie.vb
	[ResourceTieIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/Tie.ib
	[ResourceTieT0] 
	filename = Ponytail/hair-b_base.dds
	[ResourceTieT1] 
	filename = Ponytail/hair-b_nrm.dds
	[ResourceTieT2] 
	filename = Ponytail/hair-b_spec.dds

	[textureoverrideRibbons2]
	if $Hair == 0 
	if $Hair == 0 
	hash = c231fa4e
	match_first_index = 1584
	handling = skip

	[textureoverridePonytailIn1]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 6171
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePonytailIn1VB
	IB = ResourcePonytailIn1IB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePonytailIn1VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/PonytailIn1.vb
	[ResourcePonytailIn1IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/PonytailIn1.ib

	[textureoverridePonytailIn2]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 6171
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePonytailIn2VB
	IB = ResourcePonytailIn2IB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePonytailIn2VB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/PonytailIn2.vb
	[ResourcePonytailIn2IB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/PonytailIn2.ib

	[textureoverridePonytail]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 22695
	ResourceBakVB = ref vb0
	ResourceBakIB = ref IB
	vb0 = ResourcePonytailVB
	IB = ResourcePonytailIB
	ps-t0 = ResourcePonyT0 
	ps-t1 = ResourcePonyT1 
	ps-t2 = ResourcePonyT2 
	handling = skip
	drawindexed = auto
	vb0 = ref ResourceBakVB
	IB = ref ResourceBakIB

	;Resources
	[ResourcePonytailVB]
	if $Hair == 0 
	type = buffer
	stride = 76
	filename = Ponytail/PonyTail.vb
	[ResourcePonytailIB]
	if $Hair == 0 
	type = buffer
	format = DXGI_FORMAT_R16_UINT
	filename = Ponytail/PonyTail.ib

	[textureoverrideHide1]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 14343
	handling = skip

	[textureoverrideHide2]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 10983
	handling = skip

	[textureoverrideHide3]
	if $Hair == 0 
	if $Hair == 0 
	hash = 99259119
	match_first_index = 19335
	handling = skip
endif