class_name HeldFileStore extends SaveStore ## A SaveStore that cannot read the file named `unreadable`, as if another ## program held it. var unreadable := "" func _read_file(path: String) -> PackedByteArray: if path.get_file() == unreadable: last_read_error = ERR_FILE_CANT_READ return PackedByteArray() return super(path)