Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Don't try to load a file and then figure out whether or not you were successful.  Check to see whether or not the file exists.  Make use of the 'File' class and the function 'file_exists'. (Although I haven't looked at the function you are calling.  Maybe that already tests for existence).