Skip to content

Commit

Permalink
remove zip function
Browse files Browse the repository at this point in the history
  • Loading branch information
mariogamer2 committed Jan 4, 2016
1 parent a4b303c commit 6b392c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ namespace fs
}
}


/*
//===============================================
// Zip related functions ||
//===============================================
Expand All @@ -586,7 +586,7 @@ namespace fs
Buffer<u8> buffer(MAX_BUF_SIZE, false);
if((res = zipOpenNewFileInZip4(zip, zipPath.c_str(), &fileInfo, nullptr, 0, nullptr, 0, nullptr, Z_DEFLATED, Z_DEFAULT_COMPRESSION,
0, -MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY, nullptr, 0, 0, 0x800 /* UTF-8 flag */)) != ZIP_OK)
0, -MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY, nullptr, 0, 0, 0x800 /* UTF-8 flag )) != ZIP_OK)
throw fsException(_FILE_, __LINE__, res, "Failed to create file in ZIP!");
Expand Down Expand Up @@ -623,7 +623,7 @@ namespace fs
// That's the only way to make dirs? Wtf.
if((res = zipOpenNewFileInZip4(zip, zipPath.c_str(), &fileInfo, nullptr, 0, nullptr, 0, nullptr, Z_BINARY, Z_NO_COMPRESSION,
0, 0, 0, 0, nullptr, 0, 0, 0x800 /* UTF-8 flag */)) != ZIP_OK)
0, 0, 0, 0, nullptr, 0, 0, 0x800 /* UTF-8 flag )) != ZIP_OK)
throw fsException(_FILE_, __LINE__, res, "Failed to create directory in ZIP!");
if((res = zipCloseFileInZip(zip)) != ZIP_OK) throw fsException(_FILE_, __LINE__, res, "Failed to close directory in ZIP!");
Expand Down Expand Up @@ -803,8 +803,8 @@ namespace fs
else path.erase(found+1); // someDir/someDir/
}
}
}

}
*/

//===============================================
// Misc functions ||
Expand Down

0 comments on commit 6b392c7

Please sign in to comment.