{* *}
{* Is this a dir or an item? *}
{* *}
{if is_array($dirWalk)}
{if $depth > 2}
{* *}
{* Generate dir prefix *}
{* *}
{capture assign="dirPrefix"}
{/capture}
{$dirPrefix|indent:$depth:"\t"}
{/if}
{* *}
{* Iterate over children *}
{* *}
{foreach from=$dirWalk item=dir key=key}
{include file="vc2k8_fileRecurse.tpl" dirWalk=$dir dirName=$key dirPath="$dirPath$dirName/" depth=$depth+1}
{/foreach}
{if $depth > 2}
{* *}
{* Generate dir suffix *}
{* *}
{capture assign="dirSuffix"}
{/capture}
{$dirSuffix|indent:$depth:"\t"}
{/if}
{else}
{* *}
{* Output an item *}
{* *}
{capture assign="itemOut"}
{* we don't compile some files. *}
{if dontCompile($dirWalk->path, $projOutput)}
{else}
{if substr($dirWalk->path, -4, 4) == ".asm"}
{/if}{* if path == "*.asm" *}
{/if}{* if dontCompile() *}
{/capture}
{$itemOut|indent:$depth:"\t"}
{/if}