Hi all! I'm working on a script for my project that will redo how the save system functions.
I've come across this bit that I think will be useful, but I would love some confirmation on exactly what it is doing. I can gather enough to realize that it is asking if a save file exists. I'm just not 100% certain on what it returns. I would assume true/false? Also, what would be the best way to use this information? Set a variable to this information?
def self.save_file_exists?
!Dir.glob('Save*.rvdata2').empty?
end
Thanks!
I've come across this bit that I think will be useful, but I would love some confirmation on exactly what it is doing. I can gather enough to realize that it is asking if a save file exists. I'm just not 100% certain on what it returns. I would assume true/false? Also, what would be the best way to use this information? Set a variable to this information?
def self.save_file_exists?
!Dir.glob('Save*.rvdata2').empty?
end
Thanks!