Implement ZipFile and ZipEntry
This commit is contained in:
parent
976dcc07ef
commit
4e91d5ca4c
7 changed files with 235 additions and 11 deletions
27
Minecraft.World/ZipEntry.cpp
Normal file
27
Minecraft.World/ZipEntry.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include "stdafx.h"
|
||||
#include "ZipEntry.h"
|
||||
|
||||
ZipEntry::ZipEntry(bit7z::BitArchiveItemOffset itemInfo) : _itemInfo(itemInfo) {
|
||||
_name = itemInfo.name();
|
||||
_path = itemInfo.path();
|
||||
}
|
||||
|
||||
DWORD ZipEntry::getSize() {
|
||||
return _itemInfo.size();
|
||||
}
|
||||
|
||||
bool ZipEntry::isDir() {
|
||||
return _itemInfo.isDir();
|
||||
}
|
||||
|
||||
std::string ZipEntry::getName() {
|
||||
return _name;
|
||||
}
|
||||
|
||||
std::string ZipEntry::path() {
|
||||
return _path;
|
||||
}
|
||||
|
||||
unsigned int ZipEntry::getIndex() {
|
||||
return (unsigned int)_itemInfo.index();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue