forked from Yggdrasill-Moe/Niflheim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f538d81
commit 3ad2acc
Showing
64 changed files
with
35,655 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,7 @@ ipch/ | |
*.ncb | ||
*.opensdf | ||
*.sdf | ||
*.db | ||
*.cachefile | ||
|
||
# Visual Studio profiler | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
#ifndef CXDEC_H | ||
#define CXDEC_H | ||
|
||
struct cxdec_xcode_status { | ||
BYTE *start; | ||
BYTE *curr; | ||
DWORD space_size; | ||
DWORD seed; | ||
int (*xcode_building)(struct cxdec_xcode_status *, int); | ||
}; | ||
|
||
struct cxdec_callback { | ||
const char *name; | ||
DWORD key[2]; | ||
int (*xcode_building)(struct cxdec_xcode_status *, int); | ||
}; | ||
|
||
extern DWORD xcode_rand(struct cxdec_xcode_status *xcode) | ||
{ | ||
DWORD seed = xcode->seed; | ||
xcode->seed = 1103515245 * seed + 12345; | ||
return xcode->seed ^ (seed << 16) ^ (seed >> 16); | ||
} | ||
|
||
extern int push_bytexcode(struct cxdec_xcode_status *xcode, BYTE code) | ||
{ | ||
if ((DWORD)xcode->curr - (DWORD)xcode->start + 1 > xcode->space_size) | ||
return 0; | ||
|
||
*xcode->curr++ = code; | ||
|
||
return 1; | ||
} | ||
|
||
extern int push_2bytesxcode(struct cxdec_xcode_status *xcode, | ||
BYTE code0, BYTE code1) | ||
{ | ||
if ((DWORD)xcode->curr - (DWORD)xcode->start + 2 > xcode->space_size) | ||
return 0; | ||
|
||
*xcode->curr++ = code0; | ||
*xcode->curr++ = code1; | ||
|
||
return 1; | ||
} | ||
|
||
extern int push_3bytesxcode(struct cxdec_xcode_status *xcode, | ||
BYTE code0, BYTE code1, BYTE code2) | ||
{ | ||
if ((DWORD)xcode->curr - (DWORD)xcode->start + 3 > xcode->space_size) | ||
return 0; | ||
|
||
*xcode->curr++ = code0; | ||
*xcode->curr++ = code1; | ||
*xcode->curr++ = code2; | ||
|
||
return 1; | ||
} | ||
|
||
extern int push_4bytesxcode(struct cxdec_xcode_status *xcode, | ||
BYTE code0, BYTE code1, BYTE code2, BYTE code3) | ||
{ | ||
if ((DWORD)xcode->curr - (DWORD)xcode->start + 4 > xcode->space_size) | ||
return 0; | ||
|
||
*xcode->curr++ = code0; | ||
*xcode->curr++ = code1; | ||
*xcode->curr++ = code2; | ||
*xcode->curr++ = code3; | ||
|
||
return 1; | ||
} | ||
|
||
extern int push_5bytesxcode(struct cxdec_xcode_status *xcode, | ||
BYTE code0, BYTE code1, BYTE code2, BYTE code3, BYTE code4) | ||
{ | ||
if ((DWORD)xcode->curr - (DWORD)xcode->start + 5 > xcode->space_size) | ||
return 0; | ||
|
||
*xcode->curr++ = code0; | ||
*xcode->curr++ = code1; | ||
*xcode->curr++ = code2; | ||
*xcode->curr++ = code3; | ||
*xcode->curr++ = code4; | ||
|
||
return 1; | ||
} | ||
|
||
extern int push_6bytesxcode(struct cxdec_xcode_status *xcode, | ||
BYTE code0, BYTE code1, BYTE code2, BYTE code3, BYTE code4, BYTE code5) | ||
{ | ||
if ((DWORD)xcode->curr - (DWORD)xcode->start + 6 > xcode->space_size) | ||
return 0; | ||
|
||
*xcode->curr++ = code0; | ||
*xcode->curr++ = code1; | ||
*xcode->curr++ = code2; | ||
*xcode->curr++ = code3; | ||
*xcode->curr++ = code4; | ||
*xcode->curr++ = code5; | ||
|
||
return 1; | ||
} | ||
extern int push_dwordxcode(struct cxdec_xcode_status *xcode, DWORD code) | ||
{ | ||
if ((DWORD)xcode->curr - (DWORD)xcode->start + 4 > xcode->space_size) | ||
return 0; | ||
|
||
*xcode->curr++ = (BYTE)code; | ||
*xcode->curr++ = (BYTE)(code >> 8); | ||
*xcode->curr++ = (BYTE)(code >> 16); | ||
*xcode->curr++ = (BYTE)(code >> 24); | ||
|
||
return 1; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual C++ Express 2010 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cxdec", "cxdec.vcxproj", "{3F83CFC0-E90A-49E2-AF65-3013EA780FB0}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Win32 = Debug|Win32 | ||
Release|Win32 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{3F83CFC0-E90A-49E2-AF65-3013EA780FB0}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
{3F83CFC0-E90A-49E2-AF65-3013EA780FB0}.Debug|Win32.Build.0 = Debug|Win32 | ||
{3F83CFC0-E90A-49E2-AF65-3013EA780FB0}.Release|Win32.ActiveCfg = Release|Win32 | ||
{3F83CFC0-E90A-49E2-AF65-3013EA780FB0}.Release|Win32.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|Win32"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|Win32"> | ||
<Configuration>Release</Configuration> | ||
<Platform>Win32</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>{3F83CFC0-E90A-49E2-AF65-3013EA780FB0}</ProjectGuid> | ||
<Keyword>Win32Proj</Keyword> | ||
<RootNamespace>cxdec</RootNamespace> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>true</UseDebugLibraries> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<PlatformToolset>v140</PlatformToolset> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | ||
<ConfigurationType>DynamicLibrary</ConfigurationType> | ||
<UseDebugLibraries>false</UseDebugLibraries> | ||
<WholeProgramOptimization>true</WholeProgramOptimization> | ||
<CharacterSet>Unicode</CharacterSet> | ||
<PlatformToolset>v140</PlatformToolset> | ||
</PropertyGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
<ImportGroup Label="ExtensionSettings"> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | ||
</ImportGroup> | ||
<PropertyGroup Label="UserMacros" /> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<LinkIncremental>true</LinkIncremental> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<LinkIncremental>false</LinkIncremental> | ||
<IncludePath>D:\WinDDK\7600.16385.1\inc\api;D:\WinDDK\7600.16385.1\inc\mfc42;D:\WinDDK\7600.16385.1\inc\atl71;D:\WinDDK\7600.16385.1\inc\crt;$(IncludePath)</IncludePath> | ||
<LibraryPath>F:\Software\VC6\2600\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\Crt\i386;D:\WinDDK\7600.16385.1\lib\wxp\i386;D:\WinDDK\7600.16385.1\lib\ATL\i386;$(LibraryPath)</LibraryPath> | ||
</PropertyGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | ||
<ClCompile> | ||
<PrecompiledHeader>NotUsing</PrecompiledHeader> | ||
<WarningLevel>Level3</WarningLevel> | ||
<Optimization>Disabled</Optimization> | ||
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;REALSISTERDEC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | ||
<ClCompile> | ||
<WarningLevel>Level3</WarningLevel> | ||
<PrecompiledHeader>NotUsing</PrecompiledHeader> | ||
<Optimization>MaxSpeed</Optimization> | ||
<FunctionLevelLinking>true</FunctionLevelLinking> | ||
<IntrinsicFunctions>true</IntrinsicFunctions> | ||
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;REALSISTERDEC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | ||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> | ||
<BufferSecurityCheck>false</BufferSecurityCheck> | ||
<OmitFramePointers>true</OmitFramePointers> | ||
<ExceptionHandling>false</ExceptionHandling> | ||
</ClCompile> | ||
<Link> | ||
<SubSystem>Windows</SubSystem> | ||
<GenerateDebugInformation>true</GenerateDebugInformation> | ||
<EnableCOMDATFolding>true</EnableCOMDATFolding> | ||
<OptimizeReferences>true</OptimizeReferences> | ||
<NoEntryPoint>true</NoEntryPoint> | ||
</Link> | ||
</ItemDefinitionGroup> | ||
<ItemGroup> | ||
<ClCompile Include="cxdec.cpp" /> | ||
<ClCompile Include="tp_stub.cpp" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ClInclude Include="cxdec.h" /> | ||
</ItemGroup> | ||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
</Project> |
Oops, something went wrong.