├── CxdecTest
├── CxdecTest.sln
├── CxdecTest
│ ├── CxdecTest.cpp
│ ├── CxdecTest.vcxproj
│ ├── CxdecTest.vcxproj.filters
│ ├── ReadMe.txt
│ ├── dllmain.cpp
│ ├── stdafx.cpp
│ ├── stdafx.h
│ └── targetver.h
├── Debug
│ └── CxdecTest.dll
└── Release
│ └── CxdecTest.dll
├── Dll1
├── Dll1 - 副本
│ ├── Dll1.cpp
│ ├── Dll1.vcxproj
│ ├── Dll1.vcxproj.filters
│ ├── TVPHook.cpp
│ ├── TVPHook.h
│ ├── detours.h
│ ├── detours.lib
│ ├── detver.h
│ ├── dllmain.cpp
│ ├── stdafx.cpp
│ ├── stdafx.h
│ ├── targetver.h
│ ├── tp_stub.cpp
│ └── tp_stub.h
├── Dll1.sln
└── Dll1
│ ├── Dll1.cpp
│ ├── Dll1.vcxproj
│ ├── Dll1.vcxproj.filters
│ ├── TVPHook.cpp
│ ├── TVPHook.h
│ ├── detours.h
│ ├── detours.lib
│ ├── detver.h
│ ├── dllmain.cpp
│ ├── stdafx.cpp
│ ├── stdafx.h
│ ├── targetver.h
│ ├── tp_stub.cpp
│ └── tp_stub.h
├── FormatCHS.py
├── KRL
├── Release
│ ├── Md5list.dat
│ └── SLLoader.exe
├── SLLoader.sln
└── SLLoader
│ ├── Md5list.dat
│ ├── ReadMe.txt
│ ├── Report.log
│ ├── SLLoader.aps
│ ├── SLLoader.cpp
│ ├── SLLoader.rc
│ ├── SLLoader.vcxproj
│ ├── SLLoader.vcxproj.filters
│ ├── SLLoader.vcxproj.user
│ ├── detours.h
│ ├── detours.lib
│ ├── detours.pdb
│ ├── detver.h
│ ├── icon1.ico
│ ├── resource.h
│ ├── stdafx.cpp
│ ├── stdafx.h
│ └── targetver.h
├── KRPatch 2
├── KRPatch.sln
├── KRPatch
│ ├── KRPatch.aps
│ ├── KRPatch.cpp
│ ├── KRPatch.rc
│ ├── KRPatch.vcxproj
│ ├── KRPatch.vcxproj.filters
│ ├── ReadMe.txt
│ ├── detours.h
│ ├── detours.lib
│ ├── detver.h
│ ├── dllmain.cpp
│ ├── resource.h
│ ├── stdafx.cpp
│ ├── stdafx.h
│ └── targetver.h
└── Release
│ └── KRPatch.dll
├── KRPluginTest - 副本.rar
├── KRPluginTest
├── Debug
│ ├── KRPluginTest.dll
│ ├── KRPluginTest.ilk
│ └── KRPluginTest.pdb
├── KRPluginTest.sln
└── KRPluginTest
│ ├── KRPluginTest.cpp
│ ├── KRPluginTest.vcxproj
│ ├── KRPluginTest.vcxproj.filters
│ ├── ReadMe.txt
│ ├── detours.h
│ ├── detours.lib
│ ├── detver.h
│ ├── dllmain.cpp
│ ├── stdafx.cpp
│ ├── stdafx.h
│ ├── targetver.h
│ ├── tp_stub.cpp
│ └── tp_stub.h
├── Krkr2Packer
├── Krkr2Packer
│ ├── Common.h
│ ├── Krkr2Packer.cpp
│ ├── Krkr2Packer.vcxproj
│ ├── Krkr2Packer.vcxproj.filters
│ ├── Krkr2Packer.vcxproj.user
│ ├── ReadMe.txt
│ ├── Release
│ │ ├── Krkr2Packer.Build.CppClean.log
│ │ ├── Krkr2Packer.log
│ │ ├── Krkr2Packer.obj
│ │ ├── Krkr2Packer.tlog
│ │ │ ├── CL.command.1.tlog
│ │ │ ├── CL.read.1.tlog
│ │ │ ├── CL.write.1.tlog
│ │ │ ├── Krkr2Packer.lastbuildstate
│ │ │ ├── link.command.1.tlog
│ │ │ ├── link.read.1.tlog
│ │ │ └── link.write.1.tlog
│ │ ├── stdafx.obj
│ │ └── vc140.pdb
│ ├── stdafx.cpp
│ ├── stdafx.h
│ ├── targetver.h
│ └── zlib
│ │ ├── CMakeLists.txt
│ │ ├── ChangeLog
│ │ ├── adler32.c
│ │ ├── adler32.obj
│ │ ├── amiga
│ │ ├── Makefile.pup
│ │ └── Makefile.sas
│ │ ├── as400
│ │ ├── bndsrc
│ │ ├── compile.clp
│ │ ├── readme.txt
│ │ └── zlib.inc
│ │ ├── compress.c
│ │ ├── compress.obj
│ │ ├── configure
│ │ └── contrib
│ │ ├── ada
│ │ ├── buffer_demo.adb
│ │ ├── mtest.adb
│ │ ├── read.adb
│ │ ├── readme.txt
│ │ ├── test.adb
│ │ ├── zlib-streams.adb
│ │ ├── zlib-streams.ads
│ │ ├── zlib-thin.adb
│ │ ├── zlib-thin.ads
│ │ ├── zlib.adb
│ │ ├── zlib.ads
│ │ └── zlib.gpr
│ │ ├── amd64
│ │ └── amd64-match.S
│ │ ├── asm686
│ │ ├── README.686
│ │ └── match.S
│ │ ├── blast
│ │ ├── Makefile
│ │ ├── README
│ │ ├── blast.c
│ │ ├── blast.h
│ │ ├── test.pk
│ │ └── test.txt
│ │ ├── delphi
│ │ ├── ZLib.pas
│ │ ├── ZLibConst.pas
│ │ ├── readme.txt
│ │ └── zlibd32.mak
│ │ ├── dotzlib
│ │ ├── DotZLib.build
│ │ ├── DotZLib.chm
│ │ ├── DotZLib.sln
│ │ ├── DotZLib
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── ChecksumImpl.cs
│ │ │ ├── CircularBuffer.cs
│ │ │ ├── CodecBase.cs
│ │ │ ├── Deflater.cs
│ │ │ ├── DotZLib.cs
│ │ │ ├── DotZLib.csproj
│ │ │ ├── GZipStream.cs
│ │ │ ├── Inflater.cs
│ │ │ └── UnitTests.cs
│ │ ├── LICENSE_1_0.txt
│ │ └── readme.txt
│ │ ├── gcc_gvmat64
│ │ └── gvmat64.S
│ │ ├── infback9
│ │ ├── README
│ │ ├── infback9.c
│ │ ├── infback9.h
│ │ ├── inffix9.h
│ │ ├── inflate9.h
│ │ ├── inftree9.c
│ │ └── inftree9.h
│ │ ├── inflate86
│ │ ├── inffas86.c
│ │ └── inffast.S
│ │ ├── iostream
│ │ ├── test.cpp
│ │ ├── zfstream.cpp
│ │ └── zfstream.h
│ │ ├── iostream2
│ │ ├── zstream.h
│ │ └── zstream_test.cpp
│ │ ├── iostream3
│ │ ├── README
│ │ ├── TODO
│ │ ├── test.cc
│ │ ├── zfstream.cc
│ │ └── zfstream.h
│ │ ├── masmx64
│ │ ├── bld_ml64.bat
│ │ ├── gvmat64.asm
│ │ ├── inffas8664.c
│ │ └── inffasx64.asm
│ │ └── masmx86
│ │ ├── bld_ml32.bat
│ │ └── inffas32.asm
└── xp3enc
│ ├── Release
│ ├── xp3enc.dll
│ ├── xp3enc.exp
│ ├── xp3enc.iobj
│ ├── xp3enc.ipdb
│ ├── xp3enc.lib
│ └── xp3enc.pdb
│ ├── xp3enc.VC.VC.opendb
│ ├── xp3enc.VC.db
│ ├── xp3enc.sln
│ └── xp3enc
│ ├── Release
│ ├── vc140.pdb
│ ├── xp3enc.log
│ ├── xp3enc.obj
│ └── xp3enc.tlog
│ │ ├── CL.command.1.tlog
│ │ ├── CL.read.1.tlog
│ │ ├── CL.write.1.tlog
│ │ ├── link.command.1.tlog
│ │ ├── link.read.1.tlog
│ │ ├── link.write.1.tlog
│ │ ├── xp3enc.lastbuildstate
│ │ └── xp3enc.write.1u.tlog
│ ├── xp3enc.cpp
│ ├── xp3enc.def
│ ├── xp3enc.vcxproj
│ └── xp3enc.vcxproj.filters
├── KrkrZ Md5.7z
├── Krkrpatch_RiddleJoker.rar
├── MD5GEN
├── MD5GEN.sln
└── MD5GEN
│ ├── Debug
│ ├── MD5GEN.Build.CppClean.log
│ ├── MD5GEN.log
│ ├── MD5GEN.obj
│ ├── MD5GEN.tlog
│ │ ├── CL.command.1.tlog
│ │ ├── CL.read.1.tlog
│ │ ├── CL.write.1.tlog
│ │ ├── MD5GEN.lastbuildstate
│ │ ├── link.command.1.tlog
│ │ ├── link.read.1.tlog
│ │ └── link.write.1.tlog
│ ├── stdafx.obj
│ ├── vc140.idb
│ └── vc140.pdb
│ ├── MD5GEN.cpp
│ ├── MD5GEN.vcxproj
│ ├── MD5GEN.vcxproj.filters
│ ├── MD5GEN.vcxproj.user
│ ├── Md5list.dat
│ ├── ReadMe.txt
│ ├── Release
│ ├── MD5GEN.log
│ ├── MD5GEN.obj
│ ├── MD5GEN.tlog
│ │ ├── CL.command.1.tlog
│ │ ├── CL.read.1.tlog
│ │ ├── CL.write.1.tlog
│ │ ├── MD5GEN.lastbuildstate
│ │ ├── link.command.1.tlog
│ │ ├── link.read.1.tlog
│ │ └── link.write.1.tlog
│ ├── stdafx.obj
│ └── vc140.pdb
│ ├── patch.xp3
│ ├── stdafx.cpp
│ ├── stdafx.h
│ ├── targetver.h
│ ├── tinyxml2.cpp
│ └── tinyxml2.h
├── QQ截图20161122202720.png
├── QQ截图20161122202803.png
├── QQ截图20161129114000.png
├── QQ截图20170324141213.png
├── README.md
├── Win32Project1
├── Debug
│ └── Win32Project1.dll
├── Win32Project1.sln
└── Win32Project1
│ ├── ReadMe.txt
│ ├── Win32Project1.cpp
│ ├── Win32Project1.vcxproj
│ ├── Win32Project1.vcxproj.filters
│ ├── dllmain.cpp
│ ├── stdafx.cpp
│ ├── stdafx.h
│ ├── targetver.h
│ ├── tjsString.cpp
│ └── tjsString.h
├── index.txt
├── md5 procs.txt
├── merge.py
├── namereplace.py
├── outfile UTF16.py
├── outfile.py
├── replace.py
├── script.txt
├── spilt.py
├── xp3enc 3
├── Release
│ ├── xp3enc.dll
│ ├── xp3enc.exp
│ ├── xp3enc.iobj
│ ├── xp3enc.ipdb
│ ├── xp3enc.lib
│ └── xp3enc.pdb
├── xp3enc.VC.db
├── xp3enc.sln
└── xp3enc
│ ├── Release
│ ├── vc140.pdb
│ ├── xp3enc.log
│ ├── xp3enc.obj
│ └── xp3enc.tlog
│ │ ├── CL.command.1.tlog
│ │ ├── CL.read.1.tlog
│ │ ├── CL.write.1.tlog
│ │ ├── link.command.1.tlog
│ │ ├── link.read.1.tlog
│ │ ├── link.write.1.tlog
│ │ ├── xp3enc.lastbuildstate
│ │ └── xp3enc.write.1u.tlog
│ ├── xp3enc.cpp
│ ├── xp3enc.def
│ ├── xp3enc.vcxproj
│ └── xp3enc.vcxproj.filters
├── xp3struct.txt
├── zlibdecomp.py
├── zlibzip.py
└── 添加菜单.txt
/CxdecTest/CxdecTest.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26228.4
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CxdecTest", "CxdecTest\CxdecTest.vcxproj", "{E06EF1D0-D264-41BD-A182-FB49239709FF}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Debug|x64.ActiveCfg = Debug|x64
17 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Debug|x64.Build.0 = Debug|x64
18 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Debug|x86.ActiveCfg = Debug|Win32
19 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Debug|x86.Build.0 = Debug|Win32
20 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Release|x64.ActiveCfg = Release|x64
21 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Release|x64.Build.0 = Release|x64
22 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Release|x86.ActiveCfg = Release|Win32
23 | {E06EF1D0-D264-41BD-A182-FB49239709FF}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/CxdecTest/CxdecTest/CxdecTest.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/CxdecTest/CxdecTest/CxdecTest.cpp
--------------------------------------------------------------------------------
/CxdecTest/CxdecTest/CxdecTest.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 |
29 |
30 | 源文件
31 |
32 |
33 | 源文件
34 |
35 |
36 | 源文件
37 |
38 |
39 |
--------------------------------------------------------------------------------
/CxdecTest/CxdecTest/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 动态链接库:CxdecTest 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 CxdecTest DLL。
6 |
7 | 本文件概要介绍组成 CxdecTest 应用程序的每个文件的内容。
8 |
9 |
10 | CxdecTest.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | CxdecTest.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | CxdecTest.cpp
17 | 这是主 DLL 源文件。
18 |
19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。
20 |
21 | /////////////////////////////////////////////////////////////////////////////
22 | 其他标准文件:
23 |
24 | StdAfx.h, StdAfx.cpp
25 | 这些文件用于生成名为 CxdecTest.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
26 |
27 | /////////////////////////////////////////////////////////////////////////////
28 | 其他注释:
29 |
30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
31 |
32 | /////////////////////////////////////////////////////////////////////////////
33 |
--------------------------------------------------------------------------------
/CxdecTest/CxdecTest/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/CxdecTest/CxdecTest/dllmain.cpp
--------------------------------------------------------------------------------
/CxdecTest/CxdecTest/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/CxdecTest/CxdecTest/stdafx.cpp
--------------------------------------------------------------------------------
/CxdecTest/CxdecTest/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/CxdecTest/CxdecTest/stdafx.h
--------------------------------------------------------------------------------
/CxdecTest/CxdecTest/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/CxdecTest/CxdecTest/targetver.h
--------------------------------------------------------------------------------
/CxdecTest/Debug/CxdecTest.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/CxdecTest/Debug/CxdecTest.dll
--------------------------------------------------------------------------------
/CxdecTest/Release/CxdecTest.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/CxdecTest/Release/CxdecTest.dll
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/Dll1.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/Dll1.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/Dll1.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 | 头文件
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 | 头文件
29 |
30 |
31 |
32 |
33 | 源文件
34 |
35 |
36 | 源文件
37 |
38 |
39 | 源文件
40 |
41 |
42 | 源文件
43 |
44 |
45 | 源文件
46 |
47 |
48 |
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/TVPHook.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/TVPHook.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/TVPHook.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "tp_stub.h"
3 | /*V2Link*/
4 | typedef HRESULT(__stdcall *PfuncV2Link)(iTVPFunctionExporter *);
5 | /*CreateStream*/
6 | typedef tTJSBinaryStream* (__fastcall *PfuncCreateStream)(const ttstr &, tjs_uint32);
7 | /*HOOK MultiByteToWideChar*/
8 | typedef int(WINAPI *PfuncMultiByteToWideChar)(
9 | _In_ UINT CodePage,
10 | _In_ DWORD dwFlags,
11 | _In_ LPCSTR lpMultiByteStr,
12 | _In_ int cbMultiByte,
13 | _Out_opt_ LPWSTR lpWideCharStr,
14 | _In_ int cchWideChar);
15 | /*HOOK LoadLibraryW*/
16 | typedef HMODULE(WINAPI *PfuncLoadLibraryW)(
17 | _In_ LPCTSTR lpFileName
18 | );
19 | class TVPHook
20 | {
21 | public:
22 | static TVPHook* handle;
23 |
24 | TVPHook();
25 | ~TVPHook();
26 | bool init();
27 | bool uninit();
28 | void initKrkrHook(LPCWSTR lpFileName, HMODULE Module);
29 | IStream* CreateLocalStream(LPCWSTR lpFileName);
30 | PVOID g_POldV2Link;
31 | PVOID g_POldCreateStream;
32 | PVOID g_pOldMultiByteToWideChar;
33 | PVOID g_pOldLoadLibraryW;
34 | iTVPFunctionExporter* TVPFunctionExporter;
35 | bool inited;
36 | };
37 |
38 | TVPHook* GetobjTVPhook();
39 |
40 |
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/detours.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/detours.lib
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/detver.h:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Common version parameters.
4 | //
5 | // Microsoft Research Detours Package, Version 3.0 Build_339.
6 | //
7 | // Copyright (c) Microsoft Corporation. All rights reserved.
8 | //
9 |
10 | #define _USING_V110_SDK71_ 1
11 | #include "winver.h"
12 | #if 0
13 | #include
14 | #include
15 | #else
16 | #ifndef DETOURS_STRINGIFY
17 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x)
18 | #define DETOURS_STRINGIFY_(x) #x
19 | #endif
20 |
21 | #define VER_FILEFLAGSMASK 0x3fL
22 | #define VER_FILEFLAGS 0x0L
23 | #define VER_FILEOS 0x00040004L
24 | #define VER_FILETYPE 0x00000002L
25 | #define VER_FILESUBTYPE 0x00000000L
26 | #endif
27 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS)
28 |
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/dllmain.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/stdafx.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/stdafx.h
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/targetver.h
--------------------------------------------------------------------------------
/Dll1/Dll1 - 副本/tp_stub.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1 - 副本/tp_stub.h
--------------------------------------------------------------------------------
/Dll1/Dll1.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.27130.2024
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Dll1", "Dll1\Dll1.vcxproj", "{CE50D259-FE6F-4D37-8CE3-018CD1B318CD}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Debug|x64.ActiveCfg = Debug|x64
17 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Debug|x64.Build.0 = Debug|x64
18 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Debug|x86.ActiveCfg = Debug|Win32
19 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Debug|x86.Build.0 = Debug|Win32
20 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Release|x64.ActiveCfg = Release|x64
21 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Release|x64.Build.0 = Release|x64
22 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Release|x86.ActiveCfg = Release|Win32
23 | {CE50D259-FE6F-4D37-8CE3-018CD1B318CD}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {FD4415ED-4BC4-404B-948B-DC181FE60976}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/Dll1/Dll1/Dll1.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/Dll1.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1/Dll1.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 | 头文件
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 | 头文件
29 |
30 |
31 |
32 |
33 | 源文件
34 |
35 |
36 | 源文件
37 |
38 |
39 | 源文件
40 |
41 |
42 | 源文件
43 |
44 |
45 | 源文件
46 |
47 |
48 |
--------------------------------------------------------------------------------
/Dll1/Dll1/TVPHook.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/TVPHook.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1/TVPHook.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "tp_stub.h"
3 | /*V2Link*/
4 | typedef HRESULT(__stdcall *PfuncV2Link)(iTVPFunctionExporter *);
5 | /*CreateStream*/
6 | typedef tTJSBinaryStream* (__fastcall *PfuncCreateStream)(const ttstr &, tjs_uint32);
7 | /*HOOK MultiByteToWideChar*/
8 | typedef int(WINAPI *PfuncMultiByteToWideChar)(
9 | _In_ UINT CodePage,
10 | _In_ DWORD dwFlags,
11 | _In_ LPCSTR lpMultiByteStr,
12 | _In_ int cbMultiByte,
13 | _Out_opt_ LPWSTR lpWideCharStr,
14 | _In_ int cchWideChar);
15 | /*HOOK LoadLibraryW*/
16 | typedef HMODULE(WINAPI *PfuncLoadLibraryW)(
17 | _In_ LPCTSTR lpFileName
18 | );
19 | class TVPHook
20 | {
21 | public:
22 | static TVPHook* handle;
23 |
24 | TVPHook();
25 | ~TVPHook();
26 | bool init();
27 | bool uninit();
28 | //void initKrkrHook(LPCWSTR lpFileName, HMODULE Module);
29 | IStream* CreateLocalStream(LPCWSTR lpFileName);
30 | PVOID g_POldV2Link;
31 | PVOID g_POldCreateStream;
32 | PVOID g_pOldMultiByteToWideChar;
33 | PVOID g_pOldLoadLibraryW;
34 | iTVPFunctionExporter* TVPFunctionExporter;
35 | bool inited;
36 | };
37 |
38 | TVPHook* GetobjTVPhook();
39 |
40 |
--------------------------------------------------------------------------------
/Dll1/Dll1/detours.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/detours.lib
--------------------------------------------------------------------------------
/Dll1/Dll1/detver.h:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Common version parameters.
4 | //
5 | // Microsoft Research Detours Package, Version 3.0 Build_339.
6 | //
7 | // Copyright (c) Microsoft Corporation. All rights reserved.
8 | //
9 |
10 | #define _USING_V110_SDK71_ 1
11 | #include "winver.h"
12 | #if 0
13 | #include
14 | #include
15 | #else
16 | #ifndef DETOURS_STRINGIFY
17 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x)
18 | #define DETOURS_STRINGIFY_(x) #x
19 | #endif
20 |
21 | #define VER_FILEFLAGSMASK 0x3fL
22 | #define VER_FILEFLAGS 0x0L
23 | #define VER_FILEOS 0x00040004L
24 | #define VER_FILETYPE 0x00000002L
25 | #define VER_FILESUBTYPE 0x00000000L
26 | #endif
27 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS)
28 |
--------------------------------------------------------------------------------
/Dll1/Dll1/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/dllmain.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/stdafx.cpp
--------------------------------------------------------------------------------
/Dll1/Dll1/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/stdafx.h
--------------------------------------------------------------------------------
/Dll1/Dll1/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/targetver.h
--------------------------------------------------------------------------------
/Dll1/Dll1/tp_stub.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Dll1/Dll1/tp_stub.h
--------------------------------------------------------------------------------
/FormatCHS.py:
--------------------------------------------------------------------------------
1 | #encoding=utf-8
2 | import os
3 | import re
4 |
5 | def proc(raw,trans):
6 | ptr1=0
7 | tmpptr=0
8 | for ptr1 in range(0,len(raw),1):
9 | #print ptr1
10 | if len(raw[ptr1])==0:
11 | continue
12 | elif raw[ptr1].startswith('<'):
13 | tmpptr=trans.index(raw[ptr1])
14 | if raw[ptr1+1].startswith('//Name'):
15 | raw[ptr1+4]=trans[tmpptr+4]
16 | else:
17 | raw[ptr1+3]=trans[tmpptr+3]
18 | else:
19 | continue
20 | return raw
21 |
22 | def estarray(lines):
23 | array=[]
24 | for l in lines:
25 | l=l.strip('\n')
26 | if len(l)==0:
27 | continue
28 | else:
29 | array.append(l)
30 | return array
31 |
32 |
33 | path1='txt'
34 | path2='txtCHS'
35 | path3='outputtxt'
36 | for f in os.listdir(path1):
37 | trans=[]
38 | fs1=open(os.path.join(path1,f),'rb')
39 | ls=fs1.read().decode('u16').split('\r\n')
40 | fs2=open(os.path.join(path2,f.replace('.ks','.txt')),'rb')
41 | rs=fs2.read().decode('u16').split('\r\n')
42 | trans=estarray(rs)
43 | raw=estarray(ls)
44 | newls=proc(ls,trans)
45 | fs3=open(os.path.join(path3,f.replace('.ks','.ks')),'wb')
46 | fs3.write('\r\n'.join(newls).encode('u16'))
47 | fs1.close()
48 | fs2.close()
49 | fs3.close()
50 |
--------------------------------------------------------------------------------
/KRL/Release/Md5list.dat:
--------------------------------------------------------------------------------
1 | ---MD5LIST BEGIN---
2 | aschsdata.xp3
3 | 3a1fc13f0532fabd545e5b49ddbe5bd9
4 | birthday_vol1.xp3
5 | a2da4a651f48d4eda5e17588f3d7d8ec
6 | birthday_vol1.xp3.sig
7 | 9c1c4e814c5583c25caa67287b77d6f2
8 | birthday_vol2.xp3
9 | 2069059eabe19ce3116f242cb38f564e
10 | birthday_vol2.xp3.sig
11 | 4e3445a5ef7bd86b039aebe234fc474c
12 | birthday_vol3.xp3
13 | 5f591e5528baedb55afa8faa4ae6e059
14 | birthday_vol3.xp3.sig
15 | b1dac64945a6af0a6f735c1588d169e6
16 | birthday_vol4.xp3
17 | 04ac71ae9231595175b1925dc8fed16f
18 | birthday_vol4.xp3.sig
19 | 32539fb35dcddeeded89c396d9e9e140
20 | data.xp3
21 | 9c78fea7e5af6a604e853bf873ac03fc
22 | data.xp3.sig
23 | b3fc89f57efc96d00a48c54b095a7752
24 | imagechs.xp3
25 | 87a79dfcd435faedae62532f83cc0890
26 | patch.xp3
27 | d2414f8a0d9b5552a0d8e4a02b364072
28 | patch.xp3.sig
29 | 9b153949129f774496d000d78895f047
30 | patch10.xp3
31 | 0069e82d80bc204854949bd57aded031
32 | patch10.xp3.sig
33 | fb52469906aa552e2ef559b9c6781665
34 | patch2.xp3
35 | d232c522908675df99a12d8c68bf149f
36 | patch2.xp3.sig
37 | 42bf2f602815a6d3d7346c8587510acb
38 | patch3.xp3
39 | 57b9f277318ced22799688f9f6dcaf1f
40 | patch3.xp3.sig
41 | 9e327a153ae0d1de2b80530179a61e67
42 | patch4.xp3
43 | 82abf67c32d5078a8892a9361063bb36
44 | patch4.xp3.sig
45 | 23d0fc2b0c6b136f979704b2cba32a19
46 | patch5.xp3
47 | 45723900803703222ca33bc5bbe6aaa1
48 | patch5.xp3.sig
49 | fd595044228078d0f9cb043872eb4afe
50 | patch6.xp3
51 | 99b9fdbd3e663a40d4e3b61c5e1dc97c
52 | patch6.xp3.sig
53 | d808385b30c172a6a2dde878e53d1c8a
54 | patch7.xp3
55 | 09aff2bfbd033d75f6f38bca94cee303
56 | patch7.xp3.sig
57 | 1a66e71eef343a2baf958cfd9a099cf1
58 | patch8.xp3
59 | c19100c09094e04a7e10ee96de665112
60 | patch8.xp3.sig
61 | 031c0be76831cf641ab3a12320beb459
62 | patch9.xp3
63 | e5294c85b83bb54cc867e0724781528e
64 | patch9.xp3.sig
65 | f94f6da9619ca7df789e92b1b1b19f2f
66 | pc_p1.xp3
67 | c8980661a6f8261759f1573bafcc65ff
68 | pc_p1.xp3.sig
69 | 8a2f0bd171be8689e4ad20402509047c
70 | pc_p10.xp3
71 | b8e43bc8806b2c1cd0ec148da71c8d09
72 | pc_p10.xp3.sig
73 | 92c5c8fc2200ed30f85e0279b7511381
74 | pc_p11.xp3
75 | dfa5b6f18893121ea99b5fb3afa1f0ef
76 | pc_p11.xp3.sig
77 | dc9b5beef92c5315b5da9d51276e5b70
78 | pc_p12.xp3
79 | a55f9ba4113e2a93753e6f3710ec3e0f
80 | pc_p12.xp3.sig
81 | de5b05eff571618f62bbc1657b1eed09
82 | pc_p2.xp3
83 | b0e2603b19eeac124fab8151a4d3c410
84 | pc_p2.xp3.sig
85 | ae5a32f7d9f73fe7ef4e6e4ed959498a
86 | pc_p3.xp3
87 | 551844b6a35a5ada05cec67f554a229b
88 | pc_p3.xp3.sig
89 | 6c9be41e7432a3249fa87aa61dc7a56d
90 | pc_p4.xp3
91 | 21fc98b3211700789d85bc06e5b1e2fc
92 | pc_p4.xp3.sig
93 | 68aceaa97a679e372c0227bcd9ab913f
94 | pc_p5.xp3
95 | 2f2f283b1d2609b58ac18ec00a40795d
96 | pc_p5.xp3.sig
97 | 4186085c07497366977ccf2b16b62ded
98 | pc_p6.xp3
99 | d8f741755dca3003da265e315b5884e9
100 | pc_p6.xp3.sig
101 | f239c2451191063882e50b93adf242ed
102 | pc_p7.xp3
103 | 4a21765e809521db09ccf71833de31f5
104 | pc_p7.xp3.sig
105 | 75903abeb550867353c76a958ebf6929
106 | pc_p8.xp3
107 | edd8ea8432e2a8736ddd45717b54fff6
108 | pc_p8.xp3.sig
109 | 9a85f22f4384c0dbb612b058bea194e2
110 | pc_p9.xp3
111 | 7bdad2509f8693afbb34834d97ce40d2
112 | pc_p9.xp3.sig
113 | 219dc2a1434904366fc4398ad97c2f1e
114 | pc_psp01.xp3
115 | f370a79cfe4d0928679372ff1e2426ca
116 | pc_psp01.xp3.sig
117 | e7ca6909f9c009e33fbb2a430b49b6e9
118 | pc_psp02.xp3
119 | 11c2a960a41fa70b361ee69e43fd95b1
120 | pc_psp02.xp3.sig
121 | 50d5f8651eb4ef90e97894d9a9f9a534
122 | script.xp3
123 | a0318662e984fa715341c104b7a82590
124 | ---MD5LIST END---
125 |
--------------------------------------------------------------------------------
/KRL/Release/SLLoader.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/Release/SLLoader.exe
--------------------------------------------------------------------------------
/KRL/SLLoader.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SLLoader", "SLLoader\SLLoader.vcxproj", "{225E3FEC-29C3-467F-946C-E8697D6E45CB}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Debug|x64.ActiveCfg = Debug|x64
17 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Debug|x64.Build.0 = Debug|x64
18 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Debug|x86.ActiveCfg = Debug|Win32
19 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Debug|x86.Build.0 = Debug|Win32
20 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Release|x64.ActiveCfg = Release|x64
21 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Release|x64.Build.0 = Release|x64
22 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Release|x86.ActiveCfg = Release|Win32
23 | {225E3FEC-29C3-467F-946C-E8697D6E45CB}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/KRL/SLLoader/Md5list.dat:
--------------------------------------------------------------------------------
1 | ---MD5LIST BEGIN---
2 | aschsdata.xp3
3 | 3a1fc13f0532fabd545e5b49ddbe5bd9
4 | birthday_vol1.xp3
5 | a2da4a651f48d4eda5e17588f3d7d8ec
6 | birthday_vol1.xp3.sig
7 | 9c1c4e814c5583c25caa67287b77d6f2
8 | birthday_vol2.xp3
9 | 2069059eabe19ce3116f242cb38f564e
10 | birthday_vol2.xp3.sig
11 | 4e3445a5ef7bd86b039aebe234fc474c
12 | birthday_vol3.xp3
13 | 5f591e5528baedb55afa8faa4ae6e059
14 | birthday_vol3.xp3.sig
15 | b1dac64945a6af0a6f735c1588d169e6
16 | birthday_vol4.xp3
17 | 04ac71ae9231595175b1925dc8fed16f
18 | birthday_vol4.xp3.sig
19 | 32539fb35dcddeeded89c396d9e9e140
20 | data.xp3
21 | 9c78fea7e5af6a604e853bf873ac03fc
22 | data.xp3.sig
23 | b3fc89f57efc96d00a48c54b095a7752
24 | imagechs.xp3
25 | 87a79dfcd435faedae62532f83cc0890
26 | patch.xp3
27 | d2414f8a0d9b5552a0d8e4a02b364072
28 | patch.xp3.sig
29 | 9b153949129f774496d000d78895f047
30 | patch10.xp3
31 | 0069e82d80bc204854949bd57aded031
32 | patch10.xp3.sig
33 | fb52469906aa552e2ef559b9c6781665
34 | patch2.xp3
35 | d232c522908675df99a12d8c68bf149f
36 | patch2.xp3.sig
37 | 42bf2f602815a6d3d7346c8587510acb
38 | patch3.xp3
39 | 57b9f277318ced22799688f9f6dcaf1f
40 | patch3.xp3.sig
41 | 9e327a153ae0d1de2b80530179a61e67
42 | patch4.xp3
43 | 82abf67c32d5078a8892a9361063bb36
44 | patch4.xp3.sig
45 | 23d0fc2b0c6b136f979704b2cba32a19
46 | patch5.xp3
47 | 45723900803703222ca33bc5bbe6aaa1
48 | patch5.xp3.sig
49 | fd595044228078d0f9cb043872eb4afe
50 | patch6.xp3
51 | 99b9fdbd3e663a40d4e3b61c5e1dc97c
52 | patch6.xp3.sig
53 | d808385b30c172a6a2dde878e53d1c8a
54 | patch7.xp3
55 | 09aff2bfbd033d75f6f38bca94cee303
56 | patch7.xp3.sig
57 | 1a66e71eef343a2baf958cfd9a099cf1
58 | patch8.xp3
59 | c19100c09094e04a7e10ee96de665112
60 | patch8.xp3.sig
61 | 031c0be76831cf641ab3a12320beb459
62 | patch9.xp3
63 | e5294c85b83bb54cc867e0724781528e
64 | patch9.xp3.sig
65 | f94f6da9619ca7df789e92b1b1b19f2f
66 | pc_p1.xp3
67 | c8980661a6f8261759f1573bafcc65ff
68 | pc_p1.xp3.sig
69 | 8a2f0bd171be8689e4ad20402509047c
70 | pc_p10.xp3
71 | b8e43bc8806b2c1cd0ec148da71c8d09
72 | pc_p10.xp3.sig
73 | 92c5c8fc2200ed30f85e0279b7511381
74 | pc_p11.xp3
75 | dfa5b6f18893121ea99b5fb3afa1f0ef
76 | pc_p11.xp3.sig
77 | dc9b5beef92c5315b5da9d51276e5b70
78 | pc_p12.xp3
79 | a55f9ba4113e2a93753e6f3710ec3e0f
80 | pc_p12.xp3.sig
81 | de5b05eff571618f62bbc1657b1eed09
82 | pc_p2.xp3
83 | b0e2603b19eeac124fab8151a4d3c410
84 | pc_p2.xp3.sig
85 | ae5a32f7d9f73fe7ef4e6e4ed959498a
86 | pc_p3.xp3
87 | 551844b6a35a5ada05cec67f554a229b
88 | pc_p3.xp3.sig
89 | 6c9be41e7432a3249fa87aa61dc7a56d
90 | pc_p4.xp3
91 | 21fc98b3211700789d85bc06e5b1e2fc
92 | pc_p4.xp3.sig
93 | 68aceaa97a679e372c0227bcd9ab913f
94 | pc_p5.xp3
95 | 2f2f283b1d2609b58ac18ec00a40795d
96 | pc_p5.xp3.sig
97 | 4186085c07497366977ccf2b16b62ded
98 | pc_p6.xp3
99 | d8f741755dca3003da265e315b5884e9
100 | pc_p6.xp3.sig
101 | f239c2451191063882e50b93adf242ed
102 | pc_p7.xp3
103 | 4a21765e809521db09ccf71833de31f5
104 | pc_p7.xp3.sig
105 | 75903abeb550867353c76a958ebf6929
106 | pc_p8.xp3
107 | edd8ea8432e2a8736ddd45717b54fff6
108 | pc_p8.xp3.sig
109 | 9a85f22f4384c0dbb612b058bea194e2
110 | pc_p9.xp3
111 | 7bdad2509f8693afbb34834d97ce40d2
112 | pc_p9.xp3.sig
113 | 219dc2a1434904366fc4398ad97c2f1e
114 | pc_psp01.xp3
115 | f370a79cfe4d0928679372ff1e2426ca
116 | pc_psp01.xp3.sig
117 | e7ca6909f9c009e33fbb2a430b49b6e9
118 | pc_psp02.xp3
119 | 11c2a960a41fa70b361ee69e43fd95b1
120 | pc_psp02.xp3.sig
121 | 50d5f8651eb4ef90e97894d9a9f9a534
122 | script.xp3
123 | a0318662e984fa715341c104b7a82590
124 | ---MD5LIST END---
125 |
--------------------------------------------------------------------------------
/KRL/SLLoader/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 控制台应用程序:SLLoader 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 SLLoader 应用程序。
6 |
7 | 本文件概要介绍组成 SLLoader 应用程序的每个文件的内容。
8 |
9 |
10 | SLLoader.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | SLLoader.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | SLLoader.cpp
17 | 这是主应用程序源文件。
18 |
19 | /////////////////////////////////////////////////////////////////////////////
20 | 其他标准文件:
21 |
22 | StdAfx.h, StdAfx.cpp
23 | 这些文件用于生成名为 SLLoader.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
24 |
25 | /////////////////////////////////////////////////////////////////////////////
26 | 其他注释:
27 |
28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
29 |
30 | /////////////////////////////////////////////////////////////////////////////
31 |
--------------------------------------------------------------------------------
/KRL/SLLoader/Report.log:
--------------------------------------------------------------------------------
1 | Load MD5 List!
2 | Load MD5 List Finish!
3 | File Check Processing!!!
4 | CreateFile go wrong :2
5 | GetFileSize go wrong:6
6 | An Unexpected Error occurred: bad array new length
7 | Processing File: aschsdata.xp3
8 |
--------------------------------------------------------------------------------
/KRL/SLLoader/SLLoader.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/SLLoader.aps
--------------------------------------------------------------------------------
/KRL/SLLoader/SLLoader.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/SLLoader.cpp
--------------------------------------------------------------------------------
/KRL/SLLoader/SLLoader.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/SLLoader.rc
--------------------------------------------------------------------------------
/KRL/SLLoader/SLLoader.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 | 头文件
29 |
30 |
31 | 头文件
32 |
33 |
34 |
35 |
36 | 源文件
37 |
38 |
39 | 源文件
40 |
41 |
42 |
43 |
44 | 资源文件
45 |
46 |
47 |
48 |
49 | 资源文件
50 |
51 |
52 |
--------------------------------------------------------------------------------
/KRL/SLLoader/SLLoader.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/KRL/SLLoader/detours.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/detours.lib
--------------------------------------------------------------------------------
/KRL/SLLoader/detours.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/detours.pdb
--------------------------------------------------------------------------------
/KRL/SLLoader/detver.h:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Common version parameters.
4 | //
5 | // Microsoft Research Detours Package, Version 3.0 Build_316.
6 | //
7 | // Copyright (c) Microsoft Corporation. All rights reserved.
8 | //
9 |
10 | #ifndef DETOURS_STRINGIFY
11 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x)
12 | #define DETOURS_STRINGIFY_(x) #x
13 | #endif
14 |
15 | #define VER_FILEFLAGSMASK 0x3fL
16 | #define VER_FILEFLAGS 0x0L
17 | #define VER_FILEOS 0x00040004L
18 | #define VER_FILETYPE 0x00000002L
19 | #define VER_FILESUBTYPE 0x00000000L
20 |
21 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS)
22 |
--------------------------------------------------------------------------------
/KRL/SLLoader/icon1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/icon1.ico
--------------------------------------------------------------------------------
/KRL/SLLoader/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/resource.h
--------------------------------------------------------------------------------
/KRL/SLLoader/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/stdafx.cpp
--------------------------------------------------------------------------------
/KRL/SLLoader/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/stdafx.h
--------------------------------------------------------------------------------
/KRL/SLLoader/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRL/SLLoader/targetver.h
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.21005.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "KRPatch", "KRPatch\KRPatch.vcxproj", "{B255D7E8-8394-4B6B-819A-C7EE31F467D5}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Win32 = Debug|Win32
11 | Release|Win32 = Release|Win32
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {B255D7E8-8394-4B6B-819A-C7EE31F467D5}.Debug|Win32.ActiveCfg = Debug|Win32
15 | {B255D7E8-8394-4B6B-819A-C7EE31F467D5}.Debug|Win32.Build.0 = Debug|Win32
16 | {B255D7E8-8394-4B6B-819A-C7EE31F467D5}.Release|Win32.ActiveCfg = Release|Win32
17 | {B255D7E8-8394-4B6B-819A-C7EE31F467D5}.Release|Win32.Build.0 = Release|Win32
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/KRPatch.aps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/KRPatch.aps
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/KRPatch.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/KRPatch.cpp
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/KRPatch.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/KRPatch.rc
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/KRPatch.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 | 头文件
29 |
30 |
31 | 头文件
32 |
33 |
34 | 头文件
35 |
36 |
37 |
38 |
39 | 源文件
40 |
41 |
42 | 源文件
43 |
44 |
45 | 源文件
46 |
47 |
48 |
49 |
50 | 资源文件
51 |
52 |
53 |
54 |
55 | 资源文件
56 |
57 |
58 |
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 动态链接库:KRPatch 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 KRPatch DLL。
6 |
7 | 本文件概要介绍组成 KRPatch 应用程序的每个文件的内容。
8 |
9 |
10 | KRPatch.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | KRPatch.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | KRPatch.cpp
17 | 这是主 DLL 源文件。
18 |
19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。
20 |
21 | /////////////////////////////////////////////////////////////////////////////
22 | 其他标准文件:
23 |
24 | StdAfx.h, StdAfx.cpp
25 | 这些文件用于生成名为 KRPatch.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
26 |
27 | /////////////////////////////////////////////////////////////////////////////
28 | 其他注释:
29 |
30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
31 |
32 | /////////////////////////////////////////////////////////////////////////////
33 |
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/detours.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/detours.lib
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/detver.h:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Common version parameters.
4 | //
5 | // Microsoft Research Detours Package, Version 3.0 Build_316.
6 | //
7 | // Copyright (c) Microsoft Corporation. All rights reserved.
8 | //
9 |
10 | #ifndef DETOURS_STRINGIFY
11 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x)
12 | #define DETOURS_STRINGIFY_(x) #x
13 | #endif
14 |
15 | #define VER_FILEFLAGSMASK 0x3fL
16 | #define VER_FILEFLAGS 0x0L
17 | #define VER_FILEOS 0x00040004L
18 | #define VER_FILETYPE 0x00000002L
19 | #define VER_FILESUBTYPE 0x00000000L
20 |
21 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS)
22 |
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/dllmain.cpp
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/resource.h
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/stdafx.cpp
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/stdafx.h
--------------------------------------------------------------------------------
/KRPatch 2/KRPatch/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/KRPatch/targetver.h
--------------------------------------------------------------------------------
/KRPatch 2/Release/KRPatch.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPatch 2/Release/KRPatch.dll
--------------------------------------------------------------------------------
/KRPluginTest - 副本.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest - 副本.rar
--------------------------------------------------------------------------------
/KRPluginTest/Debug/KRPluginTest.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/Debug/KRPluginTest.dll
--------------------------------------------------------------------------------
/KRPluginTest/Debug/KRPluginTest.ilk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/Debug/KRPluginTest.ilk
--------------------------------------------------------------------------------
/KRPluginTest/Debug/KRPluginTest.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/Debug/KRPluginTest.pdb
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26228.4
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "KRPluginTest", "KRPluginTest\KRPluginTest.vcxproj", "{822EE260-C846-444D-B087-A82A787F75F5}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {822EE260-C846-444D-B087-A82A787F75F5}.Debug|x64.ActiveCfg = Debug|x64
17 | {822EE260-C846-444D-B087-A82A787F75F5}.Debug|x64.Build.0 = Debug|x64
18 | {822EE260-C846-444D-B087-A82A787F75F5}.Debug|x86.ActiveCfg = Debug|Win32
19 | {822EE260-C846-444D-B087-A82A787F75F5}.Debug|x86.Build.0 = Debug|Win32
20 | {822EE260-C846-444D-B087-A82A787F75F5}.Release|x64.ActiveCfg = Release|x64
21 | {822EE260-C846-444D-B087-A82A787F75F5}.Release|x64.Build.0 = Release|x64
22 | {822EE260-C846-444D-B087-A82A787F75F5}.Release|x86.ActiveCfg = Release|Win32
23 | {822EE260-C846-444D-B087-A82A787F75F5}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/KRPluginTest.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/KRPluginTest/KRPluginTest.cpp
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/KRPluginTest.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 | 头文件
29 |
30 |
31 | 头文件
32 |
33 |
34 |
35 |
36 | 源文件
37 |
38 |
39 | 源文件
40 |
41 |
42 | 源文件
43 |
44 |
45 | 源文件
46 |
47 |
48 |
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 动态链接库:KRPluginTest 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 KRPluginTest DLL。
6 |
7 | 本文件概要介绍组成 KRPluginTest 应用程序的每个文件的内容。
8 |
9 |
10 | KRPluginTest.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | KRPluginTest.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | KRPluginTest.cpp
17 | 这是主 DLL 源文件。
18 |
19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。
20 |
21 | /////////////////////////////////////////////////////////////////////////////
22 | 其他标准文件:
23 |
24 | StdAfx.h, StdAfx.cpp
25 | 这些文件用于生成名为 KRPluginTest.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
26 |
27 | /////////////////////////////////////////////////////////////////////////////
28 | 其他注释:
29 |
30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
31 |
32 | /////////////////////////////////////////////////////////////////////////////
33 |
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/detours.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/KRPluginTest/detours.lib
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/detver.h:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////////////////////////
2 | //
3 | // Common version parameters.
4 | //
5 | // Microsoft Research Detours Package, Version 3.0 Build_316.
6 | //
7 | // Copyright (c) Microsoft Corporation. All rights reserved.
8 | //
9 |
10 | #ifndef DETOURS_STRINGIFY
11 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x)
12 | #define DETOURS_STRINGIFY_(x) #x
13 | #endif
14 |
15 | #define VER_FILEFLAGSMASK 0x3fL
16 | #define VER_FILEFLAGS 0x0L
17 | #define VER_FILEOS 0x00040004L
18 | #define VER_FILETYPE 0x00000002L
19 | #define VER_FILESUBTYPE 0x00000000L
20 |
21 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS)
22 |
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/KRPluginTest/dllmain.cpp
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/KRPluginTest/stdafx.cpp
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/KRPluginTest/stdafx.h
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/KRPluginTest/targetver.h
--------------------------------------------------------------------------------
/KRPluginTest/KRPluginTest/tp_stub.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KRPluginTest/KRPluginTest/tp_stub.h
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Common.h:
--------------------------------------------------------------------------------
1 | #ifndef _Common_
2 | #define _Common_
3 |
4 | #include
5 | #include
6 |
7 | using std::wstring;
8 |
9 | typedef unsigned char tjs_uint8;
10 | typedef unsigned int tjs_uint;
11 | typedef unsigned long long tjs_uint64;
12 | typedef long long tjs_int64;
13 | typedef int tjs_int;
14 | typedef unsigned long tjs_uint32;
15 | typedef char tjs_char;
16 | typedef unsigned __int16 tjs_uint16;
17 |
18 |
19 | #define ttstr wstring;
20 |
21 | #define TVP_XP3_INDEX_ENCODE_METHOD_MASK 0x07
22 | #define TVP_XP3_INDEX_ENCODE_RAW 0
23 | #define TVP_XP3_INDEX_ENCODE_ZLIB 1
24 |
25 | #define TVP_XP3_INDEX_CONTINUE 0x80
26 |
27 | #define TVP_XP3_FILE_PROTECTED (1<<31)
28 |
29 | #define TVP_XP3_SEGM_ENCODE_METHOD_MASK 0x07
30 | #define TVP_XP3_SEGM_ENCODE_RAW 0
31 | #define TVP_XP3_SEGM_ENCODE_ZLIB 1
32 |
33 |
34 | #pragma pack(1)
35 |
36 |
37 | typedef struct PACK_FILE_INFO
38 | {
39 | LONG Encrypt;
40 | LONG Compress;
41 | WCHAR FileName[MAX_PATH];
42 | } PACK_FILE_INFO;
43 |
44 |
45 | typedef struct KRKR2_XP3_DATA_HEADER
46 | {
47 | BYTE bZlib;
48 | LARGE_INTEGER ArchiveSize;
49 | LARGE_INTEGER OriginalSize;
50 | } KRKR2_XP3_DATA_HEADER;
51 |
52 | typedef struct KRKR2_XP3_INDEX
53 | {
54 | KRKR2_XP3_DATA_HEADER DataHeader;
55 | BYTE Index[1];
56 | } KRKR2_XP3_INDEX;
57 |
58 |
59 | typedef struct KRKR2_XP3_HEADER
60 | {
61 | BYTE Magic[0xB];
62 | LARGE_INTEGER IndexOffset;
63 | } KRKR2_XP3_HEADER;
64 |
65 |
66 | typedef struct KRKRZ_XP3_INDEX_CHUNK_Yuzu
67 | {
68 | char Magic[4]; //Yuzu
69 | LARGE_INTEGER ChunkSize;
70 | ULONG Hash;
71 | USHORT Len;
72 | wstring Name;
73 |
74 | KRKRZ_XP3_INDEX_CHUNK_Yuzu() : Hash(0){}
75 | } KRKRZ_XP3_INDEX_CHUNK_Yuzu;
76 |
77 |
78 | typedef struct KRKR2_XP3_INDEX_CHUNK_INFO2
79 | {
80 | char Magic[4]; // 'info'
81 | LARGE_INTEGER ChunkSize;
82 | ULONG EncryptedFlag;
83 | LARGE_INTEGER OriginalSize;
84 | LARGE_INTEGER ArchiveSize;
85 | USHORT FileNameLength;
86 | wstring FileName;
87 | } KRKR2_XP3_INDEX_CHUNK_INFO2;
88 |
89 | typedef struct KRKR2_XP3_INDEX_CHUNK_SEGM_DATA
90 | {
91 | BOOL bZlib; // bZlib & 7 -> 1: compressed 0: raw other: error
92 | LARGE_INTEGER Offset;
93 | LARGE_INTEGER OriginalSize;
94 | LARGE_INTEGER ArchiveSize;
95 | } KRKR2_XP3_INDEX_CHUNK_SEGM_DATA;
96 |
97 | typedef struct KRKR2_XP3_INDEX_CHUNK_SEGM
98 | {
99 | char Magic[4]; // 'segm'
100 | LARGE_INTEGER ChunkSize;
101 | KRKR2_XP3_INDEX_CHUNK_SEGM_DATA segm[1];
102 | } KRKR2_XP3_INDEX_CHUNK_SEGM;
103 |
104 | typedef struct KRKR2_XP3_INDEX_CHUNK_ADLR
105 | {
106 | char Magic[4]; // 'adlr'
107 | LARGE_INTEGER ChunkSize;
108 | ULONG Hash;
109 | } KRKR2_XP3_INDEX_CHUNK_ADLR;
110 |
111 | typedef struct KRKR2_XP3_INDEX_CHUNK_TIME
112 | {
113 | char Magic[4]; // TAG4('time')
114 | LARGE_INTEGER ChunkSize;
115 | FILETIME FileTime;
116 | } KRKR2_XP3_INDEX_CHUNK_TIME;
117 |
118 |
119 | typedef struct KRKR2_XP3_INDEX_CHUNK_FILE
120 | {
121 | char Magic[4]; // 'File'
122 | LARGE_INTEGER ChunkSize;
123 | } KRKR2_XP3_INDEX_CHUNK_FILE;
124 |
125 | typedef struct
126 | {
127 | KRKR2_XP3_INDEX_CHUNK_FILE file;
128 | KRKR2_XP3_INDEX_CHUNK_TIME time;
129 | KRKR2_XP3_INDEX_CHUNK_ADLR adlr;
130 | KRKR2_XP3_INDEX_CHUNK_SEGM segm;
131 | KRKR2_XP3_INDEX_CHUNK_INFO2 info;
132 | } SMyXP3Index;
133 |
134 |
135 | #pragma pack(4)
136 |
137 | #define CHUNK_MAGIC_FILE "File"
138 | #define CHUNK_MAGIC_INFO "info"
139 | #define CHUNK_MAGIC_SEGM "segm"
140 | #define CHUNK_MAGIC_ADLR "adlr"
141 | #define CHUNK_MAGIC_TIME "time"
142 |
143 | #define MagicLength 4
144 |
145 |
146 | #endif
147 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Krkr2Packer.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Krkr2Packer.cpp
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Krkr2Packer.vcxproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | Win32
7 |
8 |
9 | Release
10 | Win32
11 |
12 |
13 |
14 | {4EF60D43-80A0-4367-A9B8-86B0C1357035}
15 | Win32Proj
16 | Krkr2Packer
17 |
18 |
19 |
20 | Application
21 | true
22 | v140
23 | Unicode
24 |
25 |
26 | Application
27 | false
28 | v140_xp
29 | true
30 | Unicode
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | true
44 |
45 |
46 | false
47 |
48 |
49 |
50 |
51 |
52 | Level3
53 | Disabled
54 | WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
55 |
56 |
57 | Console
58 | true
59 |
60 |
61 |
62 |
63 | Level3
64 |
65 |
66 | MaxSpeed
67 | true
68 | true
69 | WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
70 | MultiThreaded
71 |
72 |
73 | Console
74 | true
75 | true
76 | true
77 | /nodefaultlib:"MSVCRT" /SAFESEH:NO %(AdditionalOptions)
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Krkr2Packer.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 | 头文件
29 |
30 |
31 |
32 |
33 | 源文件
34 |
35 |
36 | 源文件
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Krkr2Packer.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 控制台应用程序:Krkr2Packer 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 Krkr2Packer 应用程序。
6 |
7 | 本文件概要介绍组成 Krkr2Packer 应用程序的每个文件的内容。
8 |
9 |
10 | Krkr2Packer.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | Krkr2Packer.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | Krkr2Packer.cpp
17 | 这是主应用程序源文件。
18 |
19 | /////////////////////////////////////////////////////////////////////////////
20 | 其他标准文件:
21 |
22 | StdAfx.h, StdAfx.cpp
23 | 这些文件用于生成名为 Krkr2Packer.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
24 |
25 | /////////////////////////////////////////////////////////////////////////////
26 | 其他注释:
27 |
28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
29 |
30 | /////////////////////////////////////////////////////////////////////////////
31 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.Build.CppClean.log:
--------------------------------------------------------------------------------
1 | f:\github\krkr2packer\krkr2packer\release\vc140.pdb
2 | f:\github\krkr2packer\krkr2packer\release\stdafx.obj
3 | f:\github\krkr2packer\krkr2packer\release\krkr2packer.obj
4 | f:\github\krkr2packer\krkr2packer\release\krkr2packer.tlog\cl.command.1.tlog
5 | f:\github\krkr2packer\krkr2packer\release\krkr2packer.tlog\cl.read.1.tlog
6 | f:\github\krkr2packer\krkr2packer\release\krkr2packer.tlog\cl.write.1.tlog
7 | f:\github\krkr2packer\krkr2packer\release\krkr2packer.tlog\link.command.1.tlog
8 | f:\github\krkr2packer\krkr2packer\release\krkr2packer.tlog\link.read.1.tlog
9 | f:\github\krkr2packer\krkr2packer\release\krkr2packer.tlog\link.write.1.tlog
10 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.log:
--------------------------------------------------------------------------------
1 | Krkr2Packer.cpp
2 | Krkr2Packer.cpp(25): warning C4018: “<”: 有符号/无符号不匹配
3 | Krkr2Packer.cpp(181): warning C4267: “=”: 从“size_t”转换到“USHORT”,可能丢失数据
4 | Krkr2Packer.cpp(95): warning C4101: “szPath”: 未引用的局部变量
5 | 正在生成代码
6 | 3 of 534 functions ( 0.6%) were compiled, the rest were copied from previous compilation.
7 | 0 functions were new in current compilation
8 | 0 functions had inline decision re-evaluated but remain unchanged
9 | 已完成代码的生成
10 | zlib.lib(zutil.obj) : warning LNK4049: 已导入本地定义的符号 _free
11 | zlib.lib(zutil.obj) : warning LNK4049: 已导入本地定义的符号 _malloc
12 | Krkr2Packer.vcxproj -> F:\github\Krkr2Packer\Release\Krkr2Packer.exe
13 | Krkr2Packer.vcxproj -> F:\github\Krkr2Packer\Release\Krkr2Packer.pdb (Full PDB)
14 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.obj
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/CL.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/CL.command.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/CL.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/CL.read.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/CL.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/CL.write.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/Krkr2Packer.lastbuildstate:
--------------------------------------------------------------------------------
1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v140_xp:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=
2 | Release|Win32|F:\github\Krkr2Packer\|
3 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/link.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/link.command.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/link.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/link.read.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/link.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/Krkr2Packer.tlog/link.write.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/stdafx.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/stdafx.obj
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/Release/vc140.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/Release/vc140.pdb
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/stdafx.cpp
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/stdafx.h
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/targetver.h
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/ChangeLog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/ChangeLog
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/adler32.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/adler32.obj
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/amiga/Makefile.pup:
--------------------------------------------------------------------------------
1 | # Amiga powerUP (TM) Makefile
2 | # makefile for libpng and SAS C V6.58/7.00 PPC compiler
3 | # Copyright (C) 1998 by Andreas R. Kleinert
4 |
5 | LIBNAME = libzip.a
6 |
7 | CC = scppc
8 | CFLAGS = NOSTKCHK NOSINT OPTIMIZE OPTGO OPTPEEP OPTINLOCAL OPTINL \
9 | OPTLOOP OPTRDEP=8 OPTDEP=8 OPTCOMP=8 NOVER
10 | AR = ppc-amigaos-ar cr
11 | RANLIB = ppc-amigaos-ranlib
12 | LD = ppc-amigaos-ld -r
13 | LDFLAGS = -o
14 | LDLIBS = LIB:scppc.a LIB:end.o
15 | RM = delete quiet
16 |
17 | OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
18 | uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
19 |
20 | TEST_OBJS = example.o minigzip.o
21 |
22 | all: example minigzip
23 |
24 | check: test
25 | test: all
26 | example
27 | echo hello world | minigzip | minigzip -d
28 |
29 | $(LIBNAME): $(OBJS)
30 | $(AR) $@ $(OBJS)
31 | -$(RANLIB) $@
32 |
33 | example: example.o $(LIBNAME)
34 | $(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
35 |
36 | minigzip: minigzip.o $(LIBNAME)
37 | $(LD) $(LDFLAGS) $@ LIB:c_ppc.o $@.o $(LIBNAME) $(LDLIBS)
38 |
39 | mostlyclean: clean
40 | clean:
41 | $(RM) *.o example minigzip $(LIBNAME) foo.gz
42 |
43 | zip:
44 | zip -ul9 zlib README ChangeLog Makefile Make????.??? Makefile.?? \
45 | descrip.mms *.[ch]
46 |
47 | tgz:
48 | cd ..; tar cfz zlib/zlib.tgz zlib/README zlib/ChangeLog zlib/Makefile \
49 | zlib/Make????.??? zlib/Makefile.?? zlib/descrip.mms zlib/*.[ch]
50 |
51 | # DO NOT DELETE THIS LINE -- make depend depends on it.
52 |
53 | adler32.o: zlib.h zconf.h
54 | compress.o: zlib.h zconf.h
55 | crc32.o: crc32.h zlib.h zconf.h
56 | deflate.o: deflate.h zutil.h zlib.h zconf.h
57 | example.o: zlib.h zconf.h
58 | gzclose.o: zlib.h zconf.h gzguts.h
59 | gzlib.o: zlib.h zconf.h gzguts.h
60 | gzread.o: zlib.h zconf.h gzguts.h
61 | gzwrite.o: zlib.h zconf.h gzguts.h
62 | inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
63 | inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
64 | infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
65 | inftrees.o: zutil.h zlib.h zconf.h inftrees.h
66 | minigzip.o: zlib.h zconf.h
67 | trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
68 | uncompr.o: zlib.h zconf.h
69 | zutil.o: zutil.h zlib.h zconf.h
70 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/amiga/Makefile.sas:
--------------------------------------------------------------------------------
1 | # SMakefile for zlib
2 | # Modified from the standard UNIX Makefile Copyright Jean-loup Gailly
3 | # Osma Ahvenlampi
4 | # Amiga, SAS/C 6.56 & Smake
5 |
6 | CC=sc
7 | CFLAGS=OPT
8 | #CFLAGS=OPT CPU=68030
9 | #CFLAGS=DEBUG=LINE
10 | LDFLAGS=LIB z.lib
11 |
12 | SCOPTIONS=OPTSCHED OPTINLINE OPTALIAS OPTTIME OPTINLOCAL STRMERGE \
13 | NOICONS PARMS=BOTH NOSTACKCHECK UTILLIB NOVERSION ERRORREXX \
14 | DEF=POSTINC
15 |
16 | OBJS = adler32.o compress.o crc32.o gzclose.o gzlib.o gzread.o gzwrite.o \
17 | uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
18 |
19 | TEST_OBJS = example.o minigzip.o
20 |
21 | all: SCOPTIONS example minigzip
22 |
23 | check: test
24 | test: all
25 | example
26 | echo hello world | minigzip | minigzip -d
27 |
28 | install: z.lib
29 | copy clone zlib.h zconf.h INCLUDE:
30 | copy clone z.lib LIB:
31 |
32 | z.lib: $(OBJS)
33 | oml z.lib r $(OBJS)
34 |
35 | example: example.o z.lib
36 | $(CC) $(CFLAGS) LINK TO $@ example.o $(LDFLAGS)
37 |
38 | minigzip: minigzip.o z.lib
39 | $(CC) $(CFLAGS) LINK TO $@ minigzip.o $(LDFLAGS)
40 |
41 | mostlyclean: clean
42 | clean:
43 | -delete force quiet example minigzip *.o z.lib foo.gz *.lnk SCOPTIONS
44 |
45 | SCOPTIONS: Makefile.sas
46 | copy to $@ 64K on 16-bit machine: */
36 | if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
37 | #endif
38 | stream.next_out = dest;
39 | stream.avail_out = (uInt)*destLen;
40 | if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
41 |
42 | stream.zalloc = (alloc_func)0;
43 | stream.zfree = (free_func)0;
44 | stream.opaque = (voidpf)0;
45 |
46 | err = deflateInit(&stream, level);
47 | if (err != Z_OK) return err;
48 |
49 | err = deflate(&stream, Z_FINISH);
50 | if (err != Z_STREAM_END) {
51 | deflateEnd(&stream);
52 | return err == Z_OK ? Z_BUF_ERROR : err;
53 | }
54 | *destLen = stream.total_out;
55 |
56 | err = deflateEnd(&stream);
57 | return err;
58 | }
59 |
60 | /* ===========================================================================
61 | */
62 | int ZEXPORT compress (dest, destLen, source, sourceLen)
63 | Bytef *dest;
64 | uLongf *destLen;
65 | const Bytef *source;
66 | uLong sourceLen;
67 | {
68 | return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
69 | }
70 |
71 | /* ===========================================================================
72 | If the default memLevel or windowBits for deflateInit() is changed, then
73 | this function needs to be updated.
74 | */
75 | uLong ZEXPORT compressBound (sourceLen)
76 | uLong sourceLen;
77 | {
78 | return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
79 | (sourceLen >> 25) + 13;
80 | }
81 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/compress.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/compress.obj
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/ada/buffer_demo.adb:
--------------------------------------------------------------------------------
1 | ----------------------------------------------------------------
2 | -- ZLib for Ada thick binding. --
3 | -- --
4 | -- Copyright (C) 2002-2004 Dmitriy Anisimkov --
5 | -- --
6 | -- Open source license information is in the zlib.ads file. --
7 | ----------------------------------------------------------------
8 | --
9 | -- $Id: buffer_demo.adb,v 1.3 2004/09/06 06:55:35 vagul Exp $
10 |
11 | -- This demo program provided by Dr Steve Sangwine
12 | --
13 | -- Demonstration of a problem with Zlib-Ada (already fixed) when a buffer
14 | -- of exactly the correct size is used for decompressed data, and the last
15 | -- few bytes passed in to Zlib are checksum bytes.
16 |
17 | -- This program compresses a string of text, and then decompresses the
18 | -- compressed text into a buffer of the same size as the original text.
19 |
20 | with Ada.Streams; use Ada.Streams;
21 | with Ada.Text_IO;
22 |
23 | with ZLib; use ZLib;
24 |
25 | procedure Buffer_Demo is
26 | EOL : Character renames ASCII.LF;
27 | Text : constant String
28 | := "Four score and seven years ago our fathers brought forth," & EOL &
29 | "upon this continent, a new nation, conceived in liberty," & EOL &
30 | "and dedicated to the proposition that `all men are created equal'.";
31 |
32 | Source : Stream_Element_Array (1 .. Text'Length);
33 | for Source'Address use Text'Address;
34 |
35 | begin
36 | Ada.Text_IO.Put (Text);
37 | Ada.Text_IO.New_Line;
38 | Ada.Text_IO.Put_Line
39 | ("Uncompressed size : " & Positive'Image (Text'Length) & " bytes");
40 |
41 | declare
42 | Compressed_Data : Stream_Element_Array (1 .. Text'Length);
43 | L : Stream_Element_Offset;
44 | begin
45 | Compress : declare
46 | Compressor : Filter_Type;
47 | I : Stream_Element_Offset;
48 | begin
49 | Deflate_Init (Compressor);
50 |
51 | -- Compress the whole of T at once.
52 |
53 | Translate (Compressor, Source, I, Compressed_Data, L, Finish);
54 | pragma Assert (I = Source'Last);
55 |
56 | Close (Compressor);
57 |
58 | Ada.Text_IO.Put_Line
59 | ("Compressed size : "
60 | & Stream_Element_Offset'Image (L) & " bytes");
61 | end Compress;
62 |
63 | -- Now we decompress the data, passing short blocks of data to Zlib
64 | -- (because this demonstrates the problem - the last block passed will
65 | -- contain checksum information and there will be no output, only a
66 | -- check inside Zlib that the checksum is correct).
67 |
68 | Decompress : declare
69 | Decompressor : Filter_Type;
70 |
71 | Uncompressed_Data : Stream_Element_Array (1 .. Text'Length);
72 |
73 | Block_Size : constant := 4;
74 | -- This makes sure that the last block contains
75 | -- only Adler checksum data.
76 |
77 | P : Stream_Element_Offset := Compressed_Data'First - 1;
78 | O : Stream_Element_Offset;
79 | begin
80 | Inflate_Init (Decompressor);
81 |
82 | loop
83 | Translate
84 | (Decompressor,
85 | Compressed_Data
86 | (P + 1 .. Stream_Element_Offset'Min (P + Block_Size, L)),
87 | P,
88 | Uncompressed_Data
89 | (Total_Out (Decompressor) + 1 .. Uncompressed_Data'Last),
90 | O,
91 | No_Flush);
92 |
93 | Ada.Text_IO.Put_Line
94 | ("Total in : " & Count'Image (Total_In (Decompressor)) &
95 | ", out : " & Count'Image (Total_Out (Decompressor)));
96 |
97 | exit when P = L;
98 | end loop;
99 |
100 | Ada.Text_IO.New_Line;
101 | Ada.Text_IO.Put_Line
102 | ("Decompressed text matches original text : "
103 | & Boolean'Image (Uncompressed_Data = Source));
104 | end Decompress;
105 | end;
106 | end Buffer_Demo;
107 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/ada/mtest.adb:
--------------------------------------------------------------------------------
1 | ----------------------------------------------------------------
2 | -- ZLib for Ada thick binding. --
3 | -- --
4 | -- Copyright (C) 2002-2003 Dmitriy Anisimkov --
5 | -- --
6 | -- Open source license information is in the zlib.ads file. --
7 | ----------------------------------------------------------------
8 | -- Continuous test for ZLib multithreading. If the test would fail
9 | -- we should provide thread safe allocation routines for the Z_Stream.
10 | --
11 | -- $Id: mtest.adb,v 1.4 2004/07/23 07:49:54 vagul Exp $
12 |
13 | with ZLib;
14 | with Ada.Streams;
15 | with Ada.Numerics.Discrete_Random;
16 | with Ada.Text_IO;
17 | with Ada.Exceptions;
18 | with Ada.Task_Identification;
19 |
20 | procedure MTest is
21 | use Ada.Streams;
22 | use ZLib;
23 |
24 | Stop : Boolean := False;
25 |
26 | pragma Atomic (Stop);
27 |
28 | subtype Visible_Symbols is Stream_Element range 16#20# .. 16#7E#;
29 |
30 | package Random_Elements is
31 | new Ada.Numerics.Discrete_Random (Visible_Symbols);
32 |
33 | task type Test_Task;
34 |
35 | task body Test_Task is
36 | Buffer : Stream_Element_Array (1 .. 100_000);
37 | Gen : Random_Elements.Generator;
38 |
39 | Buffer_First : Stream_Element_Offset;
40 | Compare_First : Stream_Element_Offset;
41 |
42 | Deflate : Filter_Type;
43 | Inflate : Filter_Type;
44 |
45 | procedure Further (Item : in Stream_Element_Array);
46 |
47 | procedure Read_Buffer
48 | (Item : out Ada.Streams.Stream_Element_Array;
49 | Last : out Ada.Streams.Stream_Element_Offset);
50 |
51 | -------------
52 | -- Further --
53 | -------------
54 |
55 | procedure Further (Item : in Stream_Element_Array) is
56 |
57 | procedure Compare (Item : in Stream_Element_Array);
58 |
59 | -------------
60 | -- Compare --
61 | -------------
62 |
63 | procedure Compare (Item : in Stream_Element_Array) is
64 | Next_First : Stream_Element_Offset := Compare_First + Item'Length;
65 | begin
66 | if Buffer (Compare_First .. Next_First - 1) /= Item then
67 | raise Program_Error;
68 | end if;
69 |
70 | Compare_First := Next_First;
71 | end Compare;
72 |
73 | procedure Compare_Write is new ZLib.Write (Write => Compare);
74 | begin
75 | Compare_Write (Inflate, Item, No_Flush);
76 | end Further;
77 |
78 | -----------------
79 | -- Read_Buffer --
80 | -----------------
81 |
82 | procedure Read_Buffer
83 | (Item : out Ada.Streams.Stream_Element_Array;
84 | Last : out Ada.Streams.Stream_Element_Offset)
85 | is
86 | Buff_Diff : Stream_Element_Offset := Buffer'Last - Buffer_First;
87 | Next_First : Stream_Element_Offset;
88 | begin
89 | if Item'Length <= Buff_Diff then
90 | Last := Item'Last;
91 |
92 | Next_First := Buffer_First + Item'Length;
93 |
94 | Item := Buffer (Buffer_First .. Next_First - 1);
95 |
96 | Buffer_First := Next_First;
97 | else
98 | Last := Item'First + Buff_Diff;
99 | Item (Item'First .. Last) := Buffer (Buffer_First .. Buffer'Last);
100 | Buffer_First := Buffer'Last + 1;
101 | end if;
102 | end Read_Buffer;
103 |
104 | procedure Translate is new Generic_Translate
105 | (Data_In => Read_Buffer,
106 | Data_Out => Further);
107 |
108 | begin
109 | Random_Elements.Reset (Gen);
110 |
111 | Buffer := (others => 20);
112 |
113 | Main : loop
114 | for J in Buffer'Range loop
115 | Buffer (J) := Random_Elements.Random (Gen);
116 |
117 | Deflate_Init (Deflate);
118 | Inflate_Init (Inflate);
119 |
120 | Buffer_First := Buffer'First;
121 | Compare_First := Buffer'First;
122 |
123 | Translate (Deflate);
124 |
125 | if Compare_First /= Buffer'Last + 1 then
126 | raise Program_Error;
127 | end if;
128 |
129 | Ada.Text_IO.Put_Line
130 | (Ada.Task_Identification.Image
131 | (Ada.Task_Identification.Current_Task)
132 | & Stream_Element_Offset'Image (J)
133 | & ZLib.Count'Image (Total_Out (Deflate)));
134 |
135 | Close (Deflate);
136 | Close (Inflate);
137 |
138 | exit Main when Stop;
139 | end loop;
140 | end loop Main;
141 | exception
142 | when E : others =>
143 | Ada.Text_IO.Put_Line (Ada.Exceptions.Exception_Information (E));
144 | Stop := True;
145 | end Test_Task;
146 |
147 | Test : array (1 .. 4) of Test_Task;
148 |
149 | pragma Unreferenced (Test);
150 |
151 | Dummy : Character;
152 |
153 | begin
154 | Ada.Text_IO.Get_Immediate (Dummy);
155 | Stop := True;
156 | end MTest;
157 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/ada/read.adb:
--------------------------------------------------------------------------------
1 | ----------------------------------------------------------------
2 | -- ZLib for Ada thick binding. --
3 | -- --
4 | -- Copyright (C) 2002-2003 Dmitriy Anisimkov --
5 | -- --
6 | -- Open source license information is in the zlib.ads file. --
7 | ----------------------------------------------------------------
8 |
9 | -- $Id: read.adb,v 1.8 2004/05/31 10:53:40 vagul Exp $
10 |
11 | -- Test/demo program for the generic read interface.
12 |
13 | with Ada.Numerics.Discrete_Random;
14 | with Ada.Streams;
15 | with Ada.Text_IO;
16 |
17 | with ZLib;
18 |
19 | procedure Read is
20 |
21 | use Ada.Streams;
22 |
23 | ------------------------------------
24 | -- Test configuration parameters --
25 | ------------------------------------
26 |
27 | File_Size : Stream_Element_Offset := 100_000;
28 |
29 | Continuous : constant Boolean := False;
30 | -- If this constant is True, the test would be repeated again and again,
31 | -- with increment File_Size for every iteration.
32 |
33 | Header : constant ZLib.Header_Type := ZLib.Default;
34 | -- Do not use Header other than Default in ZLib versions 1.1.4 and older.
35 |
36 | Init_Random : constant := 8;
37 | -- We are using the same random sequence, in case of we catch bug,
38 | -- so we would be able to reproduce it.
39 |
40 | -- End --
41 |
42 | Pack_Size : Stream_Element_Offset;
43 | Offset : Stream_Element_Offset;
44 |
45 | Filter : ZLib.Filter_Type;
46 |
47 | subtype Visible_Symbols
48 | is Stream_Element range 16#20# .. 16#7E#;
49 |
50 | package Random_Elements is new
51 | Ada.Numerics.Discrete_Random (Visible_Symbols);
52 |
53 | Gen : Random_Elements.Generator;
54 | Period : constant Stream_Element_Offset := 200;
55 | -- Period constant variable for random generator not to be very random.
56 | -- Bigger period, harder random.
57 |
58 | Read_Buffer : Stream_Element_Array (1 .. 2048);
59 | Read_First : Stream_Element_Offset;
60 | Read_Last : Stream_Element_Offset;
61 |
62 | procedure Reset;
63 |
64 | procedure Read
65 | (Item : out Stream_Element_Array;
66 | Last : out Stream_Element_Offset);
67 | -- this procedure is for generic instantiation of
68 | -- ZLib.Read
69 | -- reading data from the File_In.
70 |
71 | procedure Read is new ZLib.Read
72 | (Read,
73 | Read_Buffer,
74 | Rest_First => Read_First,
75 | Rest_Last => Read_Last);
76 |
77 | ----------
78 | -- Read --
79 | ----------
80 |
81 | procedure Read
82 | (Item : out Stream_Element_Array;
83 | Last : out Stream_Element_Offset) is
84 | begin
85 | Last := Stream_Element_Offset'Min
86 | (Item'Last,
87 | Item'First + File_Size - Offset);
88 |
89 | for J in Item'First .. Last loop
90 | if J < Item'First + Period then
91 | Item (J) := Random_Elements.Random (Gen);
92 | else
93 | Item (J) := Item (J - Period);
94 | end if;
95 |
96 | Offset := Offset + 1;
97 | end loop;
98 | end Read;
99 |
100 | -----------
101 | -- Reset --
102 | -----------
103 |
104 | procedure Reset is
105 | begin
106 | Random_Elements.Reset (Gen, Init_Random);
107 | Pack_Size := 0;
108 | Offset := 1;
109 | Read_First := Read_Buffer'Last + 1;
110 | Read_Last := Read_Buffer'Last;
111 | end Reset;
112 |
113 | begin
114 | Ada.Text_IO.Put_Line ("ZLib " & ZLib.Version);
115 |
116 | loop
117 | for Level in ZLib.Compression_Level'Range loop
118 |
119 | Ada.Text_IO.Put ("Level ="
120 | & ZLib.Compression_Level'Image (Level));
121 |
122 | -- Deflate using generic instantiation.
123 |
124 | ZLib.Deflate_Init
125 | (Filter,
126 | Level,
127 | Header => Header);
128 |
129 | Reset;
130 |
131 | Ada.Text_IO.Put
132 | (Stream_Element_Offset'Image (File_Size) & " ->");
133 |
134 | loop
135 | declare
136 | Buffer : Stream_Element_Array (1 .. 1024);
137 | Last : Stream_Element_Offset;
138 | begin
139 | Read (Filter, Buffer, Last);
140 |
141 | Pack_Size := Pack_Size + Last - Buffer'First + 1;
142 |
143 | exit when Last < Buffer'Last;
144 | end;
145 | end loop;
146 |
147 | Ada.Text_IO.Put_Line (Stream_Element_Offset'Image (Pack_Size));
148 |
149 | ZLib.Close (Filter);
150 | end loop;
151 |
152 | exit when not Continuous;
153 |
154 | File_Size := File_Size + 1;
155 | end loop;
156 | end Read;
157 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/ada/readme.txt:
--------------------------------------------------------------------------------
1 | ZLib for Ada thick binding (ZLib.Ada)
2 | Release 1.3
3 |
4 | ZLib.Ada is a thick binding interface to the popular ZLib data
5 | compression library, available at http://www.gzip.org/zlib/.
6 | It provides Ada-style access to the ZLib C library.
7 |
8 |
9 | Here are the main changes since ZLib.Ada 1.2:
10 |
11 | - Attension: ZLib.Read generic routine have a initialization requirement
12 | for Read_Last parameter now. It is a bit incompartible with previous version,
13 | but extends functionality, we could use new parameters Allow_Read_Some and
14 | Flush now.
15 |
16 | - Added Is_Open routines to ZLib and ZLib.Streams packages.
17 |
18 | - Add pragma Assert to check Stream_Element is 8 bit.
19 |
20 | - Fix extraction to buffer with exact known decompressed size. Error reported by
21 | Steve Sangwine.
22 |
23 | - Fix definition of ULong (changed to unsigned_long), fix regression on 64 bits
24 | computers. Patch provided by Pascal Obry.
25 |
26 | - Add Status_Error exception definition.
27 |
28 | - Add pragma Assertion that Ada.Streams.Stream_Element size is 8 bit.
29 |
30 |
31 | How to build ZLib.Ada under GNAT
32 |
33 | You should have the ZLib library already build on your computer, before
34 | building ZLib.Ada. Make the directory of ZLib.Ada sources current and
35 | issue the command:
36 |
37 | gnatmake test -largs -L -lz
38 |
39 | Or use the GNAT project file build for GNAT 3.15 or later:
40 |
41 | gnatmake -Pzlib.gpr -L
42 |
43 |
44 | How to build ZLib.Ada under Aonix ObjectAda for Win32 7.2.2
45 |
46 | 1. Make a project with all *.ads and *.adb files from the distribution.
47 | 2. Build the libz.a library from the ZLib C sources.
48 | 3. Rename libz.a to z.lib.
49 | 4. Add the library z.lib to the project.
50 | 5. Add the libc.lib library from the ObjectAda distribution to the project.
51 | 6. Build the executable using test.adb as a main procedure.
52 |
53 |
54 | How to use ZLib.Ada
55 |
56 | The source files test.adb and read.adb are small demo programs that show
57 | the main functionality of ZLib.Ada.
58 |
59 | The routines from the package specifications are commented.
60 |
61 |
62 | Homepage: http://zlib-ada.sourceforge.net/
63 | Author: Dmitriy Anisimkov
64 |
65 | Contributors: Pascal Obry , Steve Sangwine
66 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/ada/zlib-streams.ads:
--------------------------------------------------------------------------------
1 | ----------------------------------------------------------------
2 | -- ZLib for Ada thick binding. --
3 | -- --
4 | -- Copyright (C) 2002-2003 Dmitriy Anisimkov --
5 | -- --
6 | -- Open source license information is in the zlib.ads file. --
7 | ----------------------------------------------------------------
8 |
9 | -- $Id: zlib-streams.ads,v 1.12 2004/05/31 10:53:40 vagul Exp $
10 |
11 | package ZLib.Streams is
12 |
13 | type Stream_Mode is (In_Stream, Out_Stream, Duplex);
14 |
15 | type Stream_Access is access all Ada.Streams.Root_Stream_Type'Class;
16 |
17 | type Stream_Type is
18 | new Ada.Streams.Root_Stream_Type with private;
19 |
20 | procedure Read
21 | (Stream : in out Stream_Type;
22 | Item : out Ada.Streams.Stream_Element_Array;
23 | Last : out Ada.Streams.Stream_Element_Offset);
24 |
25 | procedure Write
26 | (Stream : in out Stream_Type;
27 | Item : in Ada.Streams.Stream_Element_Array);
28 |
29 | procedure Flush
30 | (Stream : in out Stream_Type;
31 | Mode : in Flush_Mode := Sync_Flush);
32 | -- Flush the written data to the back stream,
33 | -- all data placed to the compressor is flushing to the Back stream.
34 | -- Should not be used untill necessary, becouse it is decreasing
35 | -- compression.
36 |
37 | function Read_Total_In (Stream : in Stream_Type) return Count;
38 | pragma Inline (Read_Total_In);
39 | -- Return total number of bytes read from back stream so far.
40 |
41 | function Read_Total_Out (Stream : in Stream_Type) return Count;
42 | pragma Inline (Read_Total_Out);
43 | -- Return total number of bytes read so far.
44 |
45 | function Write_Total_In (Stream : in Stream_Type) return Count;
46 | pragma Inline (Write_Total_In);
47 | -- Return total number of bytes written so far.
48 |
49 | function Write_Total_Out (Stream : in Stream_Type) return Count;
50 | pragma Inline (Write_Total_Out);
51 | -- Return total number of bytes written to the back stream.
52 |
53 | procedure Create
54 | (Stream : out Stream_Type;
55 | Mode : in Stream_Mode;
56 | Back : in Stream_Access;
57 | Back_Compressed : in Boolean;
58 | Level : in Compression_Level := Default_Compression;
59 | Strategy : in Strategy_Type := Default_Strategy;
60 | Header : in Header_Type := Default;
61 | Read_Buffer_Size : in Ada.Streams.Stream_Element_Offset
62 | := Default_Buffer_Size;
63 | Write_Buffer_Size : in Ada.Streams.Stream_Element_Offset
64 | := Default_Buffer_Size);
65 | -- Create the Comression/Decompression stream.
66 | -- If mode is In_Stream then Write operation is disabled.
67 | -- If mode is Out_Stream then Read operation is disabled.
68 |
69 | -- If Back_Compressed is true then
70 | -- Data written to the Stream is compressing to the Back stream
71 | -- and data read from the Stream is decompressed data from the Back stream.
72 |
73 | -- If Back_Compressed is false then
74 | -- Data written to the Stream is decompressing to the Back stream
75 | -- and data read from the Stream is compressed data from the Back stream.
76 |
77 | -- !!! When the Need_Header is False ZLib-Ada is using undocumented
78 | -- ZLib 1.1.4 functionality to do not create/wait for ZLib headers.
79 |
80 | function Is_Open (Stream : Stream_Type) return Boolean;
81 |
82 | procedure Close (Stream : in out Stream_Type);
83 |
84 | private
85 |
86 | use Ada.Streams;
87 |
88 | type Buffer_Access is access all Stream_Element_Array;
89 |
90 | type Stream_Type
91 | is new Root_Stream_Type with
92 | record
93 | Mode : Stream_Mode;
94 |
95 | Buffer : Buffer_Access;
96 | Rest_First : Stream_Element_Offset;
97 | Rest_Last : Stream_Element_Offset;
98 | -- Buffer for Read operation.
99 | -- We need to have this buffer in the record
100 | -- becouse not all read data from back stream
101 | -- could be processed during the read operation.
102 |
103 | Buffer_Size : Stream_Element_Offset;
104 | -- Buffer size for write operation.
105 | -- We do not need to have this buffer
106 | -- in the record becouse all data could be
107 | -- processed in the write operation.
108 |
109 | Back : Stream_Access;
110 | Reader : Filter_Type;
111 | Writer : Filter_Type;
112 | end record;
113 |
114 | end ZLib.Streams;
115 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/ada/zlib-thin.adb:
--------------------------------------------------------------------------------
1 | ----------------------------------------------------------------
2 | -- ZLib for Ada thick binding. --
3 | -- --
4 | -- Copyright (C) 2002-2003 Dmitriy Anisimkov --
5 | -- --
6 | -- Open source license information is in the zlib.ads file. --
7 | ----------------------------------------------------------------
8 |
9 | -- $Id: zlib-thin.adb,v 1.8 2003/12/14 18:27:31 vagul Exp $
10 |
11 | package body ZLib.Thin is
12 |
13 | ZLIB_VERSION : constant Chars_Ptr := zlibVersion;
14 |
15 | Z_Stream_Size : constant Int := Z_Stream'Size / System.Storage_Unit;
16 |
17 | --------------
18 | -- Avail_In --
19 | --------------
20 |
21 | function Avail_In (Strm : in Z_Stream) return UInt is
22 | begin
23 | return Strm.Avail_In;
24 | end Avail_In;
25 |
26 | ---------------
27 | -- Avail_Out --
28 | ---------------
29 |
30 | function Avail_Out (Strm : in Z_Stream) return UInt is
31 | begin
32 | return Strm.Avail_Out;
33 | end Avail_Out;
34 |
35 | ------------------
36 | -- Deflate_Init --
37 | ------------------
38 |
39 | function Deflate_Init
40 | (strm : Z_Streamp;
41 | level : Int;
42 | method : Int;
43 | windowBits : Int;
44 | memLevel : Int;
45 | strategy : Int)
46 | return Int is
47 | begin
48 | return deflateInit2
49 | (strm,
50 | level,
51 | method,
52 | windowBits,
53 | memLevel,
54 | strategy,
55 | ZLIB_VERSION,
56 | Z_Stream_Size);
57 | end Deflate_Init;
58 |
59 | ------------------
60 | -- Inflate_Init --
61 | ------------------
62 |
63 | function Inflate_Init (strm : Z_Streamp; windowBits : Int) return Int is
64 | begin
65 | return inflateInit2 (strm, windowBits, ZLIB_VERSION, Z_Stream_Size);
66 | end Inflate_Init;
67 |
68 | ------------------------
69 | -- Last_Error_Message --
70 | ------------------------
71 |
72 | function Last_Error_Message (Strm : in Z_Stream) return String is
73 | use Interfaces.C.Strings;
74 | begin
75 | if Strm.msg = Null_Ptr then
76 | return "";
77 | else
78 | return Value (Strm.msg);
79 | end if;
80 | end Last_Error_Message;
81 |
82 | ------------
83 | -- Set_In --
84 | ------------
85 |
86 | procedure Set_In
87 | (Strm : in out Z_Stream;
88 | Buffer : in Voidp;
89 | Size : in UInt) is
90 | begin
91 | Strm.Next_In := Buffer;
92 | Strm.Avail_In := Size;
93 | end Set_In;
94 |
95 | ------------------
96 | -- Set_Mem_Func --
97 | ------------------
98 |
99 | procedure Set_Mem_Func
100 | (Strm : in out Z_Stream;
101 | Opaque : in Voidp;
102 | Alloc : in alloc_func;
103 | Free : in free_func) is
104 | begin
105 | Strm.opaque := Opaque;
106 | Strm.zalloc := Alloc;
107 | Strm.zfree := Free;
108 | end Set_Mem_Func;
109 |
110 | -------------
111 | -- Set_Out --
112 | -------------
113 |
114 | procedure Set_Out
115 | (Strm : in out Z_Stream;
116 | Buffer : in Voidp;
117 | Size : in UInt) is
118 | begin
119 | Strm.Next_Out := Buffer;
120 | Strm.Avail_Out := Size;
121 | end Set_Out;
122 |
123 | --------------
124 | -- Total_In --
125 | --------------
126 |
127 | function Total_In (Strm : in Z_Stream) return ULong is
128 | begin
129 | return Strm.Total_In;
130 | end Total_In;
131 |
132 | ---------------
133 | -- Total_Out --
134 | ---------------
135 |
136 | function Total_Out (Strm : in Z_Stream) return ULong is
137 | begin
138 | return Strm.Total_Out;
139 | end Total_Out;
140 |
141 | end ZLib.Thin;
142 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/ada/zlib.gpr:
--------------------------------------------------------------------------------
1 | project Zlib is
2 |
3 | for Languages use ("Ada");
4 | for Source_Dirs use (".");
5 | for Object_Dir use ".";
6 | for Main use ("test.adb", "mtest.adb", "read.adb", "buffer_demo");
7 |
8 | package Compiler is
9 | for Default_Switches ("ada") use ("-gnatwcfilopru", "-gnatVcdfimorst", "-gnatyabcefhiklmnoprst");
10 | end Compiler;
11 |
12 | package Linker is
13 | for Default_Switches ("ada") use ("-lz");
14 | end Linker;
15 |
16 | package Builder is
17 | for Default_Switches ("ada") use ("-s", "-gnatQ");
18 | end Builder;
19 |
20 | end Zlib;
21 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/asm686/README.686:
--------------------------------------------------------------------------------
1 | This is a patched version of zlib, modified to use
2 | Pentium-Pro-optimized assembly code in the deflation algorithm. The
3 | files changed/added by this patch are:
4 |
5 | README.686
6 | match.S
7 |
8 | The speedup that this patch provides varies, depending on whether the
9 | compiler used to build the original version of zlib falls afoul of the
10 | PPro's speed traps. My own tests show a speedup of around 10-20% at
11 | the default compression level, and 20-30% using -9, against a version
12 | compiled using gcc 2.7.2.3. Your mileage may vary.
13 |
14 | Note that this code has been tailored for the PPro/PII in particular,
15 | and will not perform particuarly well on a Pentium.
16 |
17 | If you are using an assembler other than GNU as, you will have to
18 | translate match.S to use your assembler's syntax. (Have fun.)
19 |
20 | Brian Raiter
21 | breadbox@muppetlabs.com
22 | April, 1998
23 |
24 |
25 | Added for zlib 1.1.3:
26 |
27 | The patches come from
28 | http://www.muppetlabs.com/~breadbox/software/assembly.html
29 |
30 | To compile zlib with this asm file, copy match.S to the zlib directory
31 | then do:
32 |
33 | CFLAGS="-O3 -DASMV" ./configure
34 | make OBJA=match.o
35 |
36 |
37 | Update:
38 |
39 | I've been ignoring these assembly routines for years, believing that
40 | gcc's generated code had caught up with it sometime around gcc 2.95
41 | and the major rearchitecting of the Pentium 4. However, I recently
42 | learned that, despite what I believed, this code still has some life
43 | in it. On the Pentium 4 and AMD64 chips, it continues to run about 8%
44 | faster than the code produced by gcc 4.1.
45 |
46 | In acknowledgement of its continuing usefulness, I've altered the
47 | license to match that of the rest of zlib. Share and Enjoy!
48 |
49 | Brian Raiter
50 | breadbox@muppetlabs.com
51 | April, 2007
52 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/blast/Makefile:
--------------------------------------------------------------------------------
1 | blast: blast.c blast.h
2 | cc -DTEST -o blast blast.c
3 |
4 | test: blast
5 | blast < test.pk | cmp - test.txt
6 |
7 | clean:
8 | rm -f blast blast.o
9 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/blast/README:
--------------------------------------------------------------------------------
1 | Read blast.h for purpose and usage.
2 |
3 | Mark Adler
4 | madler@alumni.caltech.edu
5 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/blast/blast.h:
--------------------------------------------------------------------------------
1 | /* blast.h -- interface for blast.c
2 | Copyright (C) 2003, 2012 Mark Adler
3 | version 1.2, 24 Oct 2012
4 |
5 | This software is provided 'as-is', without any express or implied
6 | warranty. In no event will the author be held liable for any damages
7 | arising from the use of this software.
8 |
9 | Permission is granted to anyone to use this software for any purpose,
10 | including commercial applications, and to alter it and redistribute it
11 | freely, subject to the following restrictions:
12 |
13 | 1. The origin of this software must not be misrepresented; you must not
14 | claim that you wrote the original software. If you use this software
15 | in a product, an acknowledgment in the product documentation would be
16 | appreciated but is not required.
17 | 2. Altered source versions must be plainly marked as such, and must not be
18 | misrepresented as being the original software.
19 | 3. This notice may not be removed or altered from any source distribution.
20 |
21 | Mark Adler madler@alumni.caltech.edu
22 | */
23 |
24 |
25 | /*
26 | * blast() decompresses the PKWare Data Compression Library (DCL) compressed
27 | * format. It provides the same functionality as the explode() function in
28 | * that library. (Note: PKWare overused the "implode" verb, and the format
29 | * used by their library implode() function is completely different and
30 | * incompatible with the implode compression method supported by PKZIP.)
31 | *
32 | * The binary mode for stdio functions should be used to assure that the
33 | * compressed data is not corrupted when read or written. For example:
34 | * fopen(..., "rb") and fopen(..., "wb").
35 | */
36 |
37 |
38 | typedef unsigned (*blast_in)(void *how, unsigned char **buf);
39 | typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len);
40 | /* Definitions for input/output functions passed to blast(). See below for
41 | * what the provided functions need to do.
42 | */
43 |
44 |
45 | int blast(blast_in infun, void *inhow, blast_out outfun, void *outhow);
46 | /* Decompress input to output using the provided infun() and outfun() calls.
47 | * On success, the return value of blast() is zero. If there is an error in
48 | * the source data, i.e. it is not in the proper format, then a negative value
49 | * is returned. If there is not enough input available or there is not enough
50 | * output space, then a positive error is returned.
51 | *
52 | * The input function is invoked: len = infun(how, &buf), where buf is set by
53 | * infun() to point to the input buffer, and infun() returns the number of
54 | * available bytes there. If infun() returns zero, then blast() returns with
55 | * an input error. (blast() only asks for input if it needs it.) inhow is for
56 | * use by the application to pass an input descriptor to infun(), if desired.
57 | *
58 | * The output function is invoked: err = outfun(how, buf, len), where the bytes
59 | * to be written are buf[0..len-1]. If err is not zero, then blast() returns
60 | * with an output error. outfun() is always called with len <= 4096. outhow
61 | * is for use by the application to pass an output descriptor to outfun(), if
62 | * desired.
63 | *
64 | * The return codes are:
65 | *
66 | * 2: ran out of input before completing decompression
67 | * 1: output error before completing decompression
68 | * 0: successful decompression
69 | * -1: literal flag not zero or one
70 | * -2: dictionary size not in 4..6
71 | * -3: distance is too far back
72 | *
73 | * At the bottom of blast.c is an example program that uses blast() that can be
74 | * compiled to produce a command-line decompression filter by defining TEST.
75 | */
76 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/blast/test.pk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/blast/test.pk
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/blast/test.txt:
--------------------------------------------------------------------------------
1 | AIAIAIAIAIAIA
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/delphi/ZLibConst.pas:
--------------------------------------------------------------------------------
1 | unit ZLibConst;
2 |
3 | interface
4 |
5 | resourcestring
6 | sTargetBufferTooSmall = 'ZLib error: target buffer may be too small';
7 | sInvalidStreamOp = 'Invalid stream operation';
8 |
9 | implementation
10 |
11 | end.
12 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/delphi/readme.txt:
--------------------------------------------------------------------------------
1 |
2 | Overview
3 | ========
4 |
5 | This directory contains an update to the ZLib interface unit,
6 | distributed by Borland as a Delphi supplemental component.
7 |
8 | The original ZLib unit is Copyright (c) 1997,99 Borland Corp.,
9 | and is based on zlib version 1.0.4. There are a series of bugs
10 | and security problems associated with that old zlib version, and
11 | we recommend the users to update their ZLib unit.
12 |
13 |
14 | Summary of modifications
15 | ========================
16 |
17 | - Improved makefile, adapted to zlib version 1.2.1.
18 |
19 | - Some field types from TZStreamRec are changed from Integer to
20 | Longint, for consistency with the zlib.h header, and for 64-bit
21 | readiness.
22 |
23 | - The zlib_version constant is updated.
24 |
25 | - The new Z_RLE strategy has its corresponding symbolic constant.
26 |
27 | - The allocation and deallocation functions and function types
28 | (TAlloc, TFree, zlibAllocMem and zlibFreeMem) are now cdecl,
29 | and _malloc and _free are added as C RTL stubs. As a result,
30 | the original C sources of zlib can be compiled out of the box,
31 | and linked to the ZLib unit.
32 |
33 |
34 | Suggestions for improvements
35 | ============================
36 |
37 | Currently, the ZLib unit provides only a limited wrapper around
38 | the zlib library, and much of the original zlib functionality is
39 | missing. Handling compressed file formats like ZIP/GZIP or PNG
40 | cannot be implemented without having this functionality.
41 | Applications that handle these formats are either using their own,
42 | duplicated code, or not using the ZLib unit at all.
43 |
44 | Here are a few suggestions:
45 |
46 | - Checksum class wrappers around adler32() and crc32(), similar
47 | to the Java classes that implement the java.util.zip.Checksum
48 | interface.
49 |
50 | - The ability to read and write raw deflate streams, without the
51 | zlib stream header and trailer. Raw deflate streams are used
52 | in the ZIP file format.
53 |
54 | - The ability to read and write gzip streams, used in the GZIP
55 | file format, and normally produced by the gzip program.
56 |
57 | - The ability to select a different compression strategy, useful
58 | to PNG and MNG image compression, and to multimedia compression
59 | in general. Besides the compression level
60 |
61 | TCompressionLevel = (clNone, clFastest, clDefault, clMax);
62 |
63 | which, in fact, could have used the 'z' prefix and avoided
64 | TColor-like symbols
65 |
66 | TCompressionLevel = (zcNone, zcFastest, zcDefault, zcMax);
67 |
68 | there could be a compression strategy
69 |
70 | TCompressionStrategy = (zsDefault, zsFiltered, zsHuffmanOnly, zsRle);
71 |
72 | - ZIP and GZIP stream handling via TStreams.
73 |
74 |
75 | --
76 | Cosmin Truta
77 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/delphi/zlibd32.mak:
--------------------------------------------------------------------------------
1 | # Makefile for zlib
2 | # For use with Delphi and C++ Builder under Win32
3 | # Updated for zlib 1.2.x by Cosmin Truta
4 |
5 | # ------------ Borland C++ ------------
6 |
7 | # This project uses the Delphi (fastcall/register) calling convention:
8 | LOC = -DZEXPORT=__fastcall -DZEXPORTVA=__cdecl
9 |
10 | CC = bcc32
11 | LD = bcc32
12 | AR = tlib
13 | # do not use "-pr" in CFLAGS
14 | CFLAGS = -a -d -k- -O2 $(LOC)
15 | LDFLAGS =
16 |
17 |
18 | # variables
19 | ZLIB_LIB = zlib.lib
20 |
21 | OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzclose.obj gzlib.obj gzread.obj
22 | OBJ2 = gzwrite.obj infback.obj inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
23 | OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzclose.obj+gzlib.obj+gzread.obj
24 | OBJP2 = +gzwrite.obj+infback.obj+inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
25 |
26 |
27 | # targets
28 | all: $(ZLIB_LIB) example.exe minigzip.exe
29 |
30 | .c.obj:
31 | $(CC) -c $(CFLAGS) $*.c
32 |
33 | adler32.obj: adler32.c zlib.h zconf.h
34 |
35 | compress.obj: compress.c zlib.h zconf.h
36 |
37 | crc32.obj: crc32.c zlib.h zconf.h crc32.h
38 |
39 | deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
40 |
41 | gzclose.obj: gzclose.c zlib.h zconf.h gzguts.h
42 |
43 | gzlib.obj: gzlib.c zlib.h zconf.h gzguts.h
44 |
45 | gzread.obj: gzread.c zlib.h zconf.h gzguts.h
46 |
47 | gzwrite.obj: gzwrite.c zlib.h zconf.h gzguts.h
48 |
49 | infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
50 | inffast.h inffixed.h
51 |
52 | inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
53 | inffast.h
54 |
55 | inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
56 | inffast.h inffixed.h
57 |
58 | inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
59 |
60 | trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
61 |
62 | uncompr.obj: uncompr.c zlib.h zconf.h
63 |
64 | zutil.obj: zutil.c zutil.h zlib.h zconf.h
65 |
66 | example.obj: test/example.c zlib.h zconf.h
67 |
68 | minigzip.obj: test/minigzip.c zlib.h zconf.h
69 |
70 |
71 | # For the sake of the old Borland make,
72 | # the command line is cut to fit in the MS-DOS 128 byte limit:
73 | $(ZLIB_LIB): $(OBJ1) $(OBJ2)
74 | -del $(ZLIB_LIB)
75 | $(AR) $(ZLIB_LIB) $(OBJP1)
76 | $(AR) $(ZLIB_LIB) $(OBJP2)
77 |
78 |
79 | # testing
80 | test: example.exe minigzip.exe
81 | example
82 | echo hello world | minigzip | minigzip -d
83 |
84 | example.exe: example.obj $(ZLIB_LIB)
85 | $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
86 |
87 | minigzip.exe: minigzip.obj $(ZLIB_LIB)
88 | $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
89 |
90 |
91 | # cleanup
92 | clean:
93 | -del *.obj
94 | -del *.exe
95 | -del *.lib
96 | -del *.tds
97 | -del zlib.bak
98 | -del foo.gz
99 |
100 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib.build:
--------------------------------------------------------------------------------
1 |
2 |
3 | A .Net wrapper library around ZLib1.dll
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib.chm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib.chm
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 8.00
2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotZLib", "DotZLib\DotZLib.csproj", "{BB1EE0B1-1808-46CB-B786-949D91117FC5}"
3 | ProjectSection(ProjectDependencies) = postProject
4 | EndProjectSection
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfiguration) = preSolution
8 | Debug = Debug
9 | Release = Release
10 | EndGlobalSection
11 | GlobalSection(ProjectConfiguration) = postSolution
12 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.ActiveCfg = Debug|.NET
13 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Debug.Build.0 = Debug|.NET
14 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.ActiveCfg = Release|.NET
15 | {BB1EE0B1-1808-46CB-B786-949D91117FC5}.Release.Build.0 = Release|.NET
16 | EndGlobalSection
17 | GlobalSection(ExtensibilityGlobals) = postSolution
18 | EndGlobalSection
19 | GlobalSection(ExtensibilityAddIns) = postSolution
20 | EndGlobalSection
21 | EndGlobal
22 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 |
4 | //
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | //
9 | [assembly: AssemblyTitle("DotZLib")]
10 | [assembly: AssemblyDescription(".Net bindings for ZLib compression dll 1.2.x")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("Henrik Ravn")]
13 | [assembly: AssemblyProduct("")]
14 | [assembly: AssemblyCopyright("(c) 2004 by Henrik Ravn")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 |
18 | //
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Revision and Build Numbers
27 | // by using the '*' as shown below:
28 |
29 | [assembly: AssemblyVersion("1.0.*")]
30 |
31 | //
32 | // In order to sign your assembly you must specify a key to use. Refer to the
33 | // Microsoft .NET Framework documentation for more information on assembly signing.
34 | //
35 | // Use the attributes below to control which key is used for signing.
36 | //
37 | // Notes:
38 | // (*) If no key is specified, the assembly is not signed.
39 | // (*) KeyName refers to a key that has been installed in the Crypto Service
40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains
41 | // a key.
42 | // (*) If the KeyFile and the KeyName values are both specified, the
43 | // following processing occurs:
44 | // (1) If the KeyName can be found in the CSP, that key is used.
45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key
46 | // in the KeyFile is installed into the CSP and used.
47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
48 | // When specifying the KeyFile, the location of the KeyFile should be
49 | // relative to the project output directory which is
50 | // %Project Directory%\obj\. For example, if your KeyFile is
51 | // located in the project directory, you would specify the AssemblyKeyFile
52 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
53 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
54 | // documentation for more information on this.
55 | //
56 | [assembly: AssemblyDelaySign(false)]
57 | [assembly: AssemblyKeyFile("")]
58 | [assembly: AssemblyKeyName("")]
59 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/ChecksumImpl.cs
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/CircularBuffer.cs
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/CodecBase.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/CodecBase.cs
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/Deflater.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/Deflater.cs
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/DotZLib.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/DotZLib.cs
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/GZipStream.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/GZipStream.cs
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/Inflater.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/DotZLib/Inflater.cs
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/LICENSE_1_0.txt:
--------------------------------------------------------------------------------
1 | Boost Software License - Version 1.0 - August 17th, 2003
2 |
3 | Permission is hereby granted, free of charge, to any person or organization
4 | obtaining a copy of the software and accompanying documentation covered by
5 | this license (the "Software") to use, reproduce, display, distribute,
6 | execute, and transmit the Software, and to prepare derivative works of the
7 | Software, and to permit third-parties to whom the Software is furnished to
8 | do so, all subject to the following:
9 |
10 | The copyright notices in the Software and this entire statement, including
11 | the above license grant, this restriction and the following disclaimer,
12 | must be included in all copies of the Software, in whole or in part, and
13 | all derivative works of the Software, unless such copies or derivative
14 | works are solely in the form of machine-executable object code generated by
15 | a source language processor.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 | DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/dotzlib/readme.txt:
--------------------------------------------------------------------------------
1 | This directory contains a .Net wrapper class library for the ZLib1.dll
2 |
3 | The wrapper includes support for inflating/deflating memory buffers,
4 | .Net streaming wrappers for the gz streams part of zlib, and wrappers
5 | for the checksum parts of zlib. See DotZLib/UnitTests.cs for examples.
6 |
7 | Directory structure:
8 | --------------------
9 |
10 | LICENSE_1_0.txt - License file.
11 | readme.txt - This file.
12 | DotZLib.chm - Class library documentation
13 | DotZLib.build - NAnt build file
14 | DotZLib.sln - Microsoft Visual Studio 2003 solution file
15 |
16 | DotZLib\*.cs - Source files for the class library
17 |
18 | Unit tests:
19 | -----------
20 | The file DotZLib/UnitTests.cs contains unit tests for use with NUnit 2.1 or higher.
21 | To include unit tests in the build, define nunit before building.
22 |
23 |
24 | Build instructions:
25 | -------------------
26 |
27 | 1. Using Visual Studio.Net 2003:
28 | Open DotZLib.sln in VS.Net and build from there. Output file (DotZLib.dll)
29 | will be found ./DotZLib/bin/release or ./DotZLib/bin/debug, depending on
30 | you are building the release or debug version of the library. Check
31 | DotZLib/UnitTests.cs for instructions on how to include unit tests in the
32 | build.
33 |
34 | 2. Using NAnt:
35 | Open a command prompt with access to the build environment and run nant
36 | in the same directory as the DotZLib.build file.
37 | You can define 2 properties on the nant command-line to control the build:
38 | debug={true|false} to toggle between release/debug builds (default=true).
39 | nunit={true|false} to include or esclude unit tests (default=true).
40 | Also the target clean will remove binaries.
41 | Output file (DotZLib.dll) will be found in either ./DotZLib/bin/release
42 | or ./DotZLib/bin/debug, depending on whether you are building the release
43 | or debug version of the library.
44 |
45 | Examples:
46 | nant -D:debug=false -D:nunit=false
47 | will build a release mode version of the library without unit tests.
48 | nant
49 | will build a debug version of the library with unit tests
50 | nant clean
51 | will remove all previously built files.
52 |
53 |
54 | ---------------------------------
55 | Copyright (c) Henrik Ravn 2004
56 |
57 | Use, modification and distribution are subject to the Boost Software License, Version 1.0.
58 | (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
59 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/infback9/README:
--------------------------------------------------------------------------------
1 | See infback9.h for what this is and how to use it.
2 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/infback9/infback9.h:
--------------------------------------------------------------------------------
1 | /* infback9.h -- header for using inflateBack9 functions
2 | * Copyright (C) 2003 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | /*
7 | * This header file and associated patches provide a decoder for PKWare's
8 | * undocumented deflate64 compression method (method 9). Use with infback9.c,
9 | * inftree9.h, inftree9.c, and inffix9.h. These patches are not supported.
10 | * This should be compiled with zlib, since it uses zutil.h and zutil.o.
11 | * This code has not yet been tested on 16-bit architectures. See the
12 | * comments in zlib.h for inflateBack() usage. These functions are used
13 | * identically, except that there is no windowBits parameter, and a 64K
14 | * window must be provided. Also if int's are 16 bits, then a zero for
15 | * the third parameter of the "out" function actually means 65536UL.
16 | * zlib.h must be included before this header file.
17 | */
18 |
19 | #ifdef __cplusplus
20 | extern "C" {
21 | #endif
22 |
23 | ZEXTERN int ZEXPORT inflateBack9 OF((z_stream FAR *strm,
24 | in_func in, void FAR *in_desc,
25 | out_func out, void FAR *out_desc));
26 | ZEXTERN int ZEXPORT inflateBack9End OF((z_stream FAR *strm));
27 | ZEXTERN int ZEXPORT inflateBack9Init_ OF((z_stream FAR *strm,
28 | unsigned char FAR *window,
29 | const char *version,
30 | int stream_size));
31 | #define inflateBack9Init(strm, window) \
32 | inflateBack9Init_((strm), (window), \
33 | ZLIB_VERSION, sizeof(z_stream))
34 |
35 | #ifdef __cplusplus
36 | }
37 | #endif
38 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/infback9/inflate9.h:
--------------------------------------------------------------------------------
1 | /* inflate9.h -- internal inflate state definition
2 | * Copyright (C) 1995-2003 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | /* WARNING: this file should *not* be used by applications. It is
7 | part of the implementation of the compression library and is
8 | subject to change. Applications should only use zlib.h.
9 | */
10 |
11 | /* Possible inflate modes between inflate() calls */
12 | typedef enum {
13 | TYPE, /* i: waiting for type bits, including last-flag bit */
14 | STORED, /* i: waiting for stored size (length and complement) */
15 | TABLE, /* i: waiting for dynamic block table lengths */
16 | LEN, /* i: waiting for length/lit code */
17 | DONE, /* finished check, done -- remain here until reset */
18 | BAD /* got a data error -- remain here until reset */
19 | } inflate_mode;
20 |
21 | /*
22 | State transitions between above modes -
23 |
24 | (most modes can go to the BAD mode -- not shown for clarity)
25 |
26 | Read deflate blocks:
27 | TYPE -> STORED or TABLE or LEN or DONE
28 | STORED -> TYPE
29 | TABLE -> LENLENS -> CODELENS -> LEN
30 | Read deflate codes:
31 | LEN -> LEN or TYPE
32 | */
33 |
34 | /* state maintained between inflate() calls. Approximately 7K bytes. */
35 | struct inflate_state {
36 | /* sliding window */
37 | unsigned char FAR *window; /* allocated sliding window, if needed */
38 | /* dynamic table building */
39 | unsigned ncode; /* number of code length code lengths */
40 | unsigned nlen; /* number of length code lengths */
41 | unsigned ndist; /* number of distance code lengths */
42 | unsigned have; /* number of code lengths in lens[] */
43 | code FAR *next; /* next available space in codes[] */
44 | unsigned short lens[320]; /* temporary storage for code lengths */
45 | unsigned short work[288]; /* work area for code table building */
46 | code codes[ENOUGH]; /* space for code tables */
47 | };
48 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/infback9/inftree9.h:
--------------------------------------------------------------------------------
1 | /* inftree9.h -- header to use inftree9.c
2 | * Copyright (C) 1995-2008 Mark Adler
3 | * For conditions of distribution and use, see copyright notice in zlib.h
4 | */
5 |
6 | /* WARNING: this file should *not* be used by applications. It is
7 | part of the implementation of the compression library and is
8 | subject to change. Applications should only use zlib.h.
9 | */
10 |
11 | /* Structure for decoding tables. Each entry provides either the
12 | information needed to do the operation requested by the code that
13 | indexed that table entry, or it provides a pointer to another
14 | table that indexes more bits of the code. op indicates whether
15 | the entry is a pointer to another table, a literal, a length or
16 | distance, an end-of-block, or an invalid code. For a table
17 | pointer, the low four bits of op is the number of index bits of
18 | that table. For a length or distance, the low four bits of op
19 | is the number of extra bits to get after the code. bits is
20 | the number of bits in this code or part of the code to drop off
21 | of the bit buffer. val is the actual byte to output in the case
22 | of a literal, the base length or distance, or the offset from
23 | the current table to the next table. Each entry is four bytes. */
24 | typedef struct {
25 | unsigned char op; /* operation, extra bits, table bits */
26 | unsigned char bits; /* bits in this part of the code */
27 | unsigned short val; /* offset in table or code value */
28 | } code;
29 |
30 | /* op values as set by inflate_table():
31 | 00000000 - literal
32 | 0000tttt - table link, tttt != 0 is the number of table index bits
33 | 100eeeee - length or distance, eeee is the number of extra bits
34 | 01100000 - end of block
35 | 01000000 - invalid code
36 | */
37 |
38 | /* Maximum size of the dynamic table. The maximum number of code structures is
39 | 1446, which is the sum of 852 for literal/length codes and 594 for distance
40 | codes. These values were found by exhaustive searches using the program
41 | examples/enough.c found in the zlib distribtution. The arguments to that
42 | program are the number of symbols, the initial root table size, and the
43 | maximum bit length of a code. "enough 286 9 15" for literal/length codes
44 | returns returns 852, and "enough 32 6 15" for distance codes returns 594.
45 | The initial root table size (9 or 6) is found in the fifth argument of the
46 | inflate_table() calls in infback9.c. If the root table size is changed,
47 | then these maximum sizes would be need to be recalculated and updated. */
48 | #define ENOUGH_LENS 852
49 | #define ENOUGH_DISTS 594
50 | #define ENOUGH (ENOUGH_LENS+ENOUGH_DISTS)
51 |
52 | /* Type of code to build for inflate_table9() */
53 | typedef enum {
54 | CODES,
55 | LENS,
56 | DISTS
57 | } codetype;
58 |
59 | extern int inflate_table9 OF((codetype type, unsigned short FAR *lens,
60 | unsigned codes, code FAR * FAR *table,
61 | unsigned FAR *bits, unsigned short FAR *work));
62 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/iostream/test.cpp:
--------------------------------------------------------------------------------
1 |
2 | #include "zfstream.h"
3 |
4 | int main() {
5 |
6 | // Construct a stream object with this filebuffer. Anything sent
7 | // to this stream will go to standard out.
8 | gzofstream os( 1, ios::out );
9 |
10 | // This text is getting compressed and sent to stdout.
11 | // To prove this, run 'test | zcat'.
12 | os << "Hello, Mommy" << endl;
13 |
14 | os << setcompressionlevel( Z_NO_COMPRESSION );
15 | os << "hello, hello, hi, ho!" << endl;
16 |
17 | setcompressionlevel( os, Z_DEFAULT_COMPRESSION )
18 | << "I'm compressing again" << endl;
19 |
20 | os.close();
21 |
22 | return 0;
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/iostream/zfstream.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef zfstream_h
3 | #define zfstream_h
4 |
5 | #include
6 | #include "zlib.h"
7 |
8 | class gzfilebuf : public streambuf {
9 |
10 | public:
11 |
12 | gzfilebuf( );
13 | virtual ~gzfilebuf();
14 |
15 | gzfilebuf *open( const char *name, int io_mode );
16 | gzfilebuf *attach( int file_descriptor, int io_mode );
17 | gzfilebuf *close();
18 |
19 | int setcompressionlevel( int comp_level );
20 | int setcompressionstrategy( int comp_strategy );
21 |
22 | inline int is_open() const { return (file !=NULL); }
23 |
24 | virtual streampos seekoff( streamoff, ios::seek_dir, int );
25 |
26 | virtual int sync();
27 |
28 | protected:
29 |
30 | virtual int underflow();
31 | virtual int overflow( int = EOF );
32 |
33 | private:
34 |
35 | gzFile file;
36 | short mode;
37 | short own_file_descriptor;
38 |
39 | int flushbuf();
40 | int fillbuf();
41 |
42 | };
43 |
44 | class gzfilestream_common : virtual public ios {
45 |
46 | friend class gzifstream;
47 | friend class gzofstream;
48 | friend gzofstream &setcompressionlevel( gzofstream &, int );
49 | friend gzofstream &setcompressionstrategy( gzofstream &, int );
50 |
51 | public:
52 | virtual ~gzfilestream_common();
53 |
54 | void attach( int fd, int io_mode );
55 | void open( const char *name, int io_mode );
56 | void close();
57 |
58 | protected:
59 | gzfilestream_common();
60 |
61 | private:
62 | gzfilebuf *rdbuf();
63 |
64 | gzfilebuf buffer;
65 |
66 | };
67 |
68 | class gzifstream : public gzfilestream_common, public istream {
69 |
70 | public:
71 |
72 | gzifstream();
73 | gzifstream( const char *name, int io_mode = ios::in );
74 | gzifstream( int fd, int io_mode = ios::in );
75 |
76 | virtual ~gzifstream();
77 |
78 | };
79 |
80 | class gzofstream : public gzfilestream_common, public ostream {
81 |
82 | public:
83 |
84 | gzofstream();
85 | gzofstream( const char *name, int io_mode = ios::out );
86 | gzofstream( int fd, int io_mode = ios::out );
87 |
88 | virtual ~gzofstream();
89 |
90 | };
91 |
92 | template class gzomanip {
93 | friend gzofstream &operator<<(gzofstream &, const gzomanip &);
94 | public:
95 | gzomanip(gzofstream &(*f)(gzofstream &, T), T v) : func(f), val(v) { }
96 | private:
97 | gzofstream &(*func)(gzofstream &, T);
98 | T val;
99 | };
100 |
101 | template gzofstream &operator<<(gzofstream &s, const gzomanip &m)
102 | {
103 | return (*m.func)(s, m.val);
104 | }
105 |
106 | inline gzofstream &setcompressionlevel( gzofstream &s, int l )
107 | {
108 | (s.rdbuf())->setcompressionlevel(l);
109 | return s;
110 | }
111 |
112 | inline gzofstream &setcompressionstrategy( gzofstream &s, int l )
113 | {
114 | (s.rdbuf())->setcompressionstrategy(l);
115 | return s;
116 | }
117 |
118 | inline gzomanip setcompressionlevel(int l)
119 | {
120 | return gzomanip(&setcompressionlevel,l);
121 | }
122 |
123 | inline gzomanip setcompressionstrategy(int l)
124 | {
125 | return gzomanip(&setcompressionstrategy,l);
126 | }
127 |
128 | #endif
129 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/iostream2/zstream_test.cpp:
--------------------------------------------------------------------------------
1 | #include "zstream.h"
2 | #include
3 | #include
4 | #include
5 |
6 | void main() {
7 | char h[256] = "Hello";
8 | char* g = "Goodbye";
9 | ozstream out("temp.gz");
10 | out < "This works well" < h < g;
11 | out.close();
12 |
13 | izstream in("temp.gz"); // read it back
14 | char *x = read_string(in), *y = new char[256], z[256];
15 | in > y > z;
16 | in.close();
17 | cout << x << endl << y << endl << z << endl;
18 |
19 | out.open("temp.gz"); // try ascii output; zcat temp.gz to see the results
20 | out << setw(50) << setfill('#') << setprecision(20) << x << endl << y << endl << z << endl;
21 | out << z << endl << y << endl << x << endl;
22 | out << 1.1234567890123456789 << endl;
23 |
24 | delete[] x; delete[] y;
25 | }
26 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/iostream3/README:
--------------------------------------------------------------------------------
1 | These classes provide a C++ stream interface to the zlib library. It allows you
2 | to do things like:
3 |
4 | gzofstream outf("blah.gz");
5 | outf << "These go into the gzip file " << 123 << endl;
6 |
7 | It does this by deriving a specialized stream buffer for gzipped files, which is
8 | the way Stroustrup would have done it. :->
9 |
10 | The gzifstream and gzofstream classes were originally written by Kevin Ruland
11 | and made available in the zlib contrib/iostream directory. The older version still
12 | compiles under gcc 2.xx, but not under gcc 3.xx, which sparked the development of
13 | this version.
14 |
15 | The new classes are as standard-compliant as possible, closely following the
16 | approach of the standard library's fstream classes. It compiles under gcc versions
17 | 3.2 and 3.3, but not under gcc 2.xx. This is mainly due to changes in the standard
18 | library naming scheme. The new version of gzifstream/gzofstream/gzfilebuf differs
19 | from the previous one in the following respects:
20 | - added showmanyc
21 | - added setbuf, with support for unbuffered output via setbuf(0,0)
22 | - a few bug fixes of stream behavior
23 | - gzipped output file opened with default compression level instead of maximum level
24 | - setcompressionlevel()/strategy() members replaced by single setcompression()
25 |
26 | The code is provided "as is", with the permission to use, copy, modify, distribute
27 | and sell it for any purpose without fee.
28 |
29 | Ludwig Schwardt
30 |
31 |
32 | DSP Lab
33 | Electrical & Electronic Engineering Department
34 | University of Stellenbosch
35 | South Africa
36 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/iostream3/TODO:
--------------------------------------------------------------------------------
1 | Possible upgrades to gzfilebuf:
2 |
3 | - The ability to do putback (e.g. putbackfail)
4 |
5 | - The ability to seek (zlib supports this, but could be slow/tricky)
6 |
7 | - Simultaneous read/write access (does it make sense?)
8 |
9 | - Support for ios_base::ate open mode
10 |
11 | - Locale support?
12 |
13 | - Check public interface to see which calls give problems
14 | (due to dependence on library internals)
15 |
16 | - Override operator<<(ostream&, gzfilebuf*) to allow direct copying
17 | of stream buffer to stream ( i.e. os << is.rdbuf(); )
18 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/iostream3/test.cc:
--------------------------------------------------------------------------------
1 | /*
2 | * Test program for gzifstream and gzofstream
3 | *
4 | * by Ludwig Schwardt
5 | * original version by Kevin Ruland
6 | */
7 |
8 | #include "zfstream.h"
9 | #include // for cout
10 |
11 | int main() {
12 |
13 | gzofstream outf;
14 | gzifstream inf;
15 | char buf[80];
16 |
17 | outf.open("test1.txt.gz");
18 | outf << "The quick brown fox sidestepped the lazy canine\n"
19 | << 1.3 << "\nPlan " << 9 << std::endl;
20 | outf.close();
21 | std::cout << "Wrote the following message to 'test1.txt.gz' (check with zcat or zless):\n"
22 | << "The quick brown fox sidestepped the lazy canine\n"
23 | << 1.3 << "\nPlan " << 9 << std::endl;
24 |
25 | std::cout << "\nReading 'test1.txt.gz' (buffered) produces:\n";
26 | inf.open("test1.txt.gz");
27 | while (inf.getline(buf,80,'\n')) {
28 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n";
29 | }
30 | inf.close();
31 |
32 | outf.rdbuf()->pubsetbuf(0,0);
33 | outf.open("test2.txt.gz");
34 | outf << setcompression(Z_NO_COMPRESSION)
35 | << "The quick brown fox sidestepped the lazy canine\n"
36 | << 1.3 << "\nPlan " << 9 << std::endl;
37 | outf.close();
38 | std::cout << "\nWrote the same message to 'test2.txt.gz' in uncompressed form";
39 |
40 | std::cout << "\nReading 'test2.txt.gz' (unbuffered) produces:\n";
41 | inf.rdbuf()->pubsetbuf(0,0);
42 | inf.open("test2.txt.gz");
43 | while (inf.getline(buf,80,'\n')) {
44 | std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n";
45 | }
46 | inf.close();
47 |
48 | return 0;
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/masmx64/bld_ml64.bat:
--------------------------------------------------------------------------------
1 | ml64.exe /Flinffasx64 /c /Zi inffasx64.asm
2 | ml64.exe /Flgvmat64 /c /Zi gvmat64.asm
3 |
--------------------------------------------------------------------------------
/Krkr2Packer/Krkr2Packer/zlib/contrib/masmx86/bld_ml32.bat:
--------------------------------------------------------------------------------
1 | ml /coff /Zi /c /Flmatch686.lst match686.asm
2 | ml /coff /Zi /c /Flinffas32.lst inffas32.asm
3 |
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/Release/xp3enc.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/Release/xp3enc.dll
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/Release/xp3enc.exp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/Release/xp3enc.exp
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/Release/xp3enc.iobj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/Release/xp3enc.iobj
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/Release/xp3enc.ipdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/Release/xp3enc.ipdb
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/Release/xp3enc.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/Release/xp3enc.lib
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/Release/xp3enc.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/Release/xp3enc.pdb
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc.VC.VC.opendb:
--------------------------------------------------------------------------------
1 | j s z h t J S Z H T - D E S K T O P
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc.VC.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc.VC.db
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xp3enc", "xp3enc\xp3enc.vcxproj", "{1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x64.ActiveCfg = Debug|x64
17 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x64.Build.0 = Debug|x64
18 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x86.ActiveCfg = Debug|Win32
19 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x86.Build.0 = Debug|Win32
20 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x64.ActiveCfg = Release|x64
21 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x64.Build.0 = Release|x64
22 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x86.ActiveCfg = Release|Win32
23 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/vc140.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/vc140.pdb
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.log:
--------------------------------------------------------------------------------
1 | xp3enc.cpp
2 | 正在创建库 c:\users\jszht\documents\visual studio 2015\Projects\xp3enc\Release\xp3enc.lib 和对象 c:\users\jszht\documents\visual studio 2015\Projects\xp3enc\Release\xp3enc.exp
3 | 正在生成代码
4 | 1 of 1 functions (100.0%) were compiled, the rest were copied from previous compilation.
5 | 0 functions were new in current compilation
6 | 0 functions had inline decision re-evaluated but remain unchanged
7 | 已完成代码的生成
8 | xp3enc.vcxproj -> c:\users\jszht\documents\visual studio 2015\Projects\xp3enc\Release\xp3enc.dll
9 | xp3enc.vcxproj -> c:\users\jszht\documents\visual studio 2015\Projects\xp3enc\Release\xp3enc.pdb (Full PDB)
10 |
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.obj
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/CL.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/CL.command.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/CL.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/CL.read.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/CL.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/CL.write.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/link.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/link.command.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/link.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/link.read.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/link.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/link.write.1.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/xp3enc.lastbuildstate:
--------------------------------------------------------------------------------
1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 | Release|Win32|c:\users\jszht\documents\visual studio 2015\Projects\xp3enc\|
3 |
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/xp3enc.write.1u.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkr2Packer/xp3enc/xp3enc/Release/xp3enc.tlog/xp3enc.write.1u.tlog
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/xp3enc.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
3 | {
4 | return 1;
5 | }
6 | extern "C" void __stdcall XP3ArchiveAttractFilter_v2(
7 | unsigned __int32 hash,
8 | unsigned __int64 offset, void * buffer, long bufferlen)
9 | {
10 | for (int index = 0; index < bufferlen; index++)
11 | {
12 | ((unsigned char*)buffer)[index] ^= 0xcd;
13 | ((unsigned char*)buffer)[index] ^= hash;
14 | }
15 |
16 | }
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/xp3enc.def:
--------------------------------------------------------------------------------
1 | LIBRARY
2 |
3 | EXPORTS
4 | XP3ArchiveAttractFilter_v2
--------------------------------------------------------------------------------
/Krkr2Packer/xp3enc/xp3enc/xp3enc.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 | 源文件
20 |
21 |
22 |
23 |
24 | 源文件
25 |
26 |
27 |
--------------------------------------------------------------------------------
/KrkrZ Md5.7z:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/KrkrZ Md5.7z
--------------------------------------------------------------------------------
/Krkrpatch_RiddleJoker.rar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Krkrpatch_RiddleJoker.rar
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "MD5GEN", "MD5GEN\MD5GEN.vcxproj", "{764219C9-B531-4809-9757-34D94D0A142C}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {764219C9-B531-4809-9757-34D94D0A142C}.Debug|x64.ActiveCfg = Debug|x64
17 | {764219C9-B531-4809-9757-34D94D0A142C}.Debug|x64.Build.0 = Debug|x64
18 | {764219C9-B531-4809-9757-34D94D0A142C}.Debug|x86.ActiveCfg = Debug|Win32
19 | {764219C9-B531-4809-9757-34D94D0A142C}.Debug|x86.Build.0 = Debug|Win32
20 | {764219C9-B531-4809-9757-34D94D0A142C}.Release|x64.ActiveCfg = Release|x64
21 | {764219C9-B531-4809-9757-34D94D0A142C}.Release|x64.Build.0 = Release|x64
22 | {764219C9-B531-4809-9757-34D94D0A142C}.Release|x86.ActiveCfg = Release|Win32
23 | {764219C9-B531-4809-9757-34D94D0A142C}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.Build.CppClean.log:
--------------------------------------------------------------------------------
1 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.pch
2 | f:\github\md5gen\md5gen\md5gen\debug\vc140.pdb
3 | f:\github\md5gen\md5gen\md5gen\debug\vc140.idb
4 | f:\github\md5gen\md5gen\md5gen\debug\stdafx.obj
5 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.obj
6 | f:\github\md5gen\md5gen\debug\md5gen.ilk
7 | f:\github\md5gen\md5gen\debug\md5gen.exe
8 | f:\github\md5gen\md5gen\debug\md5gen.pdb
9 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.tlog\cl.command.1.tlog
10 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.tlog\cl.read.1.tlog
11 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.tlog\cl.write.1.tlog
12 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.tlog\link.command.1.tlog
13 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.tlog\link.read.1.tlog
14 | f:\github\md5gen\md5gen\md5gen\debug\md5gen.tlog\link.write.1.tlog
15 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.log:
--------------------------------------------------------------------------------
1 | MD5GEN.cpp
2 | f:\github\md5gen\md5gen\md5gen\md5gen.cpp(86): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
3 | c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\stdio.h(1769): note: 参见“sprintf”的声明
4 | f:\github\md5gen\md5gen\md5gen\md5gen.cpp(140): warning C4018: “<”: 有符号/无符号不匹配
5 | f:\github\md5gen\md5gen\md5gen\md5gen.cpp(135): warning C4996: 'getcwd': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _getcwd. See online help for details.
6 | c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\direct.h(91): note: 参见“getcwd”的声明
7 | f:\github\md5gen\md5gen\md5gen\md5gen.cpp(137): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
8 | c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\string.h(90): note: 参见“strcat”的声明
9 | MD5GEN.vcxproj -> F:\github\MD5GEN\MD5GEN\Debug\MD5GEN.exe
10 | MD5GEN.vcxproj -> F:\github\MD5GEN\MD5GEN\Debug\MD5GEN.pdb (Full PDB)
11 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/MD5GEN.obj
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/CL.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/CL.command.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/CL.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/CL.read.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/CL.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/CL.write.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/MD5GEN.lastbuildstate:
--------------------------------------------------------------------------------
1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 | Debug|Win32|F:\github\MD5GEN\MD5GEN\|
3 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/link.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/link.command.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/link.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/link.read.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/link.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/MD5GEN.tlog/link.write.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/stdafx.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/stdafx.obj
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/vc140.idb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/vc140.idb
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Debug/vc140.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Debug/vc140.pdb
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/MD5GEN.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/MD5GEN.cpp
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/MD5GEN.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 | 头文件
29 |
30 |
31 |
32 |
33 | 源文件
34 |
35 |
36 | 源文件
37 |
38 |
39 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/MD5GEN.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | patch.xp3
5 | WindowsLocalDebugger
6 |
7 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Md5list.dat:
--------------------------------------------------------------------------------
1 | ---MD5LIST BEGIN---
2 | patch.xp3
3 | d2414f8a0d9b5552a0d8e4a02b364072
4 | ---MD5LIST END---
5 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 控制台应用程序:MD5GEN 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 MD5GEN 应用程序。
6 |
7 | 本文件概要介绍组成 MD5GEN 应用程序的每个文件的内容。
8 |
9 |
10 | MD5GEN.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | MD5GEN.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | MD5GEN.cpp
17 | 这是主应用程序源文件。
18 |
19 | /////////////////////////////////////////////////////////////////////////////
20 | 其他标准文件:
21 |
22 | StdAfx.h, StdAfx.cpp
23 | 这些文件用于生成名为 MD5GEN.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
24 |
25 | /////////////////////////////////////////////////////////////////////////////
26 | 其他注释:
27 |
28 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
29 |
30 | /////////////////////////////////////////////////////////////////////////////
31 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.log:
--------------------------------------------------------------------------------
1 | stdafx.cpp
2 | MD5GEN.cpp
3 | MD5GEN.cpp(86): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
4 | C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1769): note: 参见“sprintf”的声明
5 | MD5GEN.cpp(137): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
6 | C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\string.h(90): note: 参见“strcat”的声明
7 | MD5GEN.cpp(140): warning C4018: “<”: 有符号/无符号不匹配
8 | MD5GEN.cpp(135): warning C4996: 'getcwd': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _getcwd. See online help for details.
9 | C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\direct.h(91): note: 参见“getcwd”的声明
10 | 正在生成代码
11 | All 552 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
12 | 已完成代码的生成
13 | MD5GEN.vcxproj -> F:\github\MD5GEN\MD5GEN\Release\MD5GEN.exe
14 | MD5GEN.vcxproj -> F:\github\MD5GEN\MD5GEN\Release\MD5GEN.pdb (Full PDB)
15 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/MD5GEN.obj
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.tlog/CL.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/MD5GEN.tlog/CL.command.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.tlog/CL.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/MD5GEN.tlog/CL.read.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.tlog/CL.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/MD5GEN.tlog/CL.write.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.tlog/MD5GEN.lastbuildstate:
--------------------------------------------------------------------------------
1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 | Release|Win32|F:\github\MD5GEN\MD5GEN\|
3 |
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.tlog/link.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/MD5GEN.tlog/link.command.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.tlog/link.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/MD5GEN.tlog/link.read.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/MD5GEN.tlog/link.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/MD5GEN.tlog/link.write.1.tlog
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/stdafx.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/stdafx.obj
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/Release/vc140.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/Release/vc140.pdb
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/patch.xp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/patch.xp3
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/stdafx.cpp
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/stdafx.h
--------------------------------------------------------------------------------
/MD5GEN/MD5GEN/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/MD5GEN/MD5GEN/targetver.h
--------------------------------------------------------------------------------
/QQ截图20161122202720.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/QQ截图20161122202720.png
--------------------------------------------------------------------------------
/QQ截图20161122202803.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/QQ截图20161122202803.png
--------------------------------------------------------------------------------
/QQ截图20161129114000.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/QQ截图20161129114000.png
--------------------------------------------------------------------------------
/QQ截图20170324141213.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/QQ截图20170324141213.png
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | # Krkr2-engine
3 |
4 | ToDo:
5 |
6 | Debug enable(Skip)
7 |
8 | Hook CreateFontIndirecr(lfSetChar 0x80->0x86) In Test!(Hook Test. In Unicode Env test success)
9 |
10 | Hook SetWindowText(LPStr ???->???(GBK)) In Test!(Hook Test. In Unicode Enc test success)
11 |
12 | Find TVPXP3ArchiveExtractionFilter to decrypt xp3
13 |
14 | //analyse *.tpm to find decrypt function!
15 |
16 | Encrypt Scripts->xp3
17 |
18 | //write a xp3enc.dll
19 |
--------------------------------------------------------------------------------
/Win32Project1/Debug/Win32Project1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Win32Project1/Debug/Win32Project1.dll
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.26228.4
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win32Project1", "Win32Project1\Win32Project1.vcxproj", "{2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Debug|x64.ActiveCfg = Debug|x64
17 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Debug|x64.Build.0 = Debug|x64
18 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Debug|x86.ActiveCfg = Debug|Win32
19 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Debug|x86.Build.0 = Debug|Win32
20 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Release|x64.ActiveCfg = Release|x64
21 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Release|x64.Build.0 = Release|x64
22 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Release|x86.ActiveCfg = Release|Win32
23 | {2ADD2E9C-EB0C-4FC6-967B-83BF4C19D046}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1/ReadMe.txt:
--------------------------------------------------------------------------------
1 | ========================================================================
2 | 动态链接库:Win32Project1 项目概述
3 | ========================================================================
4 |
5 | 应用程序向导已为您创建了此 Win32Project1 DLL。
6 |
7 | 本文件概要介绍组成 Win32Project1 应用程序的每个文件的内容。
8 |
9 |
10 | Win32Project1.vcxproj
11 | 这是使用应用程序向导生成的 VC++ 项目的主项目文件,其中包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
12 |
13 | Win32Project1.vcxproj.filters
14 | 这是使用“应用程序向导”生成的 VC++ 项目筛选器文件。它包含有关项目文件与筛选器之间的关联信息。在 IDE 中,通过这种关联,在特定节点下以分组形式显示具有相似扩展名的文件。例如,“.cpp”文件与“源文件”筛选器关联。
15 |
16 | Win32Project1.cpp
17 | 这是主 DLL 源文件。
18 |
19 | 此 DLL 在创建时不导出任何符号。因此,生成时不会产生 .lib 文件。如果希望此项目成为其他某个项目的项目依赖项,则需要添加代码以从 DLL 导出某些符号,以便产生一个导出库,或者,也可以在项目“属性页”对话框中的“链接器”文件夹中,将“常规”属性页上的“忽略输入库”属性设置为“是”。
20 |
21 | /////////////////////////////////////////////////////////////////////////////
22 | 其他标准文件:
23 |
24 | StdAfx.h, StdAfx.cpp
25 | 这些文件用于生成名为 Win32Project1.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
26 |
27 | /////////////////////////////////////////////////////////////////////////////
28 | 其他注释:
29 |
30 | 应用程序向导使用“TODO:”注释来指示应添加或自定义的源代码部分。
31 |
32 | /////////////////////////////////////////////////////////////////////////////
33 |
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1/Win32Project1.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Win32Project1/Win32Project1/Win32Project1.cpp
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1/Win32Project1.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | 头文件
23 |
24 |
25 | 头文件
26 |
27 |
28 |
29 |
30 | 源文件
31 |
32 |
33 | 源文件
34 |
35 |
36 | 源文件
37 |
38 |
39 |
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1/dllmain.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Win32Project1/Win32Project1/dllmain.cpp
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Win32Project1/Win32Project1/stdafx.cpp
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Win32Project1/Win32Project1/stdafx.h
--------------------------------------------------------------------------------
/Win32Project1/Win32Project1/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/Win32Project1/Win32Project1/targetver.h
--------------------------------------------------------------------------------
/index.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/index.txt
--------------------------------------------------------------------------------
/merge.py:
--------------------------------------------------------------------------------
1 | #encoding=utf-8
2 | import os
3 | import re
4 |
5 | def proc(raw):
6 | newl=['']
7 | ptr1=0
8 | le=0
9 |
10 | while ptr1<=len(raw):
11 | if (ptr1')
26 | newl.append('//Name:'+mo.group(2))
27 | newl.append('Name:'+mo.group(2))
28 | i+=1
29 | continue
30 | elif l.startswith('@AddSelect text='):
31 | mo=strproc3.match(l)
32 | if mo:
33 | newl.append('<'+str(i)+'>')
34 | newl.append('Select:')
35 | newl.append('//'+mo.group(2))
36 | newl.append(mo.group(2))
37 | newl.append('\n')
38 | i+=1
39 | continue
40 | elif l.startswith('\t@Talk name='):
41 | mo=strproc2.match(l)
42 | #print mo
43 | if mo:
44 | newl.append('<'+str(i)+'>')
45 | newl.append('//Name:'+mo.group(3))
46 | newl.append('Name:'+mo.group(3))
47 | i+=1
48 | continue
49 | elif l.startswith('\t@AddSelect text='):
50 | mo=strproc4.match(l)
51 | if mo:
52 | newl.append('<'+str(i)+'>')
53 | newl.append('Select:')
54 | newl.append('//'+mo.group(3))
55 | newl.append(mo.group(3))
56 | newl.append('\n')
57 | i+=1
58 | continue
59 | else:
60 | if (l[0]=='@'):
61 | continue
62 | if l.startswith(' @'):
63 | continue
64 | #newl.append('<'+str(i)+'>')
65 | tmp='//'+l
66 | newl.append(tmp)
67 | newl.append(l)
68 | newl.append('\n')
69 | #i+=1
70 |
71 | return newl
72 |
73 | path1='raw'
74 | path2='txt'
75 | for f in os.listdir(path1):
76 | fs=open(os.path.join(path1,f),'rb')
77 | ls=fs.read().decode('u16').split('\r\n')
78 | newls=proc(ls)
79 | fs=open(os.path.join(path2,f.replace('.ks','.txt')),'wb')
80 | fs.write('\r\n'.join(newls).encode('u16'))
81 | fs.close()
82 |
--------------------------------------------------------------------------------
/outfile.py:
--------------------------------------------------------------------------------
1 | #encoding=utf-8
2 | import os
3 | import re
4 |
5 | strproc1=re.compile(r'(\@Talk name=)(\S+)')
6 | strproc2=re.compile(r'(\s)(\@Talk name=)(\S+)')
7 | strproc3=re.compile(r'(\@AddSelect text=)(\S+)')
8 | strproc4=re.compile(r'(\s)(\@AddSelect text=)(\S+)')
9 |
10 |
11 | def proc(lines):
12 | newl=['']
13 | i=0
14 | for l in lines:
15 | l=l.strip('\n')
16 | if len(l)==0:
17 | continue
18 | elif l.startswith('@Talk name='):
19 | #newl.append('Name:')
20 | #newl.append(l)
21 | #newl.append('\n')
22 | mo=strproc1.match(l)
23 | if mo:
24 | #print mo.group(2)
25 | newl.append('<'+str(i)+'>')
26 | newl.append('//Name:'+mo.group(2))
27 | newl.append('Name:'+mo.group(2))
28 | i+=1
29 | continue
30 | elif l.startswith('@AddSelect text='):
31 | mo=strproc3.match(l)
32 | if mo:
33 | newl.append('<'+str(i)+'>')
34 | newl.append('Select:')
35 | newl.append('//'+mo.group(2))
36 | newl.append(mo.group(2))
37 | newl.append('\n')
38 | i+=1
39 | continue
40 | elif l.startswith('\t@Talk name='):
41 | mo=strproc2.match(l)
42 | #print mo
43 | if mo:
44 | newl.append('<'+str(i)+'>')
45 | newl.append('//Name:'+mo.group(3))
46 | newl.append('Name:'+mo.group(3))
47 | i+=1
48 | continue
49 | elif l.startswith('\t@AddSelect text='):
50 | mo=strproc4.match(l)
51 | if mo:
52 | newl.append('<'+str(i)+'>')
53 | newl.append('Select:')
54 | newl.append('//'+mo.group(3))
55 | newl.append(mo.group(3))
56 | newl.append('\n')
57 | i+=1
58 | continue
59 | else:
60 | if (l[0]=='@'):
61 | continue
62 | if l.startswith(' @'):
63 | continue
64 | #newl.append('<'+str(i)+'>')
65 | tmp='//'+l
66 | newl.append(tmp)
67 | newl.append(l)
68 | newl.append('\n')
69 | #i+=1
70 |
71 | return newl
72 |
73 | path1='raw'
74 | path2='txt'
75 | for f in os.listdir(path1):
76 | fs=open(os.path.join(path1,f),'rb')
77 | ls=fs.read().decode('932').split('\r\n')
78 | newls=proc(ls)
79 | fs=open(os.path.join(path2,f.replace('.ks','.txt')),'wb')
80 | fs.write('\r\n'.join(newls).encode('u16'))
81 | fs.close()
82 |
--------------------------------------------------------------------------------
/replace.py:
--------------------------------------------------------------------------------
1 | #encoding=utf-8
2 | import os
3 | import re
4 |
5 | strproc1=re.compile(r'(\@Talk name=)(\S+)')
6 | strproc2=re.compile(r'(\s)(\@Talk name=)(\S+)')
7 | strproc3=re.compile(r'(\@AddSelect text=)(\S+)')
8 | strproc4=re.compile(r'(\s)(\@AddSelect text=)(\S+)')
9 |
10 |
11 | def proc(lines,reparray):
12 | newl=[]
13 | tmpptr=0
14 | i=0
15 | for l in lines:
16 | l=l.strip('\n')
17 | if len(l)==0:
18 | newl.append(l)
19 | continue
20 | elif l.startswith('@Talk name='):
21 | mo=strproc1.match(l)
22 | if mo:
23 | #newl.append('Name:'+mo.group(2))
24 | tmpptr=reparray.index('//Name:'+mo.group(2))
25 | newl.append(l.replace(mo.group(2),reparray[tmpptr+1].lstrip('Name:')))
26 | #print tmpptr
27 | continue
28 | elif l.startswith('@AddSelect text='):
29 | mo=strproc3.match(l)
30 | if mo:
31 | #newl.append(mo.group(2))
32 | tmpptr=reparray.index('//'+mo.group(2))
33 | newl.append(l.replace(mo.group(2),reparray[tmpptr+1]))
34 | #print tmpptr
35 | continue
36 | elif l.startswith('\t@Talk name='):
37 | mo=strproc2.match(l)
38 | if mo:
39 | #newl.append('Name:'+mo.group(3))
40 | tmpptr=reparray.index('//Name:'+mo.group(3))
41 | newl.append(l.replace(mo.group(3),reparray[tmpptr+1].lstrip('Name:')))
42 | #print tmpptr
43 | continue
44 | elif l.startswith('\t@AddSelect text='):
45 | mo=strproc4.match(l)
46 | if mo:
47 | #newl.append(mo.group(3))
48 | tmpptr=reparray.index('//'+mo.group(3))
49 | newl.append(l.replace(mo.group(3),reparray[tmpptr+1]))
50 | #print tmpptr
51 | continue
52 | else:
53 | if (l[0]=='@'):
54 | newl.append(l)
55 | continue
56 | if l.startswith(' @'):
57 | newl.append(l)
58 | continue
59 | #newl.append(l)
60 | tmpptr=reparray.index('//'+l)
61 | newl.append(l.replace(l,reparray[tmpptr+1]))
62 |
63 |
64 |
65 |
66 | return newl
67 |
68 | def estarray(lines):
69 | array=[]
70 | for l in lines:
71 | l=l.strip('\n')
72 | if len(l)==0:
73 | continue
74 | else:
75 | array.append(l)
76 | return array
77 |
78 |
79 | path1='raw'
80 | path2='txt'
81 | path3='output'
82 | for f in os.listdir(path1):
83 | trans=[]
84 | fs1=open(os.path.join(path1,f),'rb')
85 | ls=fs1.read().decode('932').split('\r\n')
86 | fs2=open(os.path.join(path2,f.replace('.ks','.txt')),'rb')
87 | rs=fs2.read().decode('u16').split('\r\n')
88 | trans=estarray(rs)
89 | newls=proc(ls,trans)
90 | fs3=open(os.path.join(path3,f.replace('.ks','.ks')),'wb')
91 | fs3.write('\r\n'.join(newls).encode('u16'))
92 | fs1.close()
93 | fs2.close()
94 | fs3.close()
95 |
--------------------------------------------------------------------------------
/script.txt:
--------------------------------------------------------------------------------
1 | 00_01.ks
2 | 01_01.ks
3 | 02_01.ks
4 | 03_01.ks
5 | 04_01.ks
6 | 05_01.ks
7 | 06_01.ks
8 | 07_01.ks
9 | 08_01.ks
10 | 08_02.ks
11 | 09_01.ks
12 | 09_02.ks
13 | 09_03.ks
14 | 09_04.ks
15 | a01_01.ks
16 | a02_01.ks
17 | a03_01.ks
18 | a04_01.ks
19 | a04_02.ks
20 | a04_03.ks
21 | a05_01.ks
22 | a05_02.ks
23 | a05_03.ks
24 | a06_01.ks
25 | a06_02.ks
26 | a07_01.ks
27 | a08_01.ks
28 | a09_01.ks
29 | a10_01.ks
30 | a10_02.ks
31 | a11_01.ks
32 | a12_01.ks
33 | a12_02.ks
34 | a13_01.ks
35 | a14_01.ks
36 | b01_01.ks
37 | b02_01.ks
38 | b03_01.ks
39 | b04_01.ks
40 | b04_02.ks
41 | b04_03.ks
42 | b05_01.ks
43 | b05_02.ks
44 | b05_03.ks
45 | b06_01.ks
46 | b06_02.ks
47 | b07_01.ks
48 | b07_02.ks
49 | b08_01.ks
50 | b09_01.ks
51 | b10_01.ks
52 | b10_02.ks
53 | b11_01.ks
54 | b12_01.ks
55 | b12_02.ks
56 | b13_01.ks
57 | b14_01.ks
58 | b15_01.ks
59 | b15_02.ks
60 | b15_03.ks
61 | c01_01.ks
62 | c02_01.ks
63 | c03_01.ks
64 | c03_02.ks
65 | c04_01.ks
66 | c04_02.ks
67 | c05_01.ks
68 | c06_01.ks
69 | c06_02.ks
70 | c07_01.ks
71 | c07_02.ks
72 | c08_01.ks
73 | c09_01.ks
74 | c10_01.ks
75 | c10_02.ks
76 | c11_01.ks
77 | d01_01.ks
78 | d02_01.ks
79 | d03_01.ks
80 | d04_01.ks
81 | d05_01.ks
82 | d06_01.ks
83 | d07_01.ks
84 | d08_01.ks
85 | d08_02.ks
86 | d08_03.ks
87 | d09_01.ks
88 | d10_01.ks
89 | d10_02.ks
90 | d10_03.ks
91 | d11_01.ks
92 | d11_02.ks
93 | d11_03.ks
94 | d12_01.ks
95 | d13_01.ks
96 | d14_01.ks
97 | d14_02.ks
98 | d15_01.ks
99 | d16_01.ks
100 | d16_02.ks
101 | d17_01.ks
102 | d18_01.ks
103 | d18_02.ks
104 | d19_01.ks
105 | d20_01.ks
106 | macro.ks
107 | title.ks
108 |
--------------------------------------------------------------------------------
/spilt.py:
--------------------------------------------------------------------------------
1 | #encoding=utf-8
2 | import os
3 | import re
4 |
5 |
6 | def proc(lines):
7 | newl=['']
8 | flag=0
9 | for l in lines:
10 | l=l.strip('\t')
11 | if len(l)==0:
12 | continue
13 | elif (l[0]=='@'):
14 | newl.append(l)
15 | continue
16 | else:
17 | #newl.append(l)
18 | a=l
19 | c=26
20 | if l[0]==u'「':
21 | flag=1
22 | else:
23 | flag=0
24 | for i in xrange(0,len(a),c):
25 | d=''.join(a[i:i+c])
26 | if flag==1:
27 | #print flag
28 | if i!=0:
29 | newl.append(u' '+d)
30 | else:
31 | newl.append(d)
32 | else:
33 | newl.append(d)
34 | return newl
35 |
36 | path1='do'
37 | path2='out'
38 | for f in os.listdir(path1):
39 | fs=open(os.path.join(path1,f),'rb')
40 | ls=fs.read().decode('u16').split('\r\n')
41 | newls=proc(ls)
42 | fs=open(os.path.join(path2,f.replace('.ks','.ks')),'wb')
43 | fs.write('\r\n'.join(newls).encode('u16'))
44 | fs.close()
45 |
--------------------------------------------------------------------------------
/xp3enc 3/Release/xp3enc.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/Release/xp3enc.dll
--------------------------------------------------------------------------------
/xp3enc 3/Release/xp3enc.exp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/Release/xp3enc.exp
--------------------------------------------------------------------------------
/xp3enc 3/Release/xp3enc.iobj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/Release/xp3enc.iobj
--------------------------------------------------------------------------------
/xp3enc 3/Release/xp3enc.ipdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/Release/xp3enc.ipdb
--------------------------------------------------------------------------------
/xp3enc 3/Release/xp3enc.lib:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/Release/xp3enc.lib
--------------------------------------------------------------------------------
/xp3enc 3/Release/xp3enc.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/Release/xp3enc.pdb
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc.VC.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc.VC.db
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25420.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xp3enc", "xp3enc\xp3enc.vcxproj", "{1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|x64 = Debug|x64
11 | Debug|x86 = Debug|x86
12 | Release|x64 = Release|x64
13 | Release|x86 = Release|x86
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x64.ActiveCfg = Debug|x64
17 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x64.Build.0 = Debug|x64
18 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x86.ActiveCfg = Debug|Win32
19 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Debug|x86.Build.0 = Debug|Win32
20 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x64.ActiveCfg = Release|x64
21 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x64.Build.0 = Release|x64
22 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x86.ActiveCfg = Release|Win32
23 | {1ACA1A2F-5ECD-45CB-A678-ADFAF11055BD}.Release|x86.Build.0 = Release|Win32
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | EndGlobal
29 |
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/vc140.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/vc140.pdb
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.log:
--------------------------------------------------------------------------------
1 | xp3enc.cpp
2 | 正在创建库 C:\Users\jszht\Documents\Visual Studio 2015\Projects\xp3enc 3\Release\xp3enc.lib 和对象 C:\Users\jszht\Documents\Visual Studio 2015\Projects\xp3enc 3\Release\xp3enc.exp
3 | 正在生成代码
4 | 1 of 1 functions (100.0%) were compiled, the rest were copied from previous compilation.
5 | 0 functions were new in current compilation
6 | 0 functions had inline decision re-evaluated but remain unchanged
7 | 已完成代码的生成
8 | xp3enc.vcxproj -> C:\Users\jszht\Documents\Visual Studio 2015\Projects\xp3enc 3\Release\xp3enc.dll
9 | xp3enc.vcxproj -> C:\Users\jszht\Documents\Visual Studio 2015\Projects\xp3enc 3\Release\xp3enc.pdb (Full PDB)
10 |
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.obj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.obj
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/CL.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.tlog/CL.command.1.tlog
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/CL.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.tlog/CL.read.1.tlog
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/CL.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.tlog/CL.write.1.tlog
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/link.command.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.tlog/link.command.1.tlog
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/link.read.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.tlog/link.read.1.tlog
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/link.write.1.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.tlog/link.write.1.tlog
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/xp3enc.lastbuildstate:
--------------------------------------------------------------------------------
1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v140:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=8.1
2 | Release|Win32|C:\Users\jszht\Documents\Visual Studio 2015\Projects\xp3enc 3\|
3 |
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/Release/xp3enc.tlog/xp3enc.write.1u.tlog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3enc 3/xp3enc/Release/xp3enc.tlog/xp3enc.write.1u.tlog
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/xp3enc.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
3 | {
4 | return 1;
5 | }
6 | extern "C" void __stdcall XP3ArchiveAttractFilter_v2(
7 | unsigned __int32 hash,
8 | unsigned __int64 offset, void * buffer, long bufferlen)
9 | {
10 | unsigned __int32 key = hash>>0xc;
11 | if (bufferlen>4)
12 | {
13 | for (int index = 5; index < bufferlen; index++)
14 | {
15 | ((unsigned char*)buffer)[index] ^= key;
16 | }
17 | }
18 |
19 |
20 | }
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/xp3enc.def:
--------------------------------------------------------------------------------
1 | LIBRARY
2 |
3 | EXPORTS
4 | XP3ArchiveAttractFilter_v2
--------------------------------------------------------------------------------
/xp3enc 3/xp3enc/xp3enc.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
10 | h;hh;hpp;hxx;hm;inl;inc;xsd
11 |
12 |
13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms
15 |
16 |
17 |
18 |
19 | 源文件
20 |
21 |
22 |
23 |
24 | 源文件
25 |
26 |
27 |
--------------------------------------------------------------------------------
/xp3struct.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/xp3struct.txt
--------------------------------------------------------------------------------
/zlibdecomp.py:
--------------------------------------------------------------------------------
1 | import zlib
2 | import os
3 | import sys
4 | def decompress(infile, dst):
5 | infile = open(infile, 'rb')
6 | dst = open(dst, 'wb')
7 | decompress = zlib.decompressobj()
8 | data = infile.read(1024)
9 | while data:
10 | dst.write(decompress.decompress(data))
11 | data = infile.read(1024)
12 | dst.write(decompress.flush())
13 |
14 |
15 |
16 | decompress('tmp','tmp.decomp')
--------------------------------------------------------------------------------
/zlibzip.py:
--------------------------------------------------------------------------------
1 | import zlib
2 | import os
3 | import sys
4 | def decompress(infile, dst):
5 | infile = open(infile, 'rb')
6 | dst = open(dst, 'wb')
7 | decompress = zlib.decompressobj()
8 | data = infile.read(1024)
9 | while data:
10 | dst.write(decompress.decompress(data))
11 | data = infile.read(1024)
12 | dst.write(decompress.flush())
13 |
14 | def compress(infile, dst, level=9):
15 | infile = open(infile, 'rb')
16 | dst = open(dst, 'wb')
17 | compress = zlib.compressobj(level)
18 | data = infile.read(1024)
19 | while data:
20 | dst.write(compress.compress(data))
21 | data = infile.read(1024)
22 | dst.write(compress.flush())
23 |
24 | compress('test1','test1.dat')
--------------------------------------------------------------------------------
/添加菜单.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jszhtian/Krkr-engine/71cd68fa4aa7fe7c67a9ee0b47b5a6d4dd27b7ea/添加菜单.txt
--------------------------------------------------------------------------------