# Autopatcher

The Autopatcher provide client automatic patching of data file. More...

## Files

file | Autopatcher.h
| Autopatcher.

file | DownloadableFileDescriptor.h
| Autopatcher File Description.

file | Autopatcher.cpp
| Autopatcher Implementation.

file | DownloadableFileDescriptor.cpp
| Autopatcher File Description Implementation.

## Classes

class | AutoPatcher
| Autopatcher Subsystem. More...
struct | DownloadableFileDescriptor
| File information. More...

## Enumerations

enum | SetFileDownloadableResult { SET_FILE_DOWNLOADABLE_FAILED, SET_FILE_DOWNLOADABLE_FILE_NO_SIGNATURE_FILE, SET_FILE_DOWNLOADABLE_FILE_SIGNATURE_CHECK_FAILED, SET_FILE_DOWNLOADABLE_COMPRESSION_FAILED, SET_FILE_DOWNLOADABLE_SUCCESS }
| Result of action from the autopatcher. More...

## Detailed Description

The Autopatcher provide client automatic patching of data file.

The Autopatcher subsystem provide automatic file updates to the client. The server set a list of file available for patching. If the files differs on the client, those file will be automatically updated. It depends on the zLib library to compress data. The latest version of this library is provided with the RakNet library.

## Enumeration Type Documentation

enum SetFileDownloadableResult

Result of action from the autopatcher.

This enum describe results for autopatcher operations.

Enumeration values:

  SET_FILE_DOWNLOADABLE_FAILED | Operation failed
  SET_FILE_DOWNLOADABLE_FILE_NO_SIGNATURE_FILE | Signature file is missing
  SET_FILE_DOWNLOADABLE_FILE_SIGNATURE_CHECK_FAILED | Signature check failed
  SET_FILE_DOWNLOADABLE_COMPRESSION_FAILED | Compression failed
  SET_FILE_DOWNLOADABLE_SUCCESS | Success