Dave Murphy - 2008-12-25

See this post on gbadev.org

http://forum.gbadev.org/viewtopic.php?t=16272

you're not allowing for the directory on the stat call.