Skip to content

Commit

Permalink
Test_Particles
Browse files Browse the repository at this point in the history
  • Loading branch information
i-saint committed Jun 5, 2013
1 parent a7453b6 commit 8121609
Show file tree
Hide file tree
Showing 11 changed files with 1,444 additions and 10 deletions.
13 changes: 8 additions & 5 deletions DynamicPatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ dpAPI bool dpInitialize(const dpConfig &conf)
if(!cf.source_paths.empty() && (!cf.msbuild_commands.empty() || !cf.build_commands.empty())) {
dpStartAutoBuild();
}

if((g_dpConfig.sys_flags & dpE_SysOpenConsole)!=0) {
::AllocConsole();
}
}
if((g_dpConfig.sys_flags & dpE_SysOpenConsole)!=0) {
::AllocConsole();
}

return true;
Expand Down Expand Up @@ -152,11 +151,15 @@ dpAPI void dpAddSourcePath(const char *path)
{
dpGetCurrentContext()->getBuilder()->addSourcePath(path);
}

dpAPI void dpAddMSBuildCommand(const char *msbuild_option)
{
dpGetCurrentContext()->getBuilder()->addMSBuildCommand(msbuild_option);
}

dpAPI void dpAddCLBuildCommand(const char *cl_option)
{
dpGetCurrentContext()->getBuilder()->addCLBuildCommand(cl_option);
}
dpAPI void dpAddBuildCommand(const char *any_command)
{
dpGetCurrentContext()->getBuilder()->addBuildCommand(any_command);
Expand Down
2 changes: 2 additions & 0 deletions DynamicPatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ dpAPI void* dpGetUnpatched(void *target_or_hook_addr);
dpAPI void dpAddLoadPath(const char *path); // accepts wildcard. affects auto build and dpReload()
dpAPI void dpAddSourcePath(const char *path); //
dpAPI void dpAddMSBuildCommand(const char *msbuild_option); // add msbuild command that will be called by auto build thread
dpAPI void dpAddCLBuildCommand(const char *cl_option); // add cl command that will be called by auto build thread
dpAPI void dpAddBuildCommand(const char *any_command); // add arbitrary command that will be called by auto build thread
dpAPI bool dpStartAutoBuild();
dpAPI bool dpStopAutoBuild();
Expand Down Expand Up @@ -185,6 +186,7 @@ dpAPI const char* dpGetVCVars();
#define dpAddLoadPath(...)
#define dpAddSourcePath(...)
#define dpAddMSBuildCommand(...)
#define dpAddCLBuildCommand(...)
#define dpAddBuildCommand(...)
#define dpStartAutoBuild(...)
#define dpStopAutoBuild(...)
Expand Down
47 changes: 47 additions & 0 deletions DynamicPatcher.sln
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test_UseLibDll", "Test\Test
{7CCD61E5-5F56-4050-BACC-1467972D2247} = {7CCD61E5-5F56-4050-BACC-1467972D2247}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test_Particles", "Test\Test_Particles.vcxproj", "{D29C6982-A589-4081-89B1-91E78D7C41E2}"
ProjectSection(ProjectDependencies) = postProject
{7CCD61E5-5F56-4050-BACC-1467972D2247} = {7CCD61E5-5F56-4050-BACC-1467972D2247}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Profile|Win32 = Profile|Win32
Profile|x64 = Profile|x64
Release|Win32 = Release|Win32
Release|x64 = Release|x64
EndGlobalSection
Expand All @@ -59,6 +66,9 @@ Global
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Debug|Win32.Build.0 = Debug|Win32
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Debug|x64.ActiveCfg = Debug|x64
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Debug|x64.Build.0 = Debug|x64
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Profile|Win32.ActiveCfg = Release|x64
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Profile|x64.ActiveCfg = Release|x64
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Profile|x64.Build.0 = Release|x64
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Release|Win32.ActiveCfg = Release|Win32
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Release|Win32.Build.0 = Release|Win32
{7CCD61E5-5F56-4050-BACC-1467972D2247}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -67,6 +77,9 @@ Global
{7986011C-5076-4506-AB77-7272257885FD}.Debug|Win32.Build.0 = Debug|Win32
{7986011C-5076-4506-AB77-7272257885FD}.Debug|x64.ActiveCfg = Debug|x64
{7986011C-5076-4506-AB77-7272257885FD}.Debug|x64.Build.0 = Debug|x64
{7986011C-5076-4506-AB77-7272257885FD}.Profile|Win32.ActiveCfg = Release|x64
{7986011C-5076-4506-AB77-7272257885FD}.Profile|x64.ActiveCfg = Release|x64
{7986011C-5076-4506-AB77-7272257885FD}.Profile|x64.Build.0 = Release|x64
{7986011C-5076-4506-AB77-7272257885FD}.Release|Win32.ActiveCfg = Release|Win32
{7986011C-5076-4506-AB77-7272257885FD}.Release|Win32.Build.0 = Release|Win32
{7986011C-5076-4506-AB77-7272257885FD}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -75,6 +88,9 @@ Global
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Debug|Win32.Build.0 = Debug|Win32
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Debug|x64.ActiveCfg = Debug|x64
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Debug|x64.Build.0 = Debug|x64
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Profile|Win32.ActiveCfg = Release|x64
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Profile|x64.ActiveCfg = Release|x64
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Profile|x64.Build.0 = Release|x64
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Release|Win32.ActiveCfg = Release|Win32
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Release|Win32.Build.0 = Release|Win32
{AF9F0E41-895E-49BA-B522-45691F0BD4F7}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -83,6 +99,9 @@ Global
{0E8C293B-618B-428B-B1AC-502544B732FB}.Debug|Win32.Build.0 = Debug|Win32
{0E8C293B-618B-428B-B1AC-502544B732FB}.Debug|x64.ActiveCfg = Debug|x64
{0E8C293B-618B-428B-B1AC-502544B732FB}.Debug|x64.Build.0 = Debug|x64
{0E8C293B-618B-428B-B1AC-502544B732FB}.Profile|Win32.ActiveCfg = Release|x64
{0E8C293B-618B-428B-B1AC-502544B732FB}.Profile|x64.ActiveCfg = Release|x64
{0E8C293B-618B-428B-B1AC-502544B732FB}.Profile|x64.Build.0 = Release|x64
{0E8C293B-618B-428B-B1AC-502544B732FB}.Release|Win32.ActiveCfg = Release|Win32
{0E8C293B-618B-428B-B1AC-502544B732FB}.Release|Win32.Build.0 = Release|Win32
{0E8C293B-618B-428B-B1AC-502544B732FB}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -91,6 +110,9 @@ Global
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Debug|Win32.Build.0 = Debug|Win32
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Debug|x64.ActiveCfg = Debug|x64
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Debug|x64.Build.0 = Debug|x64
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Profile|Win32.ActiveCfg = Release|x64
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Profile|x64.ActiveCfg = Release|x64
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Profile|x64.Build.0 = Release|x64
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Release|Win32.ActiveCfg = Release|Win32
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Release|Win32.Build.0 = Release|Win32
{8CA885E0-BF97-4FB3-82AD-DBE0FF0E4538}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -99,6 +121,9 @@ Global
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Debug|Win32.Build.0 = Debug|Win32
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Debug|x64.ActiveCfg = Debug|x64
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Debug|x64.Build.0 = Debug|x64
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Profile|Win32.ActiveCfg = Release|x64
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Profile|x64.ActiveCfg = Release|x64
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Profile|x64.Build.0 = Release|x64
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Release|Win32.ActiveCfg = Release|Win32
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Release|Win32.Build.0 = Release|Win32
{4256E731-91A4-44B7-993C-13CA2CFDF71B}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -107,6 +132,9 @@ Global
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Debug|Win32.Build.0 = Debug|Win32
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Debug|x64.ActiveCfg = Debug|x64
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Debug|x64.Build.0 = Debug|x64
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Profile|Win32.ActiveCfg = Release|x64
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Profile|x64.ActiveCfg = Release|x64
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Profile|x64.Build.0 = Release|x64
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Release|Win32.ActiveCfg = Release|Win32
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Release|Win32.Build.0 = Release|Win32
{78800EB9-3249-4A82-9074-3D68A2E56C60}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -115,6 +143,9 @@ Global
{315A0660-7223-41CF-839C-69CF731F8F43}.Debug|Win32.Build.0 = Debug|Win32
{315A0660-7223-41CF-839C-69CF731F8F43}.Debug|x64.ActiveCfg = Debug|x64
{315A0660-7223-41CF-839C-69CF731F8F43}.Debug|x64.Build.0 = Debug|x64
{315A0660-7223-41CF-839C-69CF731F8F43}.Profile|Win32.ActiveCfg = Release|x64
{315A0660-7223-41CF-839C-69CF731F8F43}.Profile|x64.ActiveCfg = Release|x64
{315A0660-7223-41CF-839C-69CF731F8F43}.Profile|x64.Build.0 = Release|x64
{315A0660-7223-41CF-839C-69CF731F8F43}.Release|Win32.ActiveCfg = Release|Win32
{315A0660-7223-41CF-839C-69CF731F8F43}.Release|Win32.Build.0 = Release|Win32
{315A0660-7223-41CF-839C-69CF731F8F43}.Release|x64.ActiveCfg = Release|x64
Expand All @@ -123,10 +154,25 @@ Global
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Debug|Win32.Build.0 = Debug|Win32
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Debug|x64.ActiveCfg = Debug|x64
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Debug|x64.Build.0 = Debug|x64
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Profile|Win32.ActiveCfg = Release|x64
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Profile|x64.ActiveCfg = Release|x64
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Profile|x64.Build.0 = Release|x64
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Release|Win32.ActiveCfg = Release|Win32
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Release|Win32.Build.0 = Release|Win32
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Release|x64.ActiveCfg = Release|x64
{2B417248-C199-456C-99A3-CD7930E0D6A1}.Release|x64.Build.0 = Release|x64
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Debug|Win32.ActiveCfg = Debug|Win32
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Debug|Win32.Build.0 = Debug|Win32
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Debug|x64.ActiveCfg = Debug|x64
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Debug|x64.Build.0 = Debug|x64
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Profile|Win32.ActiveCfg = Profile|Win32
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Profile|Win32.Build.0 = Profile|Win32
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Profile|x64.ActiveCfg = Profile|x64
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Profile|x64.Build.0 = Profile|x64
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Release|Win32.ActiveCfg = Release|Win32
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Release|Win32.Build.0 = Release|Win32
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Release|x64.ActiveCfg = Release|x64
{D29C6982-A589-4081-89B1-91E78D7C41E2}.Release|x64.Build.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -138,5 +184,6 @@ Global
{78800EB9-3249-4A82-9074-3D68A2E56C60} = {64A0BD32-2657-48A5-A8A8-B047C39B0455}
{315A0660-7223-41CF-839C-69CF731F8F43} = {64A0BD32-2657-48A5-A8A8-B047C39B0455}
{2B417248-C199-456C-99A3-CD7930E0D6A1} = {64A0BD32-2657-48A5-A8A8-B047C39B0455}
{D29C6982-A589-4081-89B1-91E78D7C41E2} = {64A0BD32-2657-48A5-A8A8-B047C39B0455}
EndGlobalSection
EndGlobal
Loading

0 comments on commit 8121609

Please sign in to comment.