Initial lzma support.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-06-07 04:42:15 +02:00
parent ee9f8c184b
commit 34ae413607
7 changed files with 226 additions and 2 deletions
+3
View File
@@ -197,11 +197,14 @@ PackLinuxElf64amd::getCompressionMethods(int method, int level) const
// No real dependency on LE32.
static const int m_nrv2b[] = { M_NRV2B_LE32, M_NRV2E_LE32, -1 };
static const int m_nrv2e[] = { M_NRV2E_LE32, M_NRV2B_LE32, -1 };
static const int m_lzma[] = { M_LZMA,-1 };
if (M_IS_NRV2B(method))
return m_nrv2b;
if (M_IS_NRV2E(method))
return m_nrv2e;
if (M_IS_LZMA(method))
return m_lzma;
if (1==level)
return m_nrv2b;
return m_nrv2e;