FileType with Incbin

BlitzMax Forums/BlitzMax Programming/FileType with Incbin

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I noticed that FileType does not work with incbin files. I'm using it to load a lot of animations, not knowing how many frames there are for each one.

So I changed it to:
image=loadimage("incbin::image"+i+".bmp")
if image=null then
'file exists
endif

Now I see blitzmax can tell if the image exists in the incbin using loadimage, so why can't I do it directly????

My only problem is that the image is actually loaded if it exists, I want to load images later, after finding out how many there are. I could just keep track of the numbers manually but it woiuld be hard becuase the amount of images in each folder keep changing.

So what is the best hack to tell if a file exists in incbin? I need it to execute as fast as possible.