Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Loading images from a directory

Author
Message
xCatalyst
6
Years of Service
User Offline
Joined: 5th Dec 2012
Location: Pittsburgh, PA
Posted: 27th Dec 2012 15:08
The code I have written is as follows:



The problem is that it doesn't seem to really be reading any of the images and storing them properly in the array I have. A little help would be greatly appreciated.

Thanks

Brendy boy
14
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 27th Dec 2012 22:17
you are converting image name to uppercase and then checking if it contains ".png" substring which is lowercase. That will never be true

xCatalyst
6
Years of Service
User Offline
Joined: 5th Dec 2012
Location: Pittsburgh, PA
Posted: 28th Dec 2012 06:21
Thanks a bunch, it works great haha. I guess I overlooked that

Login to post a reply

Server time is: 2019-09-17 09:15:24
Your offset time is: 2019-09-17 09:15:24