mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
plugin/zip: Minor improvements (thank you wimpie)
git-svn-id: svn://ultimatepp.org/upp/trunk@15255 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
33ff83e72a
commit
0e03f5ca44
2 changed files with 6 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ void UnZip::ReadDir()
|
|||
{
|
||||
error = true;
|
||||
|
||||
file.Clear();
|
||||
current = 0;
|
||||
|
||||
int entries = -1;
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ public:
|
|||
dword GetPos() const;
|
||||
|
||||
void Create(Stream& in);
|
||||
void Close() { file.Clear(); zip->Close(); }
|
||||
|
||||
UnZip(Stream& in);
|
||||
UnZip();
|
||||
|
|
@ -71,6 +72,7 @@ public:
|
|||
bool Create(const char *name);
|
||||
|
||||
FileUnZip(const char *name) { Create(name); }
|
||||
FileUnZip() {}
|
||||
};
|
||||
|
||||
class MemUnZip : public UnZip {
|
||||
|
|
@ -79,7 +81,8 @@ class MemUnZip : public UnZip {
|
|||
public:
|
||||
void Create(const void *ptr, int count);
|
||||
|
||||
MemUnZip(const void *ptr, int count) { Create(ptr, count); }
|
||||
MemUnZip(const void *ptr, int count) { Create(ptr, count); }
|
||||
MemUnZip();
|
||||
};
|
||||
|
||||
class StringUnZip : public UnZip {
|
||||
|
|
@ -89,6 +92,7 @@ public:
|
|||
void Create(const String& s);
|
||||
|
||||
StringUnZip(const String& s) { Create(s); }
|
||||
StringUnZip();
|
||||
};
|
||||
|
||||
class Zip {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue