mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-27 03:14:49 +00:00
28 lines
379 B
C
28 lines
379 B
C
|
#ifndef _BSPATCH_H
|
||
|
#define _BSPATCH_H
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
enum BSPatchError
|
||
|
{
|
||
|
ERR_CORRUPT_PATCH,
|
||
|
ERR_OTHER,
|
||
|
ERR_NONE,
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* patch oldfile by using patchfile and write the output to newfile.
|
||
|
*
|
||
|
* Returns ERR_NONE if successful
|
||
|
*/
|
||
|
int bspatch(const char * oldfile, const char * newfile, const char * patchfile);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#endif
|