I would like my mod to fail gracefully when combined with other mods. As it alters some icons by rerouting their references to other images I have created, the easiest way for me to do this is to first check if the file I am trying to reroute to exists. Unfortunately, I'm only really enough of a programmer to do the cargo-cult thing and copy snippets I've already seen.
Is there any way to check whether or not [arbitraryfilename].[ext] is a thing that exists using Lua?
Is there any way to check whether or not [arbitraryfilename].[ext] is a thing that exists using Lua?