Commit 9e867be7 authored by Alexey Golubev's avatar Alexey Golubev

Merge branch 'hotfix/v4.3.5'

parents 95c472c1 ec4f4fe4
SET SCRIPTPATH=%~dp0 SET SCRIPTPATH=%~dp0
CD /D %~dp0 CD /D %~dp0
SET PLATFORM=win SET PLATFORM=win_32
SET ARCH=_32
if defined ProgramFiles(x86) ( if defined ProgramFiles(x86) (
SET ARCH=_64 SET PLATFORM=win_64
)
if defined TARGET (
SET PLATFORM=%TARGET%
) )
mkdir "%SCRIPTPATH%%PLATFORM%%ARCH%" mkdir "%SCRIPTPATH%%PLATFORM%"
cd "%SCRIPTPATH%%PLATFORM%%ARCH%" cd "%SCRIPTPATH%%PLATFORM%"
if exist "cef_binary.7z" ( if exist "cef_binary.7z" (
echo "cef_binary.7z already downloaded" echo "cef_binary.7z already downloaded"
) else ( ) else (
Powershell.exe Invoke-WebRequest -OutFile cef_binary.7z http://d2ettrnqo7v976.cloudfront.net/cef/2454/%PLATFORM%%ARCH%/cef_binary.7z Powershell.exe Invoke-WebRequest -OutFile cef_binary.7z http://d2ettrnqo7v976.cloudfront.net/cef/2454/%PLATFORM%/cef_binary.7z
) )
SET UNSIP_PROGRAMM="%ProgramFiles%\7-Zip\7z.exe" SET UNSIP_PROGRAMM="%ProgramFiles%\7-Zip\7z.exe"
......
...@@ -6,6 +6,10 @@ if defined ProgramFiles(x86) ( ...@@ -6,6 +6,10 @@ if defined ProgramFiles(x86) (
SET platform=win_64 SET platform=win_64
) )
if defined TARGET (
SET platform=%TARGET%
)
if not exist "%platform%" ( if not exist "%platform%" (
md "%platform%" md "%platform%"
) )
......
...@@ -150,7 +150,16 @@ namespace OOX ...@@ -150,7 +150,16 @@ namespace OOX
else if ( pRelation->Type() == FileTypes::Document) else if ( pRelation->Type() == FileTypes::Document)
return smart_ptr<OOX::File>(new CDocument( oRootPath, oFileName )); return smart_ptr<OOX::File>(new CDocument( oRootPath, oFileName ));
else if ( pRelation->Type() == FileTypes::Theme) else if ( pRelation->Type() == FileTypes::Theme)
{
if(NSFile::CFileBinary::Exists(oFileName.GetPath()))
{
return smart_ptr<OOX::File>(new CTheme( oFileName )); return smart_ptr<OOX::File>(new CTheme( oFileName ));
}
else
{
return smart_ptr<OOX::File>( new UnknowTypeFile() );
}
}
else if ( pRelation->Type() == FileTypes::ThemeOverride) else if ( pRelation->Type() == FileTypes::ThemeOverride)
return smart_ptr<OOX::File>(new CThemeOverride( oFileName )); return smart_ptr<OOX::File>(new CThemeOverride( oFileName ));
else if ( pRelation->Type() == FileTypes::Setting) else if ( pRelation->Type() == FileTypes::Setting)
......
...@@ -126,7 +126,16 @@ namespace OOX ...@@ -126,7 +126,16 @@ namespace OOX
else if ( pRelation->Type() == FileTypes::Worksheet ) else if ( pRelation->Type() == FileTypes::Worksheet )
return smart_ptr<OOX::File>(new CWorksheet( oRootPath, oFileName )); return smart_ptr<OOX::File>(new CWorksheet( oRootPath, oFileName ));
else if ( pRelation->Type() == OOX::FileTypes::Theme ) else if ( pRelation->Type() == OOX::FileTypes::Theme )
{
if(NSFile::CFileBinary::Exists(oFileName.GetPath()))
{
return smart_ptr<OOX::File>(new CTheme( oFileName )); return smart_ptr<OOX::File>(new CTheme( oFileName ));
}
else
{
return smart_ptr<OOX::File>( new UnknowTypeFile() );
}
}
else if ( pRelation->Type() == OOX::FileTypes::ThemeOverride ) else if ( pRelation->Type() == OOX::FileTypes::ThemeOverride )
return smart_ptr<OOX::File>(new CThemeOverride( oFileName )); return smart_ptr<OOX::File>(new CThemeOverride( oFileName ));
else if ( pRelation->Type() == FileTypes::Drawings ) else if ( pRelation->Type() == FileTypes::Drawings )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment