Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit 8bcc2ad

Browse files
committed
add vc project VirtualApkPatch
1 parent c5fdb2e commit 8bcc2ad

File tree

5 files changed

+301
-4
lines changed

5 files changed

+301
-4
lines changed
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|Win32">
13+
<Configuration>Release</Configuration>
14+
<Platform>Win32</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<ProjectGuid>{A1F31BE8-0454-41F8-A2AE-9A25531F5C1B}</ProjectGuid>
23+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
24+
<Keyword>ManagedCProj</Keyword>
25+
<RootNamespace>VirtualApkPatch</RootNamespace>
26+
</PropertyGroup>
27+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29+
<ConfigurationType>Application</ConfigurationType>
30+
<UseDebugLibraries>true</UseDebugLibraries>
31+
<CLRSupport>false</CLRSupport>
32+
<CharacterSet>Unicode</CharacterSet>
33+
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
35+
<ConfigurationType>Application</ConfigurationType>
36+
<UseDebugLibraries>true</UseDebugLibraries>
37+
<CLRSupport>false</CLRSupport>
38+
<CharacterSet>Unicode</CharacterSet>
39+
</PropertyGroup>
40+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
41+
<ConfigurationType>Application</ConfigurationType>
42+
<UseDebugLibraries>false</UseDebugLibraries>
43+
<CLRSupport>false</CLRSupport>
44+
<CharacterSet>Unicode</CharacterSet>
45+
<WholeProgramOptimization>true</WholeProgramOptimization>
46+
</PropertyGroup>
47+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48+
<ConfigurationType>Application</ConfigurationType>
49+
<UseDebugLibraries>false</UseDebugLibraries>
50+
<CLRSupport>false</CLRSupport>
51+
<CharacterSet>Unicode</CharacterSet>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
53+
</PropertyGroup>
54+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55+
<ImportGroup Label="ExtensionSettings">
56+
</ImportGroup>
57+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
58+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
59+
</ImportGroup>
60+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
61+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<PropertyGroup Label="UserMacros" />
70+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
71+
<LinkIncremental>true</LinkIncremental>
72+
</PropertyGroup>
73+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
74+
<LinkIncremental>true</LinkIncremental>
75+
</PropertyGroup>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
77+
<LinkIncremental>false</LinkIncremental>
78+
</PropertyGroup>
79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
80+
<LinkIncremental>false</LinkIncremental>
81+
</PropertyGroup>
82+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
83+
<ClCompile>
84+
<WarningLevel>Level3</WarningLevel>
85+
<Optimization>Disabled</Optimization>
86+
<PreprocessorDefinitions>WIN32;_IS_NEED_VIRTUAL_ZIP=1;_IS_NEED_FIXED_ZLIB_VERSION=1;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
87+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
88+
<PrecompiledHeaderFile>
89+
</PrecompiledHeaderFile>
90+
</ClCompile>
91+
<Link>
92+
<GenerateDebugInformation>true</GenerateDebugInformation>
93+
<AdditionalDependencies>
94+
</AdditionalDependencies>
95+
</Link>
96+
</ItemDefinitionGroup>
97+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
98+
<ClCompile>
99+
<WarningLevel>Level3</WarningLevel>
100+
<Optimization>Disabled</Optimization>
101+
<PreprocessorDefinitions>WIN32;_IS_NEED_VIRTUAL_ZIP=1;_IS_NEED_FIXED_ZLIB_VERSION=1;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
102+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
103+
<PrecompiledHeaderFile>
104+
</PrecompiledHeaderFile>
105+
</ClCompile>
106+
<Link>
107+
<GenerateDebugInformation>true</GenerateDebugInformation>
108+
<AdditionalDependencies>
109+
</AdditionalDependencies>
110+
</Link>
111+
</ItemDefinitionGroup>
112+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
113+
<ClCompile>
114+
<WarningLevel>Level3</WarningLevel>
115+
<PreprocessorDefinitions>WIN32;_IS_NEED_VIRTUAL_ZIP=1;_IS_NEED_FIXED_ZLIB_VERSION=1;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
116+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
117+
<PrecompiledHeaderFile>
118+
</PrecompiledHeaderFile>
119+
</ClCompile>
120+
<Link>
121+
<GenerateDebugInformation>true</GenerateDebugInformation>
122+
<AdditionalDependencies>
123+
</AdditionalDependencies>
124+
</Link>
125+
</ItemDefinitionGroup>
126+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
127+
<ClCompile>
128+
<WarningLevel>Level3</WarningLevel>
129+
<PreprocessorDefinitions>WIN32;_IS_NEED_VIRTUAL_ZIP=1;_IS_NEED_FIXED_ZLIB_VERSION=1;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
130+
<PrecompiledHeader>NotUsing</PrecompiledHeader>
131+
<PrecompiledHeaderFile>
132+
</PrecompiledHeaderFile>
133+
</ClCompile>
134+
<Link>
135+
<GenerateDebugInformation>true</GenerateDebugInformation>
136+
<AdditionalDependencies>
137+
</AdditionalDependencies>
138+
</Link>
139+
</ItemDefinitionGroup>
140+
<ItemGroup>
141+
<Reference Include="System" />
142+
<Reference Include="System.Data" />
143+
<Reference Include="System.Xml" />
144+
</ItemGroup>
145+
<ItemGroup>
146+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\file_for_patch.c" />
147+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\libHDiffPatch\HPatch\patch.c" />
148+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\libParallel\parallel_channel.cpp" />
149+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\libParallel\parallel_import.cpp" />
150+
<ClCompile Include="..\..\..\ApkDiffPatch\lzma\C\LzFind.c" />
151+
<ClCompile Include="..\..\..\ApkDiffPatch\lzma\C\LzmaDec.c" />
152+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\NewStream.cpp" />
153+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\OldStream.cpp" />
154+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\Patcher.cpp" />
155+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\ZipDiffData.cpp" />
156+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\Zipper.cpp" />
157+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\adler32.c" />
158+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\compress.c" />
159+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\crc32.c" />
160+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\deflate.c" />
161+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\infback.c" />
162+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\inffast.c" />
163+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\inflate.c" />
164+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\inftrees.c" />
165+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\trees.c" />
166+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\uncompr.c" />
167+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\zutil.c" />
168+
<ClCompile Include="..\..\patch\virtual_apk_patch.cpp" />
169+
<ClCompile Include="..\main.cpp" />
170+
</ItemGroup>
171+
<ItemGroup>
172+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\NewStream.h" />
173+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\OldStream.h" />
174+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\Patcher.h" />
175+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\patch_types.h" />
176+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\VirtualZipIO.h" />
177+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\ZipDiffData.h" />
178+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\Zipper.h" />
179+
<ClInclude Include="..\..\patch\virtual_apk_patch.h" />
180+
</ItemGroup>
181+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
182+
<ImportGroup Label="ExtensionTargets">
183+
</ImportGroup>
184+
</Project>
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<ClCompile Include="..\..\patch\virtual_apk_patch.cpp" />
5+
<ClCompile Include="..\main.cpp" />
6+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\NewStream.cpp">
7+
<Filter>ApkDiffPatch</Filter>
8+
</ClCompile>
9+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\OldStream.cpp">
10+
<Filter>ApkDiffPatch</Filter>
11+
</ClCompile>
12+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\Patcher.cpp">
13+
<Filter>ApkDiffPatch</Filter>
14+
</ClCompile>
15+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\ZipDiffData.cpp">
16+
<Filter>ApkDiffPatch</Filter>
17+
</ClCompile>
18+
<ClCompile Include="..\..\..\ApkDiffPatch\src\patch\Zipper.cpp">
19+
<Filter>ApkDiffPatch</Filter>
20+
</ClCompile>
21+
<ClCompile Include="..\..\..\ApkDiffPatch\lzma\C\LzFind.c">
22+
<Filter>lzma</Filter>
23+
</ClCompile>
24+
<ClCompile Include="..\..\..\ApkDiffPatch\lzma\C\LzmaDec.c">
25+
<Filter>lzma</Filter>
26+
</ClCompile>
27+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\adler32.c">
28+
<Filter>zlib</Filter>
29+
</ClCompile>
30+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\compress.c">
31+
<Filter>zlib</Filter>
32+
</ClCompile>
33+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\crc32.c">
34+
<Filter>zlib</Filter>
35+
</ClCompile>
36+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\deflate.c">
37+
<Filter>zlib</Filter>
38+
</ClCompile>
39+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\infback.c">
40+
<Filter>zlib</Filter>
41+
</ClCompile>
42+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\inffast.c">
43+
<Filter>zlib</Filter>
44+
</ClCompile>
45+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\inflate.c">
46+
<Filter>zlib</Filter>
47+
</ClCompile>
48+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\inftrees.c">
49+
<Filter>zlib</Filter>
50+
</ClCompile>
51+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\trees.c">
52+
<Filter>zlib</Filter>
53+
</ClCompile>
54+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\uncompr.c">
55+
<Filter>zlib</Filter>
56+
</ClCompile>
57+
<ClCompile Include="..\..\..\ApkDiffPatch\zlib1.2.11\zutil.c">
58+
<Filter>zlib</Filter>
59+
</ClCompile>
60+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\file_for_patch.c">
61+
<Filter>HDiffPatch</Filter>
62+
</ClCompile>
63+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\libHDiffPatch\HPatch\patch.c">
64+
<Filter>HDiffPatch</Filter>
65+
</ClCompile>
66+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\libParallel\parallel_channel.cpp">
67+
<Filter>HDiffPatch</Filter>
68+
</ClCompile>
69+
<ClCompile Include="..\..\..\ApkDiffPatch\HDiffPatch\libParallel\parallel_import.cpp">
70+
<Filter>HDiffPatch</Filter>
71+
</ClCompile>
72+
</ItemGroup>
73+
<ItemGroup>
74+
<ClInclude Include="..\..\patch\virtual_apk_patch.h" />
75+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\NewStream.h">
76+
<Filter>ApkDiffPatch</Filter>
77+
</ClInclude>
78+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\OldStream.h">
79+
<Filter>ApkDiffPatch</Filter>
80+
</ClInclude>
81+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\patch_types.h">
82+
<Filter>ApkDiffPatch</Filter>
83+
</ClInclude>
84+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\Patcher.h">
85+
<Filter>ApkDiffPatch</Filter>
86+
</ClInclude>
87+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\VirtualZipIO.h">
88+
<Filter>ApkDiffPatch</Filter>
89+
</ClInclude>
90+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\ZipDiffData.h">
91+
<Filter>ApkDiffPatch</Filter>
92+
</ClInclude>
93+
<ClInclude Include="..\..\..\ApkDiffPatch\src\patch\Zipper.h">
94+
<Filter>ApkDiffPatch</Filter>
95+
</ClInclude>
96+
</ItemGroup>
97+
<ItemGroup>
98+
<Filter Include="ApkDiffPatch">
99+
<UniqueIdentifier>{172e7ddf-de29-421e-a9bf-8f08b5bae838}</UniqueIdentifier>
100+
</Filter>
101+
<Filter Include="lzma">
102+
<UniqueIdentifier>{12a0cb01-8df8-41fa-a174-7094b245cfa4}</UniqueIdentifier>
103+
</Filter>
104+
<Filter Include="zlib">
105+
<UniqueIdentifier>{52c2d553-1c2e-46d7-853e-9fad42537d0e}</UniqueIdentifier>
106+
</Filter>
107+
<Filter Include="HDiffPatch">
108+
<UniqueIdentifier>{2f4024ec-afe5-4867-aaec-ab4607a6095d}</UniqueIdentifier>
109+
</Filter>
110+
</ItemGroup>
111+
</Project>

VirtualApkPatch/patch/virtual_apk_patch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static bool t_IVirtualZip_out_endVirtual(IVirtualZip_out* _self){
312312
hpatch_BOOL rt=hpatch_TFileStreamOutput_close(&self->_fileStream);
313313
if (rt) hpatch_TFileStreamOutput_init(&self->_fileStream);
314314
self->base.virtualStream=0;
315-
return (bool)rt;
315+
return (rt!=0);
316316
}
317317

318318

project_fix_unity_jar/fix_unity_jar/builds/vc/FixUnityJar/FixUnityJar.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@
4242
<UseDebugLibraries>false</UseDebugLibraries>
4343
<CLRSupport>false</CLRSupport>
4444
<CharacterSet>Unicode</CharacterSet>
45+
<WholeProgramOptimization>true</WholeProgramOptimization>
4546
</PropertyGroup>
4647
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4748
<ConfigurationType>Application</ConfigurationType>
4849
<UseDebugLibraries>false</UseDebugLibraries>
4950
<CLRSupport>false</CLRSupport>
5051
<CharacterSet>Unicode</CharacterSet>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
5153
</PropertyGroup>
5254
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
5355
<ImportGroup Label="ExtensionSettings">

project_unity_demo/newV/ProjectSettings/ProjectSettings.asset

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ PlayerSettings:
560560
Android: 1
561561
incrementalIl2cppBuild: {}
562562
additionalIl2CppArgs:
563-
scriptingRuntimeVersion: 1
563+
scriptingRuntimeVersion: 0
564564
apiCompatibilityLevelPerPlatform:
565-
Android: 3
565+
Android: 2
566566
m_RenderingPath: 1
567567
m_MobileRenderingPath: 1
568568
metroPackageName: oldV
@@ -640,7 +640,7 @@ PlayerSettings:
640640
daydreamIconBackground: {fileID: 0}
641641
cloudServicesEnabled: {}
642642
facebookSdkVersion: 7.9.4
643-
apiCompatibilityLevel: 3
643+
apiCompatibilityLevel: 2
644644
cloudProjectId:
645645
projectName:
646646
organizationId:

0 commit comments

Comments
 (0)