add new proj for convenient IDA rev work.

This commit is contained in:
yyc12345 2023-02-15 10:12:30 +08:00
parent 01bc6074f4
commit bdea4c5bcd
5 changed files with 732 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<BML_PATH>D:\BallanceModLoader</BML_PATH>
</PropertyGroup>
<PropertyGroup />
<ItemDefinitionGroup />
<ItemGroup>
<BuildMacro Include="BML_PATH">
<Value>$(BML_PATH)</Value>
</BuildMacro>
</ItemGroup>
</Project>

View File

@ -0,0 +1,232 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" 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">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{c8d9cfff-442c-4ccb-80d7-02b6b2e7412f}</ProjectGuid>
<RootNamespace>VirtoolsProbe</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<UseOfMfc>Dynamic</UseOfMfc>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
<UseOfMfc>Dynamic</UseOfMfc>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</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" />
<Import Project="LibRef.props" />
</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" />
<Import Project="LibRef.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)out\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
<IntDir>$(SolutionDir)temp\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)out\$(Platform)\$(Configuration)\$(ProjectName)\</OutDir>
<IntDir>$(SolutionDir)temp\$(Platform)\$(Configuration)\$(ProjectName)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>BML_EXPORT=;_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<AdditionalIncludeDirectories>$(BML_PATH)\virtools;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>BML_EXPORT=;_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp17</LanguageStandard>
<AdditionalIncludeDirectories>$(BML_PATH)\virtools;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\BallanceModLoader\virtools\CK2dCurve.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CK2dCurvePoint.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CK2dEntity.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CK3dEntity.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKAttributeManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBaseManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehavior.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehaviorIO.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehaviorManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehaviorPrototype.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBeObject.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBitmapData.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKCamera.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKCollisionManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKContext.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKDataArray.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKGlobals.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKGroup.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKInputManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKLevel.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKLight.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMaterial.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMesh.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMessage.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMessageManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKObject.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKObjectArray.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKObjectDeclaration.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameter.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameterIn.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameterManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameterOperation.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKPathManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKPluginManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKRenderContext.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKRenderManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKRenderObject.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKScene.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSceneObject.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSound.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSoundManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSprite.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSprite3D.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSpriteText.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKStateObject.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKTexture.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\CKTimeManager.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\VxMath.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\VxMatrix.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\VxQuaternion.cpp" />
<ClCompile Include="..\..\BallanceModLoader\virtools\XString.cpp" />
<ClCompile Include="main.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\BallanceModLoader\virtools\CK2dCurve.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CK2dCurvePoint.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CK2dEntity.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CK3dEntity.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKAll.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKAttributeManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBaseManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehavior.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehaviorIO.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehaviorManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehaviorPrototype.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBeObject.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBitmapData.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKCamera.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKCollisionManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKContext.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKDataArray.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKDef.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKdefines2.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKDependencies.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKEnums.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKError.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKGlobals.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKGroup.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKInputManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKLevel.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKLight.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMaterial.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMesh.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMessage.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMessageManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKObject.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKObjectArray.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKObjectDeclaration.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameter.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameterIn.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameterManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameterOperation.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKPathManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKPluginManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKRenderContext.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKRenderManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKRenderObject.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKScene.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSceneObject.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSound.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSoundManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSprite.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSprite3D.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSpriteText.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKStateObject.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKTexture.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKTimeManager.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\CKTypes.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\Vx2dVector.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxAllocator.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxColor.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxFrustum.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMath.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMathDefines.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMatrix.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMutex.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxPlane.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxQuaternion.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxRay.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxRect.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxSphere.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\VxVector.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XArray.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XBitArray.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XClassArray.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XHashFun.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XHashTable.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XObjectArray.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XSArray.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XSHashTable.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XSmartPtr.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XString.h" />
<ClInclude Include="..\..\BallanceModLoader\virtools\XUtil.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -0,0 +1,420 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Sources">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Headers">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
</Filter>
<Filter Include="Resources">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
<Filter Include="Headers\Virtools">
<UniqueIdentifier>{13a4e7ed-2c5b-49a5-a201-e5fb5cfd701c}</UniqueIdentifier>
</Filter>
<Filter Include="Sources\Virtools">
<UniqueIdentifier>{970d5dc3-c8f4-4cb0-aea4-2caa12194d95}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp">
<Filter>Sources</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CK2dCurve.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CK2dCurvePoint.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CK2dEntity.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CK3dEntity.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKAttributeManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBaseManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehavior.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehaviorIO.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehaviorManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBehaviorPrototype.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBeObject.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKBitmapData.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKCamera.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKCollisionManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKContext.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKDataArray.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKGlobals.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKGroup.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKInputManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKLevel.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKLight.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMaterial.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMesh.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMessage.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKMessageManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKObject.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKObjectArray.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKObjectDeclaration.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameter.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameterIn.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameterManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKParameterOperation.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKPathManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKPluginManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKRenderContext.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKRenderManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKRenderObject.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKScene.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSceneObject.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSound.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSoundManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSprite.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSprite3D.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKSpriteText.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKStateObject.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKTexture.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\CKTimeManager.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\VxMath.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\VxMatrix.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\VxQuaternion.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
<ClCompile Include="..\..\BallanceModLoader\virtools\XString.cpp">
<Filter>Sources\Virtools</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\BallanceModLoader\virtools\CK2dCurve.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CK2dCurvePoint.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CK2dEntity.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CK3dEntity.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKAll.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKAttributeManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBaseManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehavior.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehaviorIO.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehaviorManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBehaviorPrototype.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBeObject.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKBitmapData.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKCamera.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKCollisionManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKContext.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKDataArray.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKDef.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKdefines2.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKDependencies.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKEnums.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKError.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKGlobals.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKGroup.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKInputManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKLevel.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKLight.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMaterial.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMesh.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMessage.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKMessageManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKObject.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKObjectArray.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKObjectDeclaration.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameter.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameterIn.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameterManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKParameterOperation.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKPathManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKPluginManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKRenderContext.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKRenderManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKRenderObject.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKScene.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSceneObject.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSound.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSoundManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSprite.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSprite3D.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKSpriteText.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKStateObject.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKTexture.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKTimeManager.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\CKTypes.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\Vx2dVector.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxAllocator.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxColor.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxFrustum.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMath.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMathDefines.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMatrix.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxMutex.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxPlane.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxQuaternion.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxRay.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxRect.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxSphere.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\VxVector.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XArray.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XBitArray.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XClassArray.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XHashFun.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XHashTable.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XObjectArray.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XSArray.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XSHashTable.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XSmartPtr.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XString.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
<ClInclude Include="..\..\BallanceModLoader\virtools\XUtil.h">
<Filter>Headers\Virtools</Filter>
</ClInclude>
</ItemGroup>
</Project>

58
VirtoolsProbe/main.cpp Normal file
View File

@ -0,0 +1,58 @@
#include <CKAll.h>
#include <iostream>
#include <filesystem>
#include <string>
#define BUFFER_SIZE 1024
void Assert(bool cond, const char* desc) {
if (!cond) {
std::cout << desc << std::endl;
ExitProcess(0);
}
}
int main() {
Assert(LoadLibrary("CK2.dll"), "Error loading CK2.dll");
std::cout << "Press any key to run..." << std::endl;
system("pause");
Assert(!CKStartUp(), "CKStartUp Error");
std::string sharedStorage;
sharedStorage.resize(BUFFER_SIZE);
std::filesystem::path rootPath, rePath, magPath, plgPath, bbPath;
GetModuleFileName(NULL, sharedStorage.data(), BUFFER_SIZE);
rootPath = sharedStorage;
rootPath = rootPath.parent_path();
rePath = rootPath / "RenderEngines";
magPath = rootPath / "Managers";
plgPath = rootPath / "Plugins";
bbPath = rootPath / "BuildingBlocks";
CKPluginManager* pluginManager = CKGetPluginManager();
int k = 0;
k += pluginManager->ParsePlugins((char*)rePath.string().c_str());
k += pluginManager->ParsePlugins((char*)magPath.string().c_str());
k += pluginManager->ParsePlugins((char*)plgPath.string().c_str());
k += pluginManager->ParsePlugins((char*)bbPath.string().c_str());
std::cout << "Total loaded modules count: " << k << std::endl;
CKContext* ctx = NULL;
Assert(!CKCreateContext(&ctx, NULL, 0), "Fail to execute CKCreateContext()");
// call saver
CKObjectArray* array = CreateCKObjectArray();
CKObject* objs = ctx->CreateObject(CKCID_OBJECT, "fuck dassault", CK_OBJECTCREATION_NONAMECHECK, NULL);
array->AddIfNotHere(objs);
CKDependencies* dep = CKGetDefaultClassDependencies(CK_DEPENDENCIES_SAVE);
dep->m_Flags = CK_DEPENDENCIES_FULL;
Assert(!ctx->Save("result.cmo", array, 0xFFFFFFFF, dep, NULL), "Fail to save CMO file");
DeleteCKObjectArray(array);
CKCloseContext(ctx);
CKShutdown();
return 0;
}

View File

@ -10,6 +10,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Unvirt", "Unvirt\Unvirt.vcx
{70F64F8D-099C-4C21-B29C-0A8F1E22FB2E} = {70F64F8D-099C-4C21-B29C-0A8F1E22FB2E}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VirtoolsProbe", "VirtoolsProbe\VirtoolsProbe.vcxproj", "{C8D9CFFF-442C-4CCB-80D7-02B6B2E7412F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@ -34,6 +36,12 @@ Global
{77E7ADB6-0D0C-4BA4-8DE7-A284C7F83941}.Release|x64.Build.0 = Release|x64
{77E7ADB6-0D0C-4BA4-8DE7-A284C7F83941}.Release|x86.ActiveCfg = Release|Win32
{77E7ADB6-0D0C-4BA4-8DE7-A284C7F83941}.Release|x86.Build.0 = Release|Win32
{C8D9CFFF-442C-4CCB-80D7-02B6B2E7412F}.Debug|x64.ActiveCfg = Debug|Win32
{C8D9CFFF-442C-4CCB-80D7-02B6B2E7412F}.Debug|x86.ActiveCfg = Debug|Win32
{C8D9CFFF-442C-4CCB-80D7-02B6B2E7412F}.Debug|x86.Build.0 = Debug|Win32
{C8D9CFFF-442C-4CCB-80D7-02B6B2E7412F}.Release|x64.ActiveCfg = Release|Win32
{C8D9CFFF-442C-4CCB-80D7-02B6B2E7412F}.Release|x86.ActiveCfg = Release|Win32
{C8D9CFFF-442C-4CCB-80D7-02B6B2E7412F}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE