mirror of
https://github.com/alexbatalov/fallout2-ce.git
synced 2024-09-04 13:59:04 +00:00
parent
89839be3af
commit
bf639a2c4a
@ -150,16 +150,8 @@ int _gzdecompress_file(const char* existingFilePath, const char* newFilePath)
|
|||||||
|
|
||||||
static void fileCopy(const char* existingFilePath, const char* newFilePath)
|
static void fileCopy(const char* existingFilePath, const char* newFilePath)
|
||||||
{
|
{
|
||||||
char nativeExistingFilePath[COMPAT_MAX_PATH];
|
FILE* in = compat_fopen(existingFilePath, "rb");
|
||||||
strcpy(nativeExistingFilePath, existingFilePath);
|
FILE* out = compat_fopen(newFilePath, "wb");
|
||||||
compat_windows_path_to_native(nativeExistingFilePath);
|
|
||||||
|
|
||||||
char nativeNewFilePath[COMPAT_MAX_PATH];
|
|
||||||
strcpy(nativeNewFilePath, newFilePath);
|
|
||||||
compat_windows_path_to_native(nativeNewFilePath);
|
|
||||||
|
|
||||||
FILE* in = fopen(nativeExistingFilePath, "rb");
|
|
||||||
FILE* out = fopen(nativeNewFilePath, "wb");
|
|
||||||
if (in != NULL && out != NULL) {
|
if (in != NULL && out != NULL) {
|
||||||
std::vector<unsigned char> buffer(0xFFFF);
|
std::vector<unsigned char> buffer(0xFFFF);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user