Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/UI/Common/ArchiverInfo.h')
-rwxr-xr-x7zip/UI/Common/ArchiverInfo.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/7zip/UI/Common/ArchiverInfo.h b/7zip/UI/Common/ArchiverInfo.h
index 0ce057fa..b05d0614 100755
--- a/7zip/UI/Common/ArchiverInfo.h
+++ b/7zip/UI/Common/ArchiverInfo.h
@@ -9,13 +9,11 @@
struct CArchiverExtInfo
{
- UString Extension;
- UString AddExtension;
+ UString Ext;
+ UString AddExt;
CArchiverExtInfo() {}
- CArchiverExtInfo(const UString &extension):
- Extension(extension) {}
- CArchiverExtInfo(const UString &extension, const UString &addExtension):
- Extension(extension), AddExtension(addExtension) {}
+ CArchiverExtInfo(const UString &ext): Ext(ext) {}
+ CArchiverExtInfo(const UString &ext, const UString &addExt): Ext(ext), AddExt(addExt) {}
};
struct CArchiverInfo
@@ -29,11 +27,12 @@ struct CArchiverInfo
#ifndef _SFX
CByteBuffer StartSignature;
CByteBuffer FinishSignature;
+ bool Associate;
#endif
int FindExtension(const UString &ext) const
{
for (int i = 0; i < Extensions.Size(); i++)
- if (ext.CollateNoCase(Extensions[i].Extension) == 0)
+ if (ext.CollateNoCase(Extensions[i].Ext) == 0)
return i;
return -1;
}
@@ -44,16 +43,22 @@ struct CArchiverInfo
{
if (i > 0)
s += ' ';
- s += Extensions[i].Extension;
+ s += Extensions[i].Ext;
}
return s;
}
const UString &GetMainExtension() const
{
- return Extensions[0].Extension;
+ return Extensions[0].Ext;
}
bool UpdateEnabled;
bool KeepName;
+
+ CArchiverInfo(): UpdateEnabled(false), KeepName(false)
+ #ifndef _SFX
+ ,Associate(true)
+ #endif
+ {}
};
void ReadArchiverInfoList(CObjectVector<CArchiverInfo> &archivers);