load_from_data_dirs


Description:

public bool load_from_data_dirs (string file, out string full_path, KeyFileFlags flags) throws KeyFileError, FileError

This function looks for a key file named file in the paths returned from get_user_data_dir and get_system_data_dirs, loads the file into this and returns the file's full path in full_path.

If the file could not be loaded then an error is set to either a FileError or KeyFileError.

Parameters:

this

an empty KeyFile struct

file

a relative path to a filename to open and parse

full_path

return location for a string containing the full path of the file, or null

flags

flags from KeyFileFlags

Returns:

true if a key file could be loaded, false otherwise