Function ntcore_sys::NT_LoadPersistent [] [src]

pub unsafe extern "C" fn NT_LoadPersistent(
    inst: NT_Inst,
    filename: *const c_char,
    warn: Option<unsafe extern "C" fn(line: usize, msg: *const c_char)>
) -> *const c_char

Load persistent values from a file. The server automatically does this at startup, but this function provides a way to restore persistent values in the same format from a file at any time on either a client or a server. @param inst instance handle @param filename filename @param warn callback function for warnings @return error string, or NULL if successful