Hello.
Well, I am needing to check if the file (x) exists, so I use the function:
if FileTest.exist?("Graphics/Pictures/" + $fileName)
Well, that way work. But if I encript the game, it won't work. So, I try this:
if FileTest.exist?(RPG::Cache.picture($fileName))
But this way doesn't work. I get the error message: "Cannot convert bitmap into string". I already tryed .to_s, but it didn't work...
Anyone knows how can I check using the module?
Thanks from now,
see ya.
Well, I am needing to check if the file (x) exists, so I use the function:
if FileTest.exist?("Graphics/Pictures/" + $fileName)
Well, that way work. But if I encript the game, it won't work. So, I try this:
if FileTest.exist?(RPG::Cache.picture($fileName))
But this way doesn't work. I get the error message: "Cannot convert bitmap into string". I already tryed .to_s, but it didn't work...
Anyone knows how can I check using the module?
Thanks from now,
see ya.