File.Exists(File.DirAssets, "audio/test.wav") File.Exists(File.DirAssets, "audio\test.wav") File.Exists(File.DirAssets & "/audio", "test.wav") File.Exists(File.DirAssets & "\audio", "test.wav")
Yes, that is what I have gone with in the end.File.Exists currently doesn't work with subfolders in the assets folder. However you are putting the files there so you should be able to know whether a specific file exists or not.
Well, I've run across a strange one. It's a simple subroutine:That is correct. It may be added in the future. Though you do not need to check for existence of files added to the Files tab. They will be there.
sub Globals Dim gif As GifDecoder end sub If File.Exists(File.DirAssets,"dino.gif") Then Log("About_Sub - dino.gif does exist; loading 'dino.gif'") Try gif.Load(File.DirAssets, "dino.gif") Catch Log("About_Sub - Couldn't Load dino.gif for unknown reasons.") ABOUT_COULD_NOT_LOAD_GIF = True EndTry EndIf
Keep in mind that File.DirAssets and it's contents is a "known" folder to the developer. It makes no sense to me to check if a file is there because it's not changable at runtime and contains only files you've put there.
Take a look at the libgdx examples. They use a lot of subfolders to organize
Other strange things occur that I can't figure out.Well, I know that it is supposed to be there. And, the check for the file says it is there; but when it loads it it is not there.
When you copy it to the External default it works fine.
Of course I'm going to do a check for it because it is saying it is not there and am trying to figure out why it is not finding it.
I also listed the directory by using a different method and the file was there.
So, why is it not being able to load the file? Is there some way of seeing more information about the error that is occurring using some error library, or something?