ReactOS
0.4.15-dev-2155-g06f57e1
|
#include <windows.h>
#include <conio.h>
#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
Go to the source code of this file.
Classes | |
struct | _PatchedByte |
struct | _PatchedFile |
struct | _Patch |
Macros | |
#define | PATCH_BUFFER_SIZE 4096 /* Maximum size of a patch */ |
#define | PATCH_BUFFER_MAGIC "\xde\xad\xbe\xef MaGiC MaRk " |
#define | SIZEOF_PATCH_BUFFER_MAGIC (sizeof (PATCH_BUFFER_MAGIC) - 1) |
Typedefs | |
typedef struct _PatchedByte | PatchedByte |
typedef struct _PatchedFile | PatchedFile |
typedef struct _Patch | Patch |
Functions | |
static void | printUsage () |
static void * | loadFile (const char *fileName, size_t *fileSize_) |
static int | saveFile (const char *fileName, void *file, size_t fileSize) |
static int | compareFiles (PatchedFile *patchedFile, const char *originalFileName) |
static int | outputPatch (const char *outputFileName) |
static int | loadPatch () |
static int | createPatch () |
static int | applyPatch () |
int | main (int argc, char *argv[]) |
Variables | |
static Patch | m_patch = { NULL, 0, NULL } |
static int | m_argc = 0 |
static char ** | m_argv = NULL |
static char | m_patchBuffer [SIZEOF_PATCH_BUFFER_MAGIC+PATCH_BUFFER_SIZE] |
#define SIZEOF_PATCH_BUFFER_MAGIC (sizeof (PATCH_BUFFER_MAGIC) - 1) |
typedef struct _PatchedByte PatchedByte |
TYPES
typedef struct _PatchedFile PatchedFile |
|
static |
Definition at line 388 of file patch.c.
Referenced by main().
|
static |
Definition at line 133 of file patch.c.
Referenced by createPatch().
|
static |
MAIN FUNCTIONS
Definition at line 338 of file patch.c.
Referenced by main().
HELPER FUNCTIONS
Definition at line 56 of file patch.c.
Referenced by applyPatch(), compareFiles(), and outputPatch().
|
static |
Definition at line 306 of file patch.c.
Referenced by applyPatch().
Definition at line 214 of file patch.c.
Referenced by createPatch().
|
static |
FUNCTION PROTOTYPES
Definition at line 571 of file patch.c.
Referenced by applyPatch(), createPatch(), and main().
Definition at line 106 of file patch.c.
Referenced by applyPatch(), and outputPatch().
|
static |
Definition at line 46 of file patch.c.
Referenced by applyPatch(), createPatch(), and main().
Definition at line 47 of file patch.c.
Referenced by applyPatch(), createPatch(), main(), outputPatch(), and printUsage().
GLOBALS
Definition at line 45 of file patch.c.
Referenced by applyPatch(), createPatch(), loadPatch(), and outputPatch().
|
static |
Definition at line 50 of file patch.c.
Referenced by loadPatch(), and outputPatch().