You've already forked FileManager
mirror of
https://github.com/Team-Resurgent/FileManager.git
synced 2026-04-30 10:38:50 -07:00
29 lines
521 B
C
29 lines
521 B
C
#pragma once
|
|
|
|
#include <StdIO.h>
|
|
|
|
typedef enum {
|
|
E_ERROR = -1,
|
|
E_NO_ERROR,
|
|
E_NOT_IPS,
|
|
E_NOT_UPS,
|
|
E_NOT_BPS,
|
|
E_BAD_PATCH,
|
|
E_FOPEN_SRC,
|
|
E_FOPEN_DST,
|
|
E_FOPEN_PATCH,
|
|
E_FREAD_SRC,
|
|
E_FREAD_DST,
|
|
E_FREAD_PATCH,
|
|
E_FSEEK_SRC,
|
|
E_FSEEK_DST,
|
|
E_FSEEK_PATCH,
|
|
E_FWRITE_DST,
|
|
E_FTELL_PATCH,
|
|
E_CANNOT_OVR,
|
|
E_OUT_OF_MEMORY,
|
|
} ErrorCode;
|
|
|
|
int CreateBak(const char* source, bool overwrite, bool (*Callback)(unsigned long long));
|
|
int RestoreBak(const char* source, bool overwrite);
|
|
int ReadVarInt(FILE* fp, unsigned int* ui); |