This commit is contained in:
Igor Pavlov
2023-12-22 17:17:05 +00:00
committed by Kornel
parent ec44a8a070
commit a36c48cece
954 changed files with 42199 additions and 25482 deletions

View File

@@ -2,6 +2,8 @@
#include "StdAfx.h"
#ifndef Z7_EXTERNAL_CODECS
#include "../../../Common/MyException.h"
#include "../../UI/Common/EnumDirItems.h"
@@ -33,7 +35,7 @@ static void ThrowException_if_Error(HRESULT res)
throw CSystemException(res);
}
#ifdef EXTERNAL_CODECS
#ifdef Z7_EXTERNAL_CODECS
#define CREATE_CODECS \
CCodecs *codecs = new CCodecs; \
@@ -42,10 +44,10 @@ static void ThrowException_if_Error(HRESULT res)
Codecs_AddHashArcHandler(codecs);
#define LOAD_EXTERNAL_CODECS \
CExternalCodecs __externalCodecs; \
__externalCodecs.GetCodecs = codecs; \
__externalCodecs.GetHashers = codecs; \
ThrowException_if_Error(__externalCodecs.Load());
CExternalCodecs _externalCodecs; \
_externalCodecs.GetCodecs = codecs; \
_externalCodecs.GetHashers = codecs; \
ThrowException_if_Error(_externalCodecs.Load());
#else
@@ -321,3 +323,5 @@ void Benchmark(bool totalMode)
MY_TRY_FINISH
}
#endif