Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef43d22686 | ||
|
|
6ba220cc29 | ||
|
|
b20fc255dc | ||
|
|
cf26061123 | ||
|
|
3d422e4743 | ||
|
|
a4216507d6 | ||
|
|
4fc2af2878 | ||
|
|
87d453081b | ||
|
|
158c90ef84 | ||
|
|
a766413a5d | ||
|
|
430e650d0d | ||
|
|
be29f090f3 | ||
|
|
c6ceb61636 | ||
|
|
232ac31190 | ||
|
|
eb6964d0b9 | ||
|
|
b6fc62bbf1 | ||
|
|
2c10f27ab0 | ||
|
|
360305357b | ||
|
|
26c6dc76c7 | ||
|
|
b746ddf001 | ||
|
|
4cfd925af4 | ||
|
|
d70e20496a | ||
|
|
0b7083edad | ||
|
|
60958cc3c1 | ||
|
|
3b6bd03c49 | ||
|
|
d7dfc57192 | ||
|
|
af017ecc4e | ||
|
|
902f0c3421 | ||
|
|
501bb2de61 | ||
|
|
f498fee877 | ||
|
|
5a72210023 | ||
|
|
49c69de847 | ||
|
|
5652879f74 | ||
|
|
0a3b41977e | ||
|
|
057a267fe8 | ||
|
|
ede1039f43 | ||
|
|
2bac4de81d | ||
|
|
74e2c9a31d | ||
|
|
25a2a5f6f6 |
+2
-8
@@ -18,7 +18,7 @@ after_build:
|
|||||||
|
|
||||||
md %TMP%\full\ram\
|
md %TMP%\full\ram\
|
||||||
|
|
||||||
md %TMP%\full\ram\databank_template\
|
md %TMP%\full\ram\databank_template_v2\
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -30,19 +30,13 @@ after_build:
|
|||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.sfv %TMP%\full\
|
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.sfv %TMP%\full\
|
||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_base_game.md5 %TMP%\full\
|
|
||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.sfv %TMP%\full\
|
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.sfv %TMP%\full\
|
||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\verify_mount_data.md5 %TMP%\full\
|
|
||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\glut32.dll %TMP%\full\
|
|
||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\*.* %TMP%\full\plugins\
|
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\*.* %TMP%\full\plugins\
|
||||||
|
|
||||||
copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\Novidia Shaders\*.*" "%TMP%\full\plugins\Novidia Shaders\"
|
copy "%APPVEYOR_BUILD_FOLDER%\source-code\data\plugins\Novidia Shaders\*.*" "%TMP%\full\plugins\Novidia Shaders\"
|
||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\ram\databank_template\*.dat %TMP%\full\ram\databank_template\
|
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\ram\databank_template_v2\*.dat %TMP%\full\ram\databank_template_v2\
|
||||||
|
|
||||||
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\patches\custom_freeplay_text_example.p %TMP%\full\patches\
|
copy %APPVEYOR_BUILD_FOLDER%\source-code\data\patches\custom_freeplay_text_example.p %TMP%\full\patches\
|
||||||
|
|
||||||
|
|||||||
+91
-91
@@ -1,91 +1,91 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 16.0.28922.388
|
VisualStudioVersion = 17.12.35527.113
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PD-Loader", "source\PD-Loader\PD-Loader.vcxproj", "{CA479467-D518-46A2-AC86-3098ADA99FE5}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PD-Loader", "source\PD-Loader\PD-Loader.vcxproj", "{CA479467-D518-46A2-AC86-3098ADA99FE5}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TLAC", "source\plugins\TLAC\TLAC.vcxproj", "{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TLAC", "source\plugins\TLAC\TLAC.vcxproj", "{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Patches", "source\plugins\Patches\Patches.vcxproj", "{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Patches", "source\plugins\Patches\Patches.vcxproj", "{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Launcher", "source\plugins\Launcher\Launcher.vcxproj", "{60D5E9F4-335F-402B-9A07-D78674DFFC9B}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Launcher", "source\plugins\Launcher\Launcher.vcxproj", "{60D5E9F4-335F-402B-9A07-D78674DFFC9B}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Render", "source\plugins\Render\Render.vcxproj", "{89F87459-768F-4638-9267-0F90CD74452D}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Render", "source\plugins\Render\Render.vcxproj", "{89F87459-768F-4638-9267-0F90CD74452D}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fakedll", "source\fakedll\fakedll.vcxproj", "{B49C6ABE-931C-4F91-9A94-21A41A305FEE}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fakedll", "source\fakedll\fakedll.vcxproj", "{B49C6ABE-931C-4F91-9A94-21A41A305FEE}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DivaSound", "source\plugins\DivaSound\DivaSound.vcxproj", "{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DivaSound", "source\plugins\DivaSound\DivaSound.vcxproj", "{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DivaMovie", "source\plugins\DivaMovie\DivaMovie.vcxproj", "{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DivaMovie", "source\plugins\DivaMovie\DivaMovie.vcxproj", "{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ShaderPatch", "source\plugins\ShaderPatch\ShaderPatch.vcxproj", "{C07E495E-A16F-48FA-80E4-0296B5234F0B}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ShaderPatch", "source\plugins\ShaderPatch\ShaderPatch.vcxproj", "{C07E495E-A16F-48FA-80E4-0296B5234F0B}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DivaWig", "source\plugins\DivaWig\DivaWig.vcxproj", "{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DivaWig", "source\plugins\DivaWig\DivaWig.vcxproj", "{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DSCRemote", "source\plugins\DSCRemote\DSCRemote.vcxproj", "{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DSCRemote", "source\plugins\DSCRemote\DSCRemote.vcxproj", "{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Novidia", "source\plugins\Novidia\Novidia.vcxproj", "{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}"
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Novidia", "source\plugins\Novidia\Novidia.vcxproj", "{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|x64 = Debug|x64
|
Debug|x64 = Debug|x64
|
||||||
Release|x64 = Release|x64
|
Release|x64 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Debug|x64.ActiveCfg = Debug|x64
|
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Debug|x64.Build.0 = Debug|x64
|
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Debug|x64.Build.0 = Debug|x64
|
||||||
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Release|x64.ActiveCfg = Release|x64
|
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Release|x64.ActiveCfg = Release|x64
|
||||||
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Release|x64.Build.0 = Release|x64
|
{CA479467-D518-46A2-AC86-3098ADA99FE5}.Release|x64.Build.0 = Release|x64
|
||||||
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Debug|x64.ActiveCfg = Debug|x64
|
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Debug|x64.Build.0 = Debug|x64
|
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Debug|x64.Build.0 = Debug|x64
|
||||||
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Release|x64.ActiveCfg = Release|x64
|
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Release|x64.ActiveCfg = Release|x64
|
||||||
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Release|x64.Build.0 = Release|x64
|
{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}.Release|x64.Build.0 = Release|x64
|
||||||
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Debug|x64.ActiveCfg = Debug|x64
|
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Debug|x64.Build.0 = Debug|x64
|
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Debug|x64.Build.0 = Debug|x64
|
||||||
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Release|x64.ActiveCfg = Release|x64
|
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Release|x64.ActiveCfg = Release|x64
|
||||||
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Release|x64.Build.0 = Release|x64
|
{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}.Release|x64.Build.0 = Release|x64
|
||||||
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Debug|x64.ActiveCfg = Debug|x64
|
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Debug|x64.Build.0 = Debug|x64
|
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Debug|x64.Build.0 = Debug|x64
|
||||||
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Release|x64.ActiveCfg = Release|x64
|
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Release|x64.ActiveCfg = Release|x64
|
||||||
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Release|x64.Build.0 = Release|x64
|
{60D5E9F4-335F-402B-9A07-D78674DFFC9B}.Release|x64.Build.0 = Release|x64
|
||||||
{89F87459-768F-4638-9267-0F90CD74452D}.Debug|x64.ActiveCfg = Debug|x64
|
{89F87459-768F-4638-9267-0F90CD74452D}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{89F87459-768F-4638-9267-0F90CD74452D}.Debug|x64.Build.0 = Debug|x64
|
{89F87459-768F-4638-9267-0F90CD74452D}.Debug|x64.Build.0 = Debug|x64
|
||||||
{89F87459-768F-4638-9267-0F90CD74452D}.Release|x64.ActiveCfg = Release|x64
|
{89F87459-768F-4638-9267-0F90CD74452D}.Release|x64.ActiveCfg = Release|x64
|
||||||
{89F87459-768F-4638-9267-0F90CD74452D}.Release|x64.Build.0 = Release|x64
|
{89F87459-768F-4638-9267-0F90CD74452D}.Release|x64.Build.0 = Release|x64
|
||||||
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Debug|x64.ActiveCfg = Debug|x64
|
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Debug|x64.Build.0 = Debug|x64
|
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Debug|x64.Build.0 = Debug|x64
|
||||||
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Release|x64.ActiveCfg = Release|x64
|
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Release|x64.ActiveCfg = Release|x64
|
||||||
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Release|x64.Build.0 = Release|x64
|
{B49C6ABE-931C-4F91-9A94-21A41A305FEE}.Release|x64.Build.0 = Release|x64
|
||||||
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Debug|x64.ActiveCfg = Debug|x64
|
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Debug|x64.Build.0 = Debug|x64
|
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Debug|x64.Build.0 = Debug|x64
|
||||||
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Release|x64.ActiveCfg = Release|x64
|
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Release|x64.ActiveCfg = Release|x64
|
||||||
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Release|x64.Build.0 = Release|x64
|
{EE1A551A-49A0-40F2-8C2E-862D0AE55B43}.Release|x64.Build.0 = Release|x64
|
||||||
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.ActiveCfg = Debug|x64
|
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.Build.0 = Debug|x64
|
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.Build.0 = Debug|x64
|
||||||
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.ActiveCfg = Release|x64
|
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.ActiveCfg = Release|x64
|
||||||
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.Build.0 = Release|x64
|
{1994C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.Build.0 = Release|x64
|
||||||
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Debug|x64.ActiveCfg = Debug|x64
|
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Debug|x64.Build.0 = Debug|x64
|
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Debug|x64.Build.0 = Debug|x64
|
||||||
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Release|x64.ActiveCfg = Release|x64
|
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Release|x64.ActiveCfg = Release|x64
|
||||||
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Release|x64.Build.0 = Release|x64
|
{C07E495E-A16F-48FA-80E4-0296B5234F0B}.Release|x64.Build.0 = Release|x64
|
||||||
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.ActiveCfg = Debug|x64
|
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.Build.0 = Debug|x64
|
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.Build.0 = Debug|x64
|
||||||
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.ActiveCfg = Release|x64
|
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.ActiveCfg = Release|x64
|
||||||
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.Build.0 = Release|x64
|
{2394C586-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.Build.0 = Release|x64
|
||||||
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.ActiveCfg = Debug|x64
|
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.Build.0 = Debug|x64
|
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Debug|x64.Build.0 = Debug|x64
|
||||||
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.ActiveCfg = Release|x64
|
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.ActiveCfg = Release|x64
|
||||||
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.Build.0 = Release|x64
|
{8544C599-F73B-4EF2-BA3E-2A0FC3034B1A}.Release|x64.Build.0 = Release|x64
|
||||||
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Debug|x64.ActiveCfg = Debug|x64
|
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Debug|x64.Build.0 = Debug|x64
|
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Debug|x64.Build.0 = Debug|x64
|
||||||
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Release|x64.ActiveCfg = Release|x64
|
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Release|x64.ActiveCfg = Release|x64
|
||||||
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Release|x64.Build.0 = Release|x64
|
{47181A1D-C22C-4C9C-B4E0-CB6CE886A1D8}.Release|x64.Build.0 = Release|x64
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {F5AD7464-338F-4150-9DDC-85AD115BA616}
|
SolutionGuid = {F5AD7464-338F-4150-9DDC-85AD115BA616}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|||||||
@@ -25,25 +25,28 @@ Toon_Hair_Improve=0
|
|||||||
Toon_Hair_Improve_Val1=1.25
|
Toon_Hair_Improve_Val1=1.25
|
||||||
|
|
||||||
# Lyb's toon shader improvements (24 sept 2019)
|
# Lyb's toon shader improvements (24 sept 2019)
|
||||||
|
# Fixes by korenkonder (11 jan 2025)
|
||||||
# Toon_Lines_Improve: Adjusts toon shader outlines
|
# Toon_Lines_Improve: Adjusts toon shader outlines
|
||||||
Toon_Lines_Improve=0
|
Toon_Lines_Improve=0
|
||||||
# ???
|
# Skin Shadow Strength
|
||||||
Toon_Lines_Improve_Val1=0.75
|
Toon_Lines_Improve_Val1=0.05
|
||||||
# Thickness Multiplier(?)
|
# Skin Outline Strength
|
||||||
Toon_Lines_Improve_Val2=0.75
|
Toon_Lines_Improve_Val2=0.9
|
||||||
# Thickness Offset(?)
|
# Outline Strength Multiplier
|
||||||
Toon_Lines_Improve_Val3=0.75
|
Toon_Lines_Improve_Val3=0.7
|
||||||
|
# Outline Strength Offset
|
||||||
|
Toon_Lines_Improve_Val4=0.25
|
||||||
|
|
||||||
[Patches]
|
[Patches]
|
||||||
# Compatibility patches:
|
# Compatibility patches:
|
||||||
# Star Story (and etc.) stage corruption (Maxwell+)
|
# Star Story (and etc.) stage corruption (Maxwell+)
|
||||||
blinn_per_vert\.0010010[23]00[01]\.fp=arch:GA,TU,GP,GV,GM||cfg:compat||from:TEX tex_col, a_tex_color0, texture\[0\], 2D; ALIAS||to:TEX tex_col, a_tex_color0, texture[0], 2D; MUL tex_col, 1, tex_col; ALIAS
|
blinn_per_vert\.0010010[23]00[01]\.fp=arch:GB,AD,GA,GV,TU,GP,GM||cfg:compat||from:TEX tex_col, a_tex_color0, texture\[0\], 2D; ALIAS||to:TEX tex_col, a_tex_color0, texture[0], 2D; MUL tex_col, 1, tex_col; ALIAS
|
||||||
# Turing shading lines (new patch by samyuu, hopefully ported to here correctly)
|
# Turing shading lines (new patch by samyuu, hopefully ported to here correctly)
|
||||||
.*=arch:GA,TU||cfg:compat||from:SHORT ||to:
|
.*=arch:GB,AD,GA,GV,TU||cfg:compat||from:SHORT ||to:
|
||||||
# Turing NPR cloth noise
|
# Turing NPR cloth noise
|
||||||
cloth_npr1.*=arch:GA,TU||cfg:compat||from:SSG _tmp0.yw, ybr.xxzz;||to:TEMP _tmpForSSG; SGE _tmpForSSG.xz, ybr.xxzz, 0; SUB _tmpForSSG.xz, _tmpForSSG.xxzz, 1; SGT _tmpForSSG.yw, ybr.xxzz, 0; ADD _tmp0.yw, _tmpForSSG.xxzz, _tmpForSSG.yyww;
|
cloth_npr1.*=arch:GB,AD,GA,GV,TU||cfg:compat||from:SSG _tmp0.yw, ybr.xxzz;||to:TEMP _tmpForSSG; SGE _tmpForSSG.xz, ybr.xxzz, 0; SUB _tmpForSSG.xz, _tmpForSSG.xxzz, 1; SGT _tmpForSSG.yw, ybr.xxzz, 0; ADD _tmp0.yw, _tmpForSSG.xxzz, _tmpForSSG.yyww;
|
||||||
# Turing auto-exposure fix by samyuu
|
# Turing auto-exposure fix by samyuu
|
||||||
stage_blinn.*\.fp=arch:GA,TU||cfg:compat||from:NRMH normal, a_normal;||to:NRM normal, a_normal;
|
stage_blinn.*\.fp=arch:GB,AD,GA,GV,TU||cfg:compat||from:NRMH normal, a_normal;||to:NRM normal, a_normal;
|
||||||
|
|
||||||
# Lyb's toon shader improvements:
|
# Lyb's toon shader improvements:
|
||||||
cloth_npr1.*=cfg:toon_improve||from:MAD tmp.y, lc.z, 1.2, -0.5;||to:MAD tmp.y, lc.z, <val1>, <val2>;
|
cloth_npr1.*=cfg:toon_improve||from:MAD tmp.y, lc.z, 1.2, -0.5;||to:MAD tmp.y, lc.z, <val1>, <val2>;
|
||||||
@@ -51,8 +54,9 @@ skin_default.*=cfg:toon_improve||from:MAD diff.xyz, spec, spec_ratio, diff;||to:
|
|||||||
.*eye.*=cfg:toon_eyes_improve||from:ADD o_color_f0.w, diff.x, diff.y;||to:
|
.*eye.*=cfg:toon_eyes_improve||from:ADD o_color_f0.w, diff.x, diff.y;||to:
|
||||||
.*eye.*=cfg:toon_eyes_improve||from:ADD result.color.w, diff.x, diff.y;||to:
|
.*eye.*=cfg:toon_eyes_improve||from:ADD result.color.w, diff.x, diff.y;||to:
|
||||||
hair_npr1.*=cfg:toon_hair_improve||from:MUL spec.x, tmp.x, 0.7;||to:MUL spec.x, tmp.x, 0.7; MUL diff, diff, <val1>;
|
hair_npr1.*=cfg:toon_hair_improve||from:MUL spec.x, tmp.x, 0.7;||to:MUL spec.x, tmp.x, 0.7; MUL diff, diff, <val1>;
|
||||||
tone_map_npr1.*=cfg:toon_lines_improve||from:MUL density.y, density.y, 0.25;||to:MUL density.y, density.y, <val1>;
|
tone_map_npr1.*=cfg:toon_lines_improve||from:MUL density.y, density.y, 0.05;||to:MUL density.y, density.y, <val1>;
|
||||||
tone_map_npr1.*=cfg:toon_lines_improve||from:MAD density.w, density.x, 0.7, 0.25;||to:MAD density.w, density.x, <val2>, <val3>;
|
tone_map_npr1.*=cfg:toon_lines_improve||from:MUL density.y, density.y, 0.9;||to:MUL density.y, density.y, <val2>;
|
||||||
|
tone_map_npr1.*=cfg:toon_lines_improve||from:MAD density.w, density.x, 0.7, 0.25;||to:MAD density.w, density.x, <val3>, <val4>;
|
||||||
|
|
||||||
# Intel related patches
|
# Intel related patches
|
||||||
(?:movie|sprite|imgfilter).*=cfg:intel||from:; ||to:;\n
|
(?:movie|sprite|imgfilter).*=cfg:intel||from:; ||to:;\n
|
||||||
|
|||||||
@@ -22,14 +22,17 @@ Toon_Hair_Improve=0
|
|||||||
Toon_Hair_Improve_Val1=1.25
|
Toon_Hair_Improve_Val1=1.25
|
||||||
|
|
||||||
# Lyb's toon shader improvements (24 sept 2019)
|
# Lyb's toon shader improvements (24 sept 2019)
|
||||||
|
# Fixes by korenkonder (11 jan 2025)
|
||||||
# Toon_Lines_Improve: Adjusts toon shader outlines
|
# Toon_Lines_Improve: Adjusts toon shader outlines
|
||||||
Toon_Lines_Improve=0
|
Toon_Lines_Improve=0
|
||||||
# ???
|
# Skin Shadow Strength
|
||||||
Toon_Lines_Improve_Val1=0.75
|
Toon_Lines_Improve_Val1=0.05
|
||||||
# Thickness Multiplier(?)
|
# Skin Outline Strength
|
||||||
Toon_Lines_Improve_Val2=0.75
|
Toon_Lines_Improve_Val2=0.9
|
||||||
# Thickness Offset(?)
|
# Outline Strength Multiplier
|
||||||
Toon_Lines_Improve_Val3=0.75
|
Toon_Lines_Improve_Val3=0.7
|
||||||
|
# Outline Strength Offset
|
||||||
|
Toon_Lines_Improve_Val4=0.25
|
||||||
|
|
||||||
# Debug patches:
|
# Debug patches:
|
||||||
# Nametags
|
# Nametags
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
Enable=1
|
Enable=1
|
||||||
|
|
||||||
[GPU]
|
[GPU]
|
||||||
# Force GPU model -- -1=auto, 0=Kepler, 1=Maxwell/Pascal, 2=Turing, 3=Ampere
|
# Force GPU model -- -1=auto, 0=Kepler, 1=Maxwell/Pascal, 2=Turing, 3=Ampere, 4=Ada Lovelace, 5=Blackwell
|
||||||
Model=-1
|
Model=-1
|
||||||
|
|
||||||
[Launcher]
|
[Launcher]
|
||||||
@@ -17,12 +17,6 @@ Skip=0
|
|||||||
No_GPU_Dialog=0
|
No_GPU_Dialog=0
|
||||||
# Sets the dark colour scheme in the launcher.
|
# Sets the dark colour scheme in the launcher.
|
||||||
Dark_Launcher=0
|
Dark_Launcher=0
|
||||||
# Enables acrylic blur in the launcher on Windows 10 20H2 or later.
|
|
||||||
Acrylic_Blur=0
|
|
||||||
#Ignores some OpenGL-related errors. Don't use both patches at the same time unless you're know what you're doing
|
|
||||||
OpenGL_Patch_A=0
|
|
||||||
#Ignores some OpenGL-related errors. Don't use both patches at the same time unless you're know what you're doing
|
|
||||||
OpenGL_Patch_B=0
|
|
||||||
# Command line arguments
|
# Command line arguments
|
||||||
Command_Line=
|
Command_Line=
|
||||||
# Launches divahook.bat/start.bat intead of diva.exe.
|
# Launches divahook.bat/start.bat intead of diva.exe.
|
||||||
@@ -41,6 +35,8 @@ Stereo=1
|
|||||||
Quick_Start=0
|
Quick_Start=0
|
||||||
#Disable the scrolling sound effect
|
#Disable the scrolling sound effect
|
||||||
No_Scrolling_SFX=0
|
No_Scrolling_SFX=0
|
||||||
|
#Automatically generate databank for missing entries and allow multiple PVList files to be used
|
||||||
|
Auto_Databank=1
|
||||||
#Enhanced Stage Manager (sets a custom number of stages; "stage_manager" should be disabled in "components.ini")
|
#Enhanced Stage Manager (sets a custom number of stages; "stage_manager" should be disabled in "components.ini")
|
||||||
#Number of stages (0 = disabled)
|
#Number of stages (0 = disabled)
|
||||||
Enhanced_Stage_Manager=0
|
Enhanced_Stage_Manager=0
|
||||||
@@ -66,6 +62,8 @@ Hide_Volume=0
|
|||||||
No_PV_UI=0
|
No_PV_UI=0
|
||||||
#Hide the watermark that's usually shown in PV viewing mode
|
#Hide the watermark that's usually shown in PV viewing mode
|
||||||
Hide_PV_Watermark=0
|
Hide_PV_Watermark=0
|
||||||
|
#Hide the top-right corner status icons
|
||||||
|
Hide_Status_Icons=0
|
||||||
#Set the card reader and network status icons -- 0=default, 1=hidden, 2=error, 3=OK, 4=partial OK
|
#Set the card reader and network status icons -- 0=default, 1=hidden, 2=error, 3=OK, 4=partial OK
|
||||||
Status_Icons=0
|
Status_Icons=0
|
||||||
#Disable showing lyrics
|
#Disable showing lyrics
|
||||||
@@ -90,8 +88,6 @@ Card=0
|
|||||||
Hardware_Slider=0
|
Hardware_Slider=0
|
||||||
#Enable custom patches
|
#Enable custom patches
|
||||||
Custom_Patches=1
|
Custom_Patches=1
|
||||||
#Prevent data deletion
|
|
||||||
Prevent_Data_Deletion=0
|
|
||||||
|
|
||||||
[Graphics]
|
[Graphics]
|
||||||
# Lag Compensation
|
# Lag Compensation
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ MENU_CIRCLE = Spacebar
|
|||||||
|
|
||||||
TOON = F9
|
TOON = F9
|
||||||
COIN = F10
|
COIN = F10
|
||||||
|
WIREFRAME = Backspace
|
||||||
|
|
||||||
# Touch Slider:
|
# Touch Slider:
|
||||||
LEFT_SIDE_SLIDE_LEFT = Q, Ds4_L_Stick_Left, XINPUT_LLEFT
|
LEFT_SIDE_SLIDE_LEFT = Q, Ds4_L_Stick_Left, XINPUT_LLEFT
|
||||||
@@ -94,6 +95,7 @@ RIGHT_SIDE_SLIDE_RIGHT = O, Ds4_R_Stick_Right, XINPUT_RRIGHT
|
|||||||
|
|
||||||
# - Special Keys
|
# - Special Keys
|
||||||
# "Enter", "Tab", "Backspace", "Spacebar", "Insert", "Delete", "Home", "End", "PageUp", "PageDown", "Escape"
|
# "Enter", "Tab", "Backspace", "Spacebar", "Insert", "Delete", "Home", "End", "PageUp", "PageDown", "Escape"
|
||||||
|
# "Comma", "Period", "Colon", "Slash", "Tilde", "LeftBracket", "Backslash", "RightBracket", "SingleDoubleQuote", "OEM_8"
|
||||||
|
|
||||||
# --- MOUSE BUTTON NAMES: ---
|
# --- MOUSE BUTTON NAMES: ---
|
||||||
# "MouseLeft", "MouseMiddle", "MouseRight", "MouseX1", "MouseX2"
|
# "MouseLeft", "MouseMiddle", "MouseRight", "MouseX1", "MouseX2"
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
%2A%2A%$A
|
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
|||||||
|
%2A%2A%2A
|
||||||
@@ -34,9 +34,9 @@ namespace GPUModel
|
|||||||
// note that the used GL context may differ
|
// note that the used GL context may differ
|
||||||
std::string getGpuName()
|
std::string getGpuName()
|
||||||
{
|
{
|
||||||
// detected model can be overridden -- 0: Kepler, 1: Maxwell, 2: Turing, 3: Ampere
|
// detected model can be overridden -- 0: Kepler, 1: Maxwell, 2: Turing, 3: Ampere, 4: Ada Lovelace, 5: Blackwell
|
||||||
int nGPUModel = GetPrivateProfileIntW(L"gpu", L"model", -1, CONFIG_FILE);
|
int nGPUModel = GetPrivateProfileIntW(L"gpu", L"model", -1, CONFIG_FILE);
|
||||||
if (nGPUModel >= 0 && nGPUModel <= 3)
|
if (nGPUModel >= 0 && nGPUModel <= 4)
|
||||||
{
|
{
|
||||||
std::string arch;
|
std::string arch;
|
||||||
switch (nGPUModel)
|
switch (nGPUModel)
|
||||||
@@ -53,6 +53,12 @@ namespace GPUModel
|
|||||||
case 3:
|
case 3:
|
||||||
arch = "GA000";
|
arch = "GA000";
|
||||||
break;
|
break;
|
||||||
|
case 4:
|
||||||
|
arch = "AD000";
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
arch = "GB000";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("[GPUModel] GPU Model override: %s\n", arch.c_str());
|
printf("[GPUModel] GPU Model override: %s\n", arch.c_str());
|
||||||
@@ -65,7 +71,7 @@ namespace GPUModel
|
|||||||
//DWORD dwAttrib = GetFileAttributesW(L"amdgfxinfo64.dll");
|
//DWORD dwAttrib = GetFileAttributesW(L"amdgfxinfo64.dll");
|
||||||
//if (dwAttrib != INVALID_FILE_ATTRIBUTES && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY))
|
//if (dwAttrib != INVALID_FILE_ATTRIBUTES && !(dwAttrib & FILE_ATTRIBUTE_DIRECTORY))
|
||||||
struct stat buffer; // for some reason winapi version wasn't working
|
struct stat buffer; // for some reason winapi version wasn't working
|
||||||
if (stat("amdgfxinfo64.dll", &buffer) == 0);
|
if (stat("amdgfxinfo64.dll", &buffer) == 0)
|
||||||
{
|
{
|
||||||
non_nv_name = "AMD";
|
non_nv_name = "AMD";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -798,7 +798,7 @@ void Init()
|
|||||||
stream.close();
|
stream.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::filesystem::path databank_template = L"ram\\databank_template";
|
const std::filesystem::path databank_template = L"ram\\databank_template_v2";
|
||||||
const std::filesystem::path databank = L"ram\\databank";
|
const std::filesystem::path databank = L"ram\\databank";
|
||||||
if (!std::filesystem::exists(databank)&&std::filesystem::exists(databank_template))
|
if (!std::filesystem::exists(databank)&&std::filesystem::exists(databank_template))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ VTABLE_HOOK(HRESULT, IMFTransform, ProcessMessage, MFT_MESSAGE_TYPE eMessage, UL
|
|||||||
static bool warn = false;
|
static bool warn = false;
|
||||||
if (!warn)
|
if (!warn)
|
||||||
{
|
{
|
||||||
MessageBoxW(0, L"Your system supports DXVA hardware decoding.\nDivaMovie will be disabled.\n\nIt is highly recommended to restart the game now.", L"DivaMovie", MB_ICONWARNING);
|
MessageBoxW(0, L"Your system supports DXVA hardware decoding and Force Hybrid Decoding is disabled.\nDivaMovie will be disabled.\n\nIt is HIGHLY recommended to restart the game now.", L"DivaMovie", MB_ICONINFORMATION);
|
||||||
|
|
||||||
CSimpleIniW ini_reader;
|
CSimpleIniW ini_reader;
|
||||||
ini_reader.SetUnicode(false);
|
ini_reader.SetUnicode(false);
|
||||||
|
|||||||
@@ -609,6 +609,7 @@ public:
|
|||||||
int _defaultVal;
|
int _defaultVal;
|
||||||
int _indexOffset;
|
int _indexOffset;
|
||||||
std::vector<LPCWSTR> _valueStrings;
|
std::vector<LPCWSTR> _valueStrings;
|
||||||
|
System::IntPtr labelHandle;
|
||||||
|
|
||||||
DropdownOption(LPCWSTR iniVarName, LPCWSTR iniSectionName, LPCWSTR iniFilePath, LPCWSTR friendlyName, LPCWSTR description, int defaultVal, std::vector<LPCWSTR> valueStrings, int indexOffset=0)
|
DropdownOption(LPCWSTR iniVarName, LPCWSTR iniSectionName, LPCWSTR iniFilePath, LPCWSTR friendlyName, LPCWSTR description, int defaultVal, std::vector<LPCWSTR> valueStrings, int indexOffset=0)
|
||||||
{
|
{
|
||||||
@@ -628,6 +629,7 @@ public:
|
|||||||
ComboBox^ combobox = gcnew ComboBox();
|
ComboBox^ combobox = gcnew ComboBox();
|
||||||
|
|
||||||
label->Text = gcnew String(_friendlyName);
|
label->Text = gcnew String(_friendlyName);
|
||||||
|
labelHandle = label->Handle;
|
||||||
label->Left = left;
|
label->Left = left;
|
||||||
label->Top = top + 3;
|
label->Top = top + 3;
|
||||||
label->Width = Col1Width;
|
label->Width = Col1Width;
|
||||||
@@ -1087,9 +1089,10 @@ class PluginOption : public ConfigOptionBase
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
bool _defaultVal;
|
bool _defaultVal;
|
||||||
|
std::wstring _builddate;
|
||||||
std::vector<ConfigOptionBase*> _configopts;
|
std::vector<ConfigOptionBase*> _configopts;
|
||||||
|
|
||||||
PluginOption(LPCWSTR iniVarName, LPCWSTR iniSectionName, LPCWSTR iniFilePath, LPCWSTR friendlyName, LPCWSTR description, bool defaultVal, std::vector<ConfigOptionBase*> configopts)
|
PluginOption(LPCWSTR iniVarName, LPCWSTR iniSectionName, LPCWSTR iniFilePath, LPCWSTR friendlyName, LPCWSTR description, bool defaultVal, std::vector<ConfigOptionBase*> configopts, std::wstring builddate = L"Unknown")
|
||||||
{
|
{
|
||||||
_iniVarName = iniVarName;
|
_iniVarName = iniVarName;
|
||||||
_iniSectionName = iniSectionName;
|
_iniSectionName = iniSectionName;
|
||||||
@@ -1098,6 +1101,7 @@ public:
|
|||||||
_description = description;
|
_description = description;
|
||||||
_defaultVal = defaultVal;
|
_defaultVal = defaultVal;
|
||||||
_configopts = configopts;
|
_configopts = configopts;
|
||||||
|
_builddate = builddate;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int AddToPanel(Panel^ panel, unsigned int left, unsigned int top, ToolTip^ tooltip)
|
virtual int AddToPanel(Panel^ panel, unsigned int left, unsigned int top, ToolTip^ tooltip)
|
||||||
|
|||||||
@@ -166,16 +166,17 @@ ConfigOptionBase* internalResolutionArray[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ConfigOptionBase* graphicsArray[] = {
|
ConfigOptionBase* graphicsArray[] = {
|
||||||
new DropdownOption(L"model", L"GPU", CONFIG_FILE, L"NVIDIA GPU:", L"Select your NVIDIA GPU's architecture to apply the necessary workarounds.\n\nNOTE: Automatic detection does not currently work on GNU/Linux.", -1, std::vector<LPCWSTR>({ L"Automatic", L"Kepler", L"Maxwell/Pascal", L"Turing", L"Ampere" }), -1),
|
new DropdownOption(L"model", L"GPU", CONFIG_FILE, L"Nvidia GPU:", L"Select your Nvidia GPU's architecture to apply the necessary workarounds.\n\nNOTE: Automatic detection does not currently work on GNU/Linux.", -1, std::vector<LPCWSTR>({ L"Automatic", L"Kepler", L"Maxwell/Pascal", L"Turing", L"Ampere", L"Ada Lovelace", L"Blackwell or newer"}), -1),
|
||||||
new BooleanOption(L"TAA", GRAPHICS_SECTION, CONFIG_FILE, L"TAA", L"Temporal Anti-Aliasing", true, false),
|
new BooleanOption(L"TAA", GRAPHICS_SECTION, CONFIG_FILE, L"TAA", L"Temporal Anti-Aliasing", true, false),
|
||||||
new BooleanOption(L"MLAA", GRAPHICS_SECTION, CONFIG_FILE, L"MLAA", L"Morphological Anti-Aliasing", true, false),
|
new BooleanOption(L"MLAA", GRAPHICS_SECTION, CONFIG_FILE, L"MLAA", L"Morphological Anti-Aliasing", true, false),
|
||||||
new DropdownOption(L"MAG", GRAPHICS_SECTION, CONFIG_FILE, L"Filter:", L"Image filter.\n\nBilinear: default filter\nNearest-neighbour: sharpest, but blocky\nSharpen: sharp filter\nCone: smooth filter", 0, std::vector<LPCWSTR>({ L"Bilinear", L"Nearest-neighbour", L"Sharpen", L"Cone" })),
|
new DropdownOption(L"MAG", GRAPHICS_SECTION, CONFIG_FILE, L"Filter:", L"Image filter.\n\nBilinear: default filter\nNearest-neighbour: sharpest, but blocky\nSharpen: sharp filter\nCone: smooth filter", 0, std::vector<LPCWSTR>({ L"Bilinear", L"Nearest-neighbour", L"Sharpen", L"Cone" })),
|
||||||
new BooleanOption(L"DOF", GRAPHICS_SECTION, CONFIG_FILE, L"Depth of Field", L"Blurs the background. Disable for better performance.", true, false),
|
new BooleanOption(L"DOF", GRAPHICS_SECTION, CONFIG_FILE, L"Depth of Field", L"Blurs the background. Disable for better performance.", true, false),
|
||||||
new BooleanOption(L"reflections", GRAPHICS_SECTION, CONFIG_FILE, L"Reflections", L"Enable or disable reflections.", true, false),
|
new BooleanOption(L"reflections", GRAPHICS_SECTION, CONFIG_FILE, L"Reflections", L"Enable or disable reflections.", true, false),
|
||||||
new ResolutionOption(L"reflect_res_width", L"reflect_res_height", GRAPHICS_SECTION, CONFIG_FILE, L"Reflection Res:", L"Sets the reflection buffer resolution (instead of 512x256).", resolution(512, 256), std::vector<resolution>({resolution(256,256), resolution(512,256), resolution(512,512), resolution(1024,1024), resolution(2048,2048), resolution(4096,4096)}), true, RESOPT_NONE),
|
new ResolutionOption(L"reflect_res_width", L"reflect_res_height", GRAPHICS_SECTION, CONFIG_FILE, L"Reflection Res:", L"Sets the reflection buffer resolution (instead of 512x256).", resolution(512, 256), std::vector<resolution>({resolution(256,256), resolution(512,256), resolution(512,512), resolution(640,480), resolution(854,480), resolution(960,540), resolution(1280,720), resolution(1366,768), resolution(1600,900), resolution(1920,1080), resolution(2560,1440), resolution(3200,1800), resolution(3840,2160), resolution(5120,2880), resolution(7680,4320)}), true, RESOPT_NONE),
|
||||||
new ResolutionOption(L"refract_res_width", L"refract_res_height", GRAPHICS_SECTION, CONFIG_FILE, L"Refraction Res:", L"Sets the refraction buffer resolution (instead of 512x256).", resolution(512, 256), std::vector<resolution>({resolution(256,256), resolution(512,256), resolution(512,512), resolution(1024,1024), resolution(2048,2048), resolution(4096,4096)}), true, RESOPT_NONE),
|
new ResolutionOption(L"refract_res_width", L"refract_res_height", GRAPHICS_SECTION, CONFIG_FILE, L"Refraction Res:", L"Sets the refraction buffer resolution (instead of 512x256).", resolution(512, 256), std::vector<resolution>({resolution(256,256), resolution(512,256), resolution(512,512), resolution(1024,1024), resolution(2048,2048), resolution(4096,4096)}), true, RESOPT_NONE),
|
||||||
new NumericOption(L"gamma", GRAPHICS_SECTION, CONFIG_FILE, L"Gamma:", L"Increase to darken shadows.\nSet to 125 for a console-like experience.\n\nDefault: 0 or 100", 100, 0, 200),
|
|
||||||
new BooleanOption(L"shadows", GRAPHICS_SECTION, CONFIG_FILE, L"Shadows", L"Enable or disable shadows.", true, false),
|
new BooleanOption(L"shadows", GRAPHICS_SECTION, CONFIG_FILE, L"Shadows", L"Enable or disable shadows.", true, false),
|
||||||
|
new ResolutionOption(L"shadow_res_width", L"shadow_res_height", GRAPHICS_SECTION, CONFIG_FILE, L"Shadow Res:", L"Sets the shadow buffer resolution (instead of 2048x2048).", resolution(2048, 2048), std::vector<resolution>({resolution(256,256), resolution(512,512), resolution(1024,1024), resolution(2048,2048), resolution(4096,4096), resolution(8192,8192)}), true, RESOPT_NONE),
|
||||||
|
new NumericOption(L"gamma", GRAPHICS_SECTION, CONFIG_FILE, L"Gamma:", L"Increase to darken shadows.\nSet to 125 for a console-like experience.\n\nDefault: 0 or 100", 100, 0, 200),
|
||||||
new BooleanOption(L"punchthrough", GRAPHICS_SECTION, CONFIG_FILE, L"Transparent Meshes", L"Show transparent meshes.", true, false),
|
new BooleanOption(L"punchthrough", GRAPHICS_SECTION, CONFIG_FILE, L"Transparent Meshes", L"Show transparent meshes.", true, false),
|
||||||
new BooleanOption(L"glare", GRAPHICS_SECTION, CONFIG_FILE, L"Glare", L"Enable or disable glare.", true, false),
|
new BooleanOption(L"glare", GRAPHICS_SECTION, CONFIG_FILE, L"Glare", L"Enable or disable glare.", true, false),
|
||||||
new BooleanOption(L"shader", GRAPHICS_SECTION, CONFIG_FILE, L"Shader", L"Enable or disable high-quality shaders.", true, false),
|
new BooleanOption(L"shader", GRAPHICS_SECTION, CONFIG_FILE, L"Shader", L"Enable or disable high-quality shaders.", true, false),
|
||||||
@@ -211,6 +212,7 @@ ConfigOptionBase* optionsArray[] = {
|
|||||||
new OptionMetaSpacer(8),
|
new OptionMetaSpacer(8),
|
||||||
|
|
||||||
new OptionMetaSectionLabel(L"Stages/Songs"),
|
new OptionMetaSectionLabel(L"Stages/Songs"),
|
||||||
|
new BooleanOption(L"Auto_Databank", PATCHES_SECTION, CONFIG_FILE, L"Auto Databank", L"Automatically generate databank for missing entries and allow multiple PvList files to be used.", true, false),
|
||||||
new NumericOption(L"Enhanced_Stage_Manager", PATCHES_SECTION, CONFIG_FILE, L"Number of Stages:", L"Set the number of stages (0 = default).", 0, 0, INT_MAX),
|
new NumericOption(L"Enhanced_Stage_Manager", PATCHES_SECTION, CONFIG_FILE, L"Number of Stages:", L"Set the number of stages (0 = default).", 0, 0, INT_MAX),
|
||||||
new BooleanOption(L"Enhanced_Stage_Manager_Encore", PATCHES_SECTION, CONFIG_FILE, L"Encore", L"Enable encore stages.", true, false),
|
new BooleanOption(L"Enhanced_Stage_Manager_Encore", PATCHES_SECTION, CONFIG_FILE, L"Encore", L"Enable encore stages.", true, false),
|
||||||
new BooleanOption(L"sing_missed", PATCHES_SECTION, CONFIG_FILE, L"Sing Missed", L"Sing missed notes.", false, false),
|
new BooleanOption(L"sing_missed", PATCHES_SECTION, CONFIG_FILE, L"Sing Missed", L"Sing missed notes.", false, false),
|
||||||
@@ -232,7 +234,8 @@ ConfigOptionBase* optionsArray[] = {
|
|||||||
new BooleanOption(L"hide_volume", PATCHES_SECTION, CONFIG_FILE, L"Hide Volume Buttons", L"Hide the volume and SE control buttons.", false, false),
|
new BooleanOption(L"hide_volume", PATCHES_SECTION, CONFIG_FILE, L"Hide Volume Buttons", L"Hide the volume and SE control buttons.", false, false),
|
||||||
new BooleanOption(L"no_pv_ui", PATCHES_SECTION, CONFIG_FILE, L"Disable PV UI", L"Remove the photo controls during PV playback.", false, false),
|
new BooleanOption(L"no_pv_ui", PATCHES_SECTION, CONFIG_FILE, L"Disable PV UI", L"Remove the photo controls during PV playback.", false, false),
|
||||||
new BooleanOption(L"hide_pv_watermark", PATCHES_SECTION, CONFIG_FILE, L"Hide PV Watermark", L"Hide the watermark that's usually shown in PV viewing mode.", false, false),
|
new BooleanOption(L"hide_pv_watermark", PATCHES_SECTION, CONFIG_FILE, L"Hide PV Watermark", L"Hide the watermark that's usually shown in PV viewing mode.", false, false),
|
||||||
new DropdownOption(L"status_icons", PATCHES_SECTION, CONFIG_FILE, L"Top-Right Corner Icons:", L"Set the state of card reader and network status icons.", 3, std::vector<LPCWSTR>({ L"Default", L"Hidden", L"Error", L"OK", L"Partial OK" })),
|
new BooleanOption(L"hide_status_icons", PATCHES_SECTION, CONFIG_FILE, L"Hide Network Icons", L"Hide the top-right corner status icons.", false, false), // technically reduntant, but somehow a lot of users miss the dropdown
|
||||||
|
new DropdownOption(L"status_icons", PATCHES_SECTION, CONFIG_FILE, L"Network Icons Status:", L"Set the state of card reader and network status icons.", 3, std::vector<LPCWSTR>({ L"Default", L"Hidden", L"Error", L"OK", L"Partial OK" })),
|
||||||
new BooleanOption(L"no_lyrics", PATCHES_SECTION, CONFIG_FILE, L"Disable Lyrics", L"Disable showing lyrics.", false, false),
|
new BooleanOption(L"no_lyrics", PATCHES_SECTION, CONFIG_FILE, L"Disable Lyrics", L"Disable showing lyrics.", false, false),
|
||||||
new BooleanOption(L"no_error", PATCHES_SECTION, CONFIG_FILE, L"Disable Error Banner", L"Disable the error banner on the attract screen.", true, false),
|
new BooleanOption(L"no_error", PATCHES_SECTION, CONFIG_FILE, L"Disable Error Banner", L"Disable the error banner on the attract screen.", true, false),
|
||||||
new BooleanOption(L"hide_freeplay", PATCHES_SECTION, CONFIG_FILE, L"Hide \"FREE PLAY\"/\"CREDIT(S)\"", L"Hide the \"FREE PLAY\"/\"CREDIT(S)\" text.", false, false),
|
new BooleanOption(L"hide_freeplay", PATCHES_SECTION, CONFIG_FILE, L"Hide \"FREE PLAY\"/\"CREDIT(S)\"", L"Hide the \"FREE PLAY\"/\"CREDIT(S)\" text.", false, false),
|
||||||
@@ -250,21 +253,21 @@ ConfigOptionBase* optionsArray[] = {
|
|||||||
new OptionMetaSeparator(),
|
new OptionMetaSeparator(),
|
||||||
new OptionMetaSpacer(8),
|
new OptionMetaSpacer(8),
|
||||||
|
|
||||||
new OptionMetaSectionLabel(L"Advanced Compatibility"),
|
//new OptionMetaSectionLabel(L"Advanced Compatibility"),
|
||||||
new BooleanOption(L"opengl_patch_a", LAUNCHER_SECTION, CONFIG_FILE, L"OpenGL Patch A", L"Ignores some OpenGL-related errors. Don't use both patches at the same time unless you're know what you're doing.", false, false),
|
//new BooleanOption(L"opengl_patch_a", LAUNCHER_SECTION, CONFIG_FILE, L"OpenGL Patch A", L"Ignores some OpenGL-related errors. Don't use both patches at the same time unless you're know what you're doing.", false, false),
|
||||||
new BooleanOption(L"opengl_patch_b", LAUNCHER_SECTION, CONFIG_FILE, L"OpenGL Patch B", L"Ignores some OpenGL-related errors. Don't use both patches at the same time unless you're know what you're doing.", false, false),
|
//new BooleanOption(L"opengl_patch_b", LAUNCHER_SECTION, CONFIG_FILE, L"OpenGL Patch B", L"Ignores some OpenGL-related errors. Don't use both patches at the same time unless you're know what you're doing.", false, false),
|
||||||
new OptionMetaSeparator(),
|
//new OptionMetaSeparator(),
|
||||||
new OptionMetaSpacer(8),
|
//new OptionMetaSpacer(8),
|
||||||
|
|
||||||
new OptionMetaSectionLabel(L"Loader"),
|
new OptionMetaSectionLabel(L"Loader"),
|
||||||
new BooleanOption(L"custom_patches", PATCHES_SECTION, CONFIG_FILE, L"Enable Custom Patches", L"Enables all custom patches.", true, false),
|
new BooleanOption(L"custom_patches", PATCHES_SECTION, CONFIG_FILE, L"Enable Custom Patches", L"Enables all custom patches.", true, false),
|
||||||
new BooleanOption(L"prevent_data_deletion", PATCHES_SECTION, CONFIG_FILE, L"Prevent Data Deletion", L"Prevents the game from deleting files.", false, false),
|
//new BooleanOption(L"prevent_data_deletion", PATCHES_SECTION, CONFIG_FILE, L"Prevent Data Deletion", L"Prevents the game from deleting files.", false, false),
|
||||||
new OptionMetaSeparator(),
|
new OptionMetaSeparator(),
|
||||||
new OptionMetaSpacer(8),
|
new OptionMetaSpacer(8),
|
||||||
|
|
||||||
new OptionMetaSectionLabel(L"Launcher"),
|
new OptionMetaSectionLabel(L"Launcher"),
|
||||||
new BooleanOption(L"dark_launcher", LAUNCHER_SECTION, CONFIG_FILE, L"Dark Launcher", L"Sets the dark colour scheme in the launcher.", false, false),
|
new BooleanOption(L"dark_launcher", LAUNCHER_SECTION, CONFIG_FILE, L"Dark Launcher", L"Sets the dark colour scheme in the launcher.", false, false),
|
||||||
new BooleanOption(L"acrylic_blur", LAUNCHER_SECTION, CONFIG_FILE, L"Acrylic Blur", L"Enables acrylic blur in the launcher on Windows 10 20H2 or later.", false, false),
|
//new BooleanOption(L"acrylic_blur", LAUNCHER_SECTION, CONFIG_FILE, L"Acrylic Blur", L"Enables acrylic blur in the launcher on Windows 10 20H2 or later.", false, false),
|
||||||
new BooleanOption(L"no_gpu_dialog", LAUNCHER_SECTION, CONFIG_FILE, L"Disable GPU Warning", L"Disables the warning dialog for unsupported GPUs.", false, false),
|
new BooleanOption(L"no_gpu_dialog", LAUNCHER_SECTION, CONFIG_FILE, L"Disable GPU Warning", L"Disables the warning dialog for unsupported GPUs.", false, false),
|
||||||
//new BooleanOption(L"ignore_exe_checksum", PATCHES_SECTION, CONFIG_FILE, L"Ignore exe checksum", L"Use at your own risk.", false, false),
|
//new BooleanOption(L"ignore_exe_checksum", PATCHES_SECTION, CONFIG_FILE, L"Ignore exe checksum", L"Use at your own risk.", false, false),
|
||||||
new StringOption(L"command_line", LAUNCHER_SECTION, CONFIG_FILE, L"Command Line:", L"Allows setting command line parameters for the game when using the launcher.\nDisabling the launcher will bypass this.", L"", false),
|
new StringOption(L"command_line", LAUNCHER_SECTION, CONFIG_FILE, L"Command Line:", L"Allows setting command line parameters for the game when using the launcher.\nDisabling the launcher will bypass this.", L"", false),
|
||||||
@@ -473,7 +476,7 @@ std::vector<PluginOption*> GetPluginOptions(std::vector<PluginInfo>* plugins)
|
|||||||
|
|
||||||
for (PluginInfo &pi : *plugins)
|
for (PluginInfo &pi : *plugins)
|
||||||
{
|
{
|
||||||
PluginOption* opt = new PluginOption(pi.filename.c_str(), L"plugins", CONFIG_FILE, pi.name.c_str(), pi.description.c_str(), true, pi.configopts);
|
PluginOption* opt = new PluginOption(pi.filename.c_str(), L"plugins", CONFIG_FILE, pi.name.c_str(), pi.description.c_str(), true, pi.configopts, pi.builddate);
|
||||||
outvec.push_back(opt);
|
outvec.push_back(opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -558,4 +561,4 @@ extern "C" __declspec(dllexport) LPCWSTR GetPluginName(void)
|
|||||||
extern "C" __declspec(dllexport) LPCWSTR GetPluginDescription(void)
|
extern "C" __declspec(dllexport) LPCWSTR GetPluginDescription(void)
|
||||||
{
|
{
|
||||||
return L"PD Launcher is the window you currently have open.\nYou can disable it if you want, but you'll need to edit config.ini if you ever want to re-enable it.";
|
return L"PD Launcher is the window you currently have open.\nYou can disable it if you want, but you'll need to edit config.ini if you ever want to re-enable it.";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,6 +190,7 @@ namespace Launcher {
|
|||||||
|
|
||||||
updateStyle();
|
updateStyle();
|
||||||
|
|
||||||
|
checkHasInvalidGLUT();
|
||||||
|
|
||||||
glutInit(&argc, argv);
|
glutInit(&argc, argv);
|
||||||
int window = glutCreateWindow("glut"); // a context must be created to use glGetString
|
int window = glutCreateWindow("glut"); // a context must be created to use glGetString
|
||||||
@@ -198,8 +199,12 @@ namespace Launcher {
|
|||||||
String^ vendor = gcnew String((char*)glGetString(GL_VENDOR));
|
String^ vendor = gcnew String((char*)glGetString(GL_VENDOR));
|
||||||
vendor = vendor->Replace(" Corporation", ""); // this is useless.. remove it to help ensure the GPU type line fits
|
vendor = vendor->Replace(" Corporation", ""); // this is useless.. remove it to help ensure the GPU type line fits
|
||||||
String^ renderer = gcnew String((char*)glGetString(GL_RENDERER));
|
String^ renderer = gcnew String((char*)glGetString(GL_RENDERER));
|
||||||
|
renderer = renderer->Replace("Apple ", ""); // "Apple Apple M1" -> "Apple M1"
|
||||||
String^ version = gcnew String((char*)glGetString(GL_VERSION));
|
String^ version = gcnew String((char*)glGetString(GL_VERSION));
|
||||||
version = version->Replace(" Profile Context", ""); // we don't need this, either
|
version = version->Replace(" Profile Context", "") // we don't need this, either
|
||||||
|
// misleading - the Metal layer always provides 2.1 as well as 4.1 Core (with the forwards compatiblity bit)
|
||||||
|
// even though the GLUT context is technically 2.1, inform the user that 4.1 fwcompat is supported (in case they want to use mods)
|
||||||
|
->Replace("2.1 Metal", "2.1/4.1 (forward-compatible) Metal");
|
||||||
|
|
||||||
String^ gpuModel = gcnew String(GPUModel::getGpuName().c_str());
|
String^ gpuModel = gcnew String(GPUModel::getGpuName().c_str());
|
||||||
|
|
||||||
@@ -232,123 +237,220 @@ namespace Launcher {
|
|||||||
|
|
||||||
int linkStart = this->labelGPU->Text->Length;
|
int linkStart = this->labelGPU->Text->Length;
|
||||||
bool showGpuDialog = false;
|
bool showGpuDialog = false;
|
||||||
if (vendor->Contains("AMD") || vendor->Contains("ATI")) // check OpenGL to get actual GPU being used for vendor check (to get accurate results for iGPU)
|
bool showGpuTypeWarning = false;
|
||||||
|
|
||||||
|
bool hasNovidia = false;
|
||||||
|
bool novidiaEnabled = false;
|
||||||
|
|
||||||
|
bool hasDivaGL = false;
|
||||||
|
bool divaGLEnabled = false;
|
||||||
|
|
||||||
|
for (PluginInfo i : AllPlugins)
|
||||||
{
|
{
|
||||||
bool hasNovidia = false;
|
if (i.name == L"Novidia")
|
||||||
for (PluginInfo i : AllPlugins)
|
|
||||||
{
|
{
|
||||||
if (i.name == L"Novidia")
|
hasNovidia = true;
|
||||||
hasNovidia = true;
|
novidiaEnabled = GetIniBool(L"plugins", i.filename.c_str(), 1, CONFIG_FILE);
|
||||||
|
}
|
||||||
|
else if (i.name == L"DivaGL")
|
||||||
|
{
|
||||||
|
hasDivaGL = true;
|
||||||
|
divaGLEnabled = GetIniBool(L"plugins", i.filename.c_str(), 1, CONFIG_FILE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasNovidia)
|
if (hasNovidia && hasDivaGL) break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (divaGLEnabled)
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Rendering provided by DivaGL.";
|
||||||
|
GPUIssueText = L"Please check DivaGL's requirements to ensure compatibility with your graphics driver.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::HotPink;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (vendor->Contains("AMD") || vendor->Contains("ATI")) // check OpenGL to get actual GPU being used for vendor check (to get accurate results for iGPU)
|
||||||
{
|
{
|
||||||
if (wineVersion == "" && (driver_version_major < 21 || (driver_version_major == 21 && driver_version_minor < 6)))
|
if (hasNovidia)
|
||||||
|
{
|
||||||
|
if (novidiaEnabled)
|
||||||
|
{
|
||||||
|
if (wineVersion == "" && (driver_version_major < 21 || (driver_version_major == 21 && driver_version_minor < 6)))
|
||||||
|
{
|
||||||
|
if (driver_version_major == 21 && driver_version_minor == 5)
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Driver may have issues.";
|
||||||
|
GPUIssueText = L"The graphics driver you're using should be able to play movies without issues, but may crash while loading a song after playing multiple stages in one session.\nIf possible, please install the latest driver from your GPU vendor's website.\nHowever, note that if your GPU is old, you may not be able to install a more recent driver.";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Driver has known issues.";
|
||||||
|
GPUIssueText = L"The graphics driver you're using has known issues. Movies may not play back correctly.\nPlease install the latest driver from your GPU vendor's website.";
|
||||||
|
showGpuDialog = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
||||||
|
}
|
||||||
|
else if (wineVersion == "" && (driver_version_major > 22 || (driver_version_major == 22 && driver_version_minor > 6)))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += "Issues: Unsupported GPU driver.";
|
||||||
|
GPUIssueText = "The graphics driver you're using is too new for Novidia.\nThe game will not run unless you install driver version 22.6.1 or earlier from AMD's website.\n\nAlternatively, you can try mods such as DivaGL.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Red;
|
||||||
|
showGpuDialog = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += "Issues: AMD GPU support is unofficial.";
|
||||||
|
GPUIssueText = "AMD GPUs are not supported without mods.\nThe PD Loader AMDPack seems to be installed, but please keep in mind that it may have issues.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += "Issues: Mods needed for AMD compatibility!";
|
||||||
|
GPUIssueText = "AMD GPUs are not supported without mods.\n" +
|
||||||
|
(hasDivaGL ? "DivaGL/" : "") + "Novidia is installed, but disabled; please enable it to use your AMD GPU.\n\nIf you have a laptop with an NVIDIA GPU and wish to use it instead of the detected GPU, you may need to set diva.exe to use it in Windows settings or NVIDIA Control Panel.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Red;
|
||||||
|
showGpuDialog = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (hasDivaGL)
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += "Issues: Mods needed for AMD compatibility!";
|
||||||
|
GPUIssueText = "AMD GPUs are not supported without mods.\nDivaGL is installed, but disabled; please enable it to use your AMD GPU.\n\nIf you have a laptop with an NVIDIA GPU and wish to use it instead of the detected GPU, you may need to set diva.exe to use it in Windows settings or NVIDIA Control Panel.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Red;
|
||||||
|
showGpuDialog = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += "Issues: Mods needed for AMD compatibility!";
|
||||||
|
GPUIssueText = "AMD GPUs are not supported without mods.\nEither DivaGL or Novidia is required. Please download either plugin and check its requirements to ensure compatibility with your graphics driver.\n\nIf you have a laptop with an NVIDIA GPU and wish to use it instead of the detected GPU, you may need to set diva.exe to use it in Windows settings or NVIDIA Control Panel.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Red;
|
||||||
|
showGpuDialog = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (vendor->Contains("NVIDIA"))
|
||||||
|
{
|
||||||
|
if (wineVersion == "" && (driver_version_major < 391 || (driver_version_major > 446 && driver_version_major < 460)))
|
||||||
{
|
{
|
||||||
this->labelGPU->Text += L"Driver has known issues.";
|
this->labelGPU->Text += L"Driver has known issues.";
|
||||||
GPUIssueText = L"The graphics driver you're using has known issues. Please install the latest driver from your GPU vendor's website.";
|
GPUIssueText = L"The graphics driver you're using has known issues. Please install the latest driver from your GPU vendor's website.";
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
||||||
showGpuDialog = true;
|
showGpuDialog = true;
|
||||||
}
|
}
|
||||||
else
|
else if (gpuModel->StartsWith("GB")) // unconfirmed??
|
||||||
{
|
{
|
||||||
this->labelGPU->Text += "Issues: AMD GPU support is unofficial.";
|
this->labelGPU->Text += L"Issues: Blackwell GPU detected! Possible noise.\n(Click for more information)";
|
||||||
GPUIssueText = "AMD GPUs are not supported without mods.\nThe PD Loader AMDPack seems to be installed, but please keep in mind that it may have issues.";
|
GPUIssueText = L"On Blackwell GPUs (RTX 50xx), some important character shaders have issues resulting in lines/noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
||||||
}
|
}
|
||||||
}
|
else if (gpuModel->StartsWith("AD"))
|
||||||
else
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += "Issues: Mods needed for AMD compatibility!";
|
|
||||||
GPUIssueText = "AMD GPUs are not supported without mods.\nThe PD Loader AMDPack can be used to make 3D rendering work. Please download it and follow the included instructions.\n\nIf you have a laptop with an NVIDIA GPU and wish to use it instead of the detected GPU, you may need to set diva.exe to use it in Windows settings or NVIDIA Control Panel.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Red;
|
|
||||||
showGpuDialog = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if (vendor->Contains("NVIDIA"))
|
|
||||||
{
|
|
||||||
if (wineVersion == "" && (driver_version_major < 391 || (driver_version_major > 446 && driver_version_major < 460)))
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Driver has known issues.";
|
|
||||||
GPUIssueText = L"The graphics driver you're using has known issues. Please install the latest driver from your GPU vendor's website.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
|
||||||
showGpuDialog = true;
|
|
||||||
}
|
|
||||||
else if (gpuModel->StartsWith("GA")) // unconfirmed??
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Issues: Ampere GPU detected! Possible noise.\n(Click for more information)";
|
|
||||||
GPUIssueText = L"On Ampere GPUs (RTX 30xx), some important character shaders have issues resulting in lines/noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
|
||||||
}
|
|
||||||
else if (gpuModel->StartsWith("TU") || gpuModel->StartsWith("GV")) // let's assume Volta is like Turing for now
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Issues: Ampere GPU detected! Possible noise.\n(Click for more information)";
|
|
||||||
GPUIssueText = L"On Turing GPUs (GTX 16xx/RTX 20xx), some important character shaders have issues resulting in lines/noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
|
||||||
}
|
|
||||||
else if (gpuModel->StartsWith("GM") || gpuModel->StartsWith("GP"))
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Issues: May have minor noise on some stages.\n(Click for more information)";
|
|
||||||
GPUIssueText = L"On Maxwell GPUs (~GTX 900) and newer, some minor stage shaders create noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Teal;
|
|
||||||
}
|
|
||||||
else if (gpuModel->StartsWith("GK"))
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Issues: None.";
|
|
||||||
GPUIssueText = L"Your GPU should have no issues running the game.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::LightBlue;
|
|
||||||
}
|
|
||||||
else if (gpuModel->StartsWith("GF"))
|
|
||||||
{
|
|
||||||
if (version[0] < '4')
|
|
||||||
{
|
{
|
||||||
this->labelGPU->Text += L"Issues: Driver too old.";
|
this->labelGPU->Text += L"Issues: Ada Lovelace GPU detected! Possible noise.\n(Click for more information)";
|
||||||
GPUIssueText = L"Your GPU should be able to run the game, but it looks like your OpenGL version is too old.\nA driver update should fix this.";
|
GPUIssueText = L"On Ada Lovelace GPUs (RTX 40xx), some important character shaders have issues resulting in lines/noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
||||||
|
}
|
||||||
|
else if (gpuModel->StartsWith("GA"))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: Ampere GPU detected! Possible noise.\n(Click for more information)";
|
||||||
|
GPUIssueText = L"On Ampere GPUs (RTX 30xx), some important character shaders have issues resulting in lines/noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
||||||
|
}
|
||||||
|
else if (gpuModel->StartsWith("TU"))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: Turing GPU detected! Possible noise.\n(Click for more information)";
|
||||||
|
GPUIssueText = L"On Turing GPUs (GTX 16xx/RTX 20xx), some important character shaders have issues resulting in lines/noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
||||||
|
}
|
||||||
|
else if (gpuModel->StartsWith("GV"))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: Volta GPU detected! Possible noise.\n(Click for more information)";
|
||||||
|
GPUIssueText = L"On Volta GPUs (TITAN V), some important character shaders have issues resulting in lines/noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Yellow;
|
||||||
|
}
|
||||||
|
else if (gpuModel->StartsWith("GM") || gpuModel->StartsWith("GP"))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: May have minor noise on some stages.\n(Click for more information)";
|
||||||
|
GPUIssueText = L"On Maxwell GPUs (~GTX 900) and newer, some minor stage shaders create noise.\nPlease make sure the ShaderPatch plugin is enabled.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Teal;
|
||||||
|
}
|
||||||
|
else if (gpuModel->StartsWith("GK"))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: None.";
|
||||||
|
GPUIssueText = L"Your GPU should have no issues running the game.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::LightBlue;
|
||||||
|
}
|
||||||
|
else if (gpuModel->StartsWith("GF"))
|
||||||
|
{
|
||||||
|
if (version[0] < '4')
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: Driver too old.";
|
||||||
|
GPUIssueText = L"Your GPU should be able to run the game, but it looks like your OpenGL version is too old.\nA driver update should fix this.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
||||||
|
showGpuDialog = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: No known issues.";
|
||||||
|
GPUIssueText = L"Your GPU should have no issues running the game, but it is older than the GPU the game was originally designed for (GTX 650 Ti).\nThere may be some issues with graphics.\nPlease report any issues so that they can be analysed and potentially fixed.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Teal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (gpuModel->StartsWith("G") || gpuModel->StartsWith("NV") || gpuModel->StartsWith("NB") || gpuModel->StartsWith("N10") || gpuModel->StartsWith("MCP"))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: GPU too old! 3D rendering might be broken.\n(Click for more information)";
|
||||||
|
GPUIssueText = L"Your GPU is very old and does not support rendering techniques used by the game.\nYou may be able to play, but graphics will likely have major issues.\nPlease upgrade to a GTX 600 series or later GPU.";
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
||||||
showGpuDialog = true;
|
showGpuDialog = true;
|
||||||
}
|
}
|
||||||
|
else if (version[0] >= '4' && gpuModel->Length > 0 && !gpuModel->StartsWith("Unk") && !gpuModel->StartsWith("Oth"))
|
||||||
|
{
|
||||||
|
this->labelGPU->Text += L"Issues: GPU may be too new.\n(Click for more information)";
|
||||||
|
GPUIssueText = L"It looks like your GPU may be too new. Only up to Ada Lovelace (RTX 40xx) is currently supported.\nYou will likely see lines/noise on important character shaders and some minor stage shaders.\nPlease report any issues so that ShaderPatch can be updated.\n\nTo try to get rid of any artifacts, try selecting a specific GPU architecture in Graphics -> Nvidia GPU (e.g. \"Ada or newer\"), or use DivaGL.";
|
||||||
|
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
||||||
|
showGpuDialog = true;
|
||||||
|
showGpuTypeWarning = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this->labelGPU->Text += L"Issues: No known issues.";
|
this->labelGPU->Text += L"Issues: Unable to detect GPU architecture.\n(Click for more information)";
|
||||||
GPUIssueText = L"Your GPU should have no issues running the game, but it is older than the GPU the game was originally designed for (GTX 650 Ti).\nThere may be some issues with graphics.\nPlease report any issues so that they can be analysed and potentially fixed.";
|
GPUIssueText = L"It looks like you have an NVIDIA GPU, but something went wrong while trying to determine your GPU's architecture (type).\nThis may be a caused by a bug, but it probably indicates potential issues.\nPlease make sure you have a GTX 600 series or later GPU. (GTX 400 series or later should also work)\n\nIf the game runs but has artifacts, try selecting a specific GPU architecture in Graphics -> Nvidia GPU (e.g. \"Ada or newer\"), or use DivaGL.";
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Teal;
|
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
||||||
|
showGpuDialog = true;
|
||||||
|
showGpuTypeWarning = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (gpuModel->StartsWith("G") || gpuModel->StartsWith("NV") || gpuModel->StartsWith("NB") || gpuModel->StartsWith("N10") || gpuModel->StartsWith("MCP"))
|
else //if (gpuModel->Length == 0 || gpuModel->StartsWith("Unk") || gpuModel->StartsWith("Oth"))
|
||||||
{
|
{
|
||||||
this->labelGPU->Text += L"Issues: GPU too old! 3D rendering might be broken.\n(Click for more information)";
|
this->labelGPU->Text += L"Issues: UNSUPPORTED GPU!";
|
||||||
GPUIssueText = L"Your GPU is very old and does not support rendering techniques used by the game.\nYou may be able to play, but graphics will likely have major issues.\nPlease upgrade to a GTX 600 series or later GPU.";
|
GPUIssueText = L"Your graphics card is not supported. Only NVIDIA GPUs are recommended (though others can be used with mods).\nPlease use a GTX 600 series or later NVIDIA GPU.\n\nIf you have a laptop with an NVIDIA GPU and wish to use it instead of the detected GPU, you may need to set diva.exe to use it in Windows settings or NVIDIA Control Panel.\n\nOwners of other GPUs may be able to run the game using plugins or mods, such as DivaGL, Novidia, or DivaImGui.";
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
this->labelGPU->LinkColor = System::Drawing::Color::Red;
|
||||||
showGpuDialog = true;
|
showGpuDialog = true;
|
||||||
}
|
}
|
||||||
else if (version[0] >= '4' && gpuModel->Length > 0 && !gpuModel->StartsWith("Unk") && !gpuModel->StartsWith("Oth"))
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Issues: GPU may be too new.\n(Click for more information)";
|
|
||||||
GPUIssueText = L"It looks like your GPU may be too new. Only up to Ampere (RTX 30xx) is currently supported.\nGood news: the game should be capable of running, but shader patches (probably needed) may not support it yet.\nYou will likely see lines/noise on important character shaders and some minor stage shaders.\nPlease report any issues so that ShaderPatch can be updated.\nYou can also try forcing a specific GPU workaround type.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Issues: Unable to detect GPU architecture.\n(Click for more information)";
|
|
||||||
GPUIssueText = L"It looks like you have an NVIDIA GPU, but something went wrong while trying to determine your GPU's architecture (type).\nThis may be a caused by a bug, but it probably indicates potential issues.\nPlease make sure you have a GTX 600 series or later GPU. (GTX 400 series or later should also work)";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Orange;
|
|
||||||
showGpuDialog = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else //if (gpuModel->Length == 0 || gpuModel->StartsWith("Unk") || gpuModel->StartsWith("Oth"))
|
|
||||||
{
|
|
||||||
this->labelGPU->Text += L"Issues: UNSUPPORTED GPU!";
|
|
||||||
GPUIssueText = L"Your graphics card is not supported. Only NVIDIA GPUs are recommended (though AMD ones can be used with mods).\nPlease use a GTX 600 series or later NVIDIA GPU.\n\nIf you have a laptop with an NVIDIA GPU and wish to use it instead of the detected GPU, you may need to set diva.exe to use it in Windows settings or NVIDIA Control Panel.\n\nOwners of other GPUs may be able to run the game using plugins or mods, but 3D graphics will probably not work.";
|
|
||||||
this->labelGPU->LinkColor = System::Drawing::Color::Red;
|
|
||||||
showGpuDialog = true;
|
|
||||||
}
|
}
|
||||||
int linkEnd = this->labelGPU->Text->Length - linkStart;
|
int linkEnd = this->labelGPU->Text->Length - linkStart;
|
||||||
|
|
||||||
this->labelGPU->LinkClicked += gcnew System::Windows::Forms::LinkLabelLinkClickedEventHandler(this, &ui::LinkLabelLinkClickedGPUIssueHandler);
|
this->labelGPU->LinkClicked += gcnew System::Windows::Forms::LinkLabelLinkClickedEventHandler(this, &ui::LinkLabelLinkClickedGPUIssueHandler);
|
||||||
this->labelGPU->LinkArea = System::Windows::Forms::LinkArea(linkStart, linkEnd);
|
this->labelGPU->LinkArea = System::Windows::Forms::LinkArea(linkStart, linkEnd);
|
||||||
|
|
||||||
if (showGpuDialog && !nNoGPUDialog)
|
if (!nNoGPUDialog)
|
||||||
SkinnedMessageBox::Show(this, GPUIssueText + "\n\nYou can disable this message from the options tab.", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
{
|
||||||
|
if (showGpuDialog)
|
||||||
|
SkinnedMessageBox::Show(this, GPUIssueText + "\n\nYou can disable this message from the Options tab.", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
||||||
|
|
||||||
|
if (showGpuTypeWarning)
|
||||||
|
{
|
||||||
|
Label^ gpuTypeLabel = ((Label^)Control::FromHandle(((DropdownOption*)(graphicsArray[0]))->labelHandle));
|
||||||
|
ComboBox^ gpuTypeCtrl = ((ComboBox^)Control::FromHandle(((DropdownOption*)(graphicsArray[0]))->mainControlHandle));
|
||||||
|
gpuTypeLabel->Text = "/!\\ " + gpuTypeLabel->Text;
|
||||||
|
gpuTypeLabel->BackColor = System::Drawing::Color::Gold;
|
||||||
|
gpuTypeLabel->ForeColor = System::Drawing::Color::Crimson;
|
||||||
|
gpuTypeCtrl->Items[0] = "SELECT ONE";
|
||||||
|
gpuTypeCtrl->BackColor = System::Drawing::Color::Gold;
|
||||||
|
gpuTypeCtrl->ForeColor = System::Drawing::Color::Crimson;
|
||||||
|
gpuTypeCtrl->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
@@ -386,9 +488,6 @@ namespace Launcher {
|
|||||||
void updateStyle()
|
void updateStyle()
|
||||||
{
|
{
|
||||||
int nDarkLauncher = GetPrivateProfileIntW(LAUNCHER_SECTION, L"dark_launcher", FALSE, CONFIG_FILE);
|
int nDarkLauncher = GetPrivateProfileIntW(LAUNCHER_SECTION, L"dark_launcher", FALSE, CONFIG_FILE);
|
||||||
int nAcrylicLauncher = GetPrivateProfileIntW(LAUNCHER_SECTION, L"acrylic_blur", FALSE, CONFIG_FILE);
|
|
||||||
|
|
||||||
bool useAcrylic = nAcrylicLauncher && setBlur(hWnd, AccentState::ACCENT_ENABLE_ACRYLICBLURBEHIND);
|
|
||||||
|
|
||||||
Color colourBg, colourBg2, colourFg;
|
Color colourBg, colourBg2, colourFg;
|
||||||
|
|
||||||
@@ -407,22 +506,10 @@ namespace Launcher {
|
|||||||
colourBg2 = Color::FromArgb(242, 242, 242);
|
colourBg2 = Color::FromArgb(242, 242, 242);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (useAcrylic)
|
|
||||||
{
|
|
||||||
this->button_Discord->BackColor = colourBg2;
|
|
||||||
this->button_github->BackColor = colourBg2;
|
|
||||||
this->button_Wiki->BackColor = colourBg2;
|
|
||||||
|
|
||||||
colourBg2 = Color::FromArgb(255, 0, 255);
|
this->button_Discord->BackColor = Color::Transparent;
|
||||||
}
|
this->button_github->BackColor = Color::Transparent;
|
||||||
else
|
this->button_Wiki->BackColor = Color::Transparent;
|
||||||
{
|
|
||||||
setBlur(hWnd, AccentState::ACCENT_DISABLED);
|
|
||||||
|
|
||||||
this->button_Discord->BackColor = Color::Transparent;
|
|
||||||
this->button_github->BackColor = Color::Transparent;
|
|
||||||
this->button_Wiki->BackColor = Color::Transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
this->tabPage_Resolution->BackColor = colourBg;
|
this->tabPage_Resolution->BackColor = colourBg;
|
||||||
this->tabPage_Resolution->ForeColor = colourFg;
|
this->tabPage_Resolution->ForeColor = colourFg;
|
||||||
@@ -662,7 +749,7 @@ private: System::Windows::Forms::Button^ button_Wiki;
|
|||||||
this->trackBar_LagCompensation->Size = System::Drawing::Size(500, 90);
|
this->trackBar_LagCompensation->Size = System::Drawing::Size(500, 90);
|
||||||
this->trackBar_LagCompensation->TabIndex = 0;
|
this->trackBar_LagCompensation->TabIndex = 0;
|
||||||
this->trackBar_LagCompensation->TickStyle = System::Windows::Forms::TickStyle::None;
|
this->trackBar_LagCompensation->TickStyle = System::Windows::Forms::TickStyle::None;
|
||||||
this->trackBar_LagCompensation->ValueChanged += gcnew System::EventHandler(this, &ui::trackBar_LagCompensation_ValueChanged);
|
this->trackBar_LagCompensation->Scroll += gcnew System::EventHandler(this, &ui::trackBar_LagCompensation_Scroll);
|
||||||
//
|
//
|
||||||
// groupBox_Details
|
// groupBox_Details
|
||||||
//
|
//
|
||||||
@@ -938,7 +1025,7 @@ private: System::Windows::Forms::Button^ button_Wiki;
|
|||||||
this->MaximizeBox = false;
|
this->MaximizeBox = false;
|
||||||
this->Name = L"ui";
|
this->Name = L"ui";
|
||||||
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
|
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
|
||||||
this->Text = L"PD Launcher (2.6.5a)";
|
this->Text = L"PD Launcher -- TEST VERSION --";
|
||||||
this->TransparencyKey = System::Drawing::Color::Magenta;
|
this->TransparencyKey = System::Drawing::Color::Magenta;
|
||||||
this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &ui::Ui_FormClosing);
|
this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &ui::Ui_FormClosing);
|
||||||
this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &ui::Ui_FormClosed);
|
this->FormClosed += gcnew System::Windows::Forms::FormClosedEventHandler(this, &ui::Ui_FormClosed);
|
||||||
@@ -1041,10 +1128,104 @@ private: System::Void SaveSettings() {
|
|||||||
private: System::Void Button_Help_Click(System::Object^ sender, System::EventArgs^ e) {
|
private: System::Void Button_Help_Click(System::Object^ sender, System::EventArgs^ e) {
|
||||||
System::Diagnostics::Process::Start("https://github.com/PDModdingCommunity/PD-Loader/wiki");
|
System::Diagnostics::Process::Start("https://github.com/PDModdingCommunity/PD-Loader/wiki");
|
||||||
}
|
}
|
||||||
|
private: System::Boolean hasInvalidGLUT = false;
|
||||||
|
private: System::Void checkHasInvalidGLUT()
|
||||||
|
{
|
||||||
|
HMODULE glutHm = GetModuleHandleW(L"glut32.dll");
|
||||||
|
hasInvalidGLUT = glutHm != NULL && GetProcAddress(glutHm, "__glutGetFCB") == NULL;
|
||||||
|
|
||||||
|
if (hasInvalidGLUT)
|
||||||
|
{
|
||||||
|
SkinnedMessageBox::Show(this, "Support for custom versions of \"glut32.dll\" is deprecated and will be removed in future versions of PD Loader.\nPlease restore a valid copy of the original file, then validate your files and make sure \"glut32.dll\" passes.\n\nPlease DO NOT ASK for a copy of the file in our support channels!\nWe cannot provide it to you.", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private: System::Boolean hasInvalidSettings()
|
||||||
|
{
|
||||||
|
bool divaGLEnabled = false;
|
||||||
|
bool novidiaEnabled = false;
|
||||||
|
bool shaderPatchEnabled = false;
|
||||||
|
//bool divaImGuiEnabled = false;
|
||||||
|
bool divaImGuiOldEnabled = false;
|
||||||
|
|
||||||
|
for (PluginOption* option : AllPluginOpts)
|
||||||
|
{
|
||||||
|
if (lstrcmpW(option->_friendlyName, L"DivaGL") == 0)
|
||||||
|
{
|
||||||
|
divaGLEnabled = ((CheckBox^)CheckBox::FromHandle(option->mainControlHandle))->Checked;
|
||||||
|
if (divaGLEnabled)
|
||||||
|
{
|
||||||
|
if (hasInvalidGLUT) goto divagl_freeglut;
|
||||||
|
else if (novidiaEnabled || shaderPatchEnabled) goto divagl_novidia;
|
||||||
|
else if (divaImGuiOldEnabled) goto divagl_divaimguiold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (lstrcmpW(option->_friendlyName, L"Novidia") == 0)
|
||||||
|
{
|
||||||
|
novidiaEnabled = ((CheckBox^)CheckBox::FromHandle(option->mainControlHandle))->Checked;
|
||||||
|
if (novidiaEnabled && divaGLEnabled) goto divagl_novidia;
|
||||||
|
}
|
||||||
|
else if (lstrcmpW(option->_friendlyName, L"ShaderPatch") == 0)
|
||||||
|
{
|
||||||
|
shaderPatchEnabled = ((CheckBox^)CheckBox::FromHandle(option->mainControlHandle))->Checked;
|
||||||
|
if (shaderPatchEnabled && divaGLEnabled) goto divagl_novidia;
|
||||||
|
}
|
||||||
|
else if (lstrcmpW(option->_friendlyName, L"DivaImGui") == 0)
|
||||||
|
{
|
||||||
|
//divaImGuiEnabled = ((CheckBox^)CheckBox::FromHandle(option->mainControlHandle))->Checked;
|
||||||
|
|
||||||
|
if (option->_builddate == L"Unknown")
|
||||||
|
{
|
||||||
|
divaImGuiOldEnabled = ((CheckBox^)CheckBox::FromHandle(option->mainControlHandle))->Checked;
|
||||||
|
if (divaImGuiOldEnabled && divaGLEnabled) goto divagl_divaimguiold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//if (divaImGuiEnabled)
|
||||||
|
//{
|
||||||
|
// for (ConfigOptionBase* option : graphicsArray)
|
||||||
|
// {
|
||||||
|
// if (option->_iniSectionName == GRAPHICS_SECTION && option->_iniVarName == L"2D")
|
||||||
|
// {
|
||||||
|
// if (((CheckBox^)CheckBox::FromHandle(option->mainControlHandle))->Checked)
|
||||||
|
// {
|
||||||
|
// SkinnedMessageBox::Show(this, "Graphics: \"Disable 3D rendering\" must be disabled if DivaImGui is enabled.", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Error);
|
||||||
|
// return true;
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
|
divagl_freeglut:
|
||||||
|
SkinnedMessageBox::Show(this, "Plugins: DivaGL does not support custom versions of \"glut32.dll\".\nPlease restore a valid copy of the original file, then validate your files and make sure \"glut32.dll\" passes.\n\nPlease DO NOT ASK for a copy of the file in our support channels!\nWe cannot provide it to you.", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Error);
|
||||||
|
return true;
|
||||||
|
|
||||||
|
divagl_novidia:
|
||||||
|
if (SkinnedMessageBox::Show(this, "Plugins: Novidia and ShaderPatch should be disabled if DivaGL is enabled.\n\nLaunch anyway?", "PD Launcher", MessageBoxButtons::YesNo, MessageBoxIcon::Error) != System::Windows::Forms::DialogResult::Yes)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
divagl_divaimguiold:
|
||||||
|
SkinnedMessageBox::Show(this, "Plugins: Your version of DivaImGui is too old for DivaGL; please either update or disable it.", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Error);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
private: System::Boolean warnCheck()
|
||||||
|
{
|
||||||
|
if (((ComboBox^)Control::FromHandle(((DropdownOption*)(graphicsArray[0]))->mainControlHandle))->Text == "SELECT ONE" &&
|
||||||
|
SkinnedMessageBox::Show(this, L"GPU detection has failed and no Nvidia GPU architecture has been selected.\nAs such, characters and stages may exhibit artifacts, such as noisy shadows and stages.\nIf unsure, try all of the options starting from Kepler.\n\nLaunch anyway?", "PD Launcher", MessageBoxButtons::YesNo, MessageBoxIcon::Error) != System::Windows::Forms::DialogResult::OK)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
private: System::Void Button_Launch_Click(System::Object^ sender, System::EventArgs^ e) {
|
private: System::Void Button_Launch_Click(System::Object^ sender, System::EventArgs^ e) {
|
||||||
|
|
||||||
//SkinnedMessageBox::Show(this, "It looks like the executable has been tampered with, or the version of the game is not 7.10.\n\nPlease use the \"patches\" folder instead of modifying the executable directly (or disable verification).", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Error);
|
//SkinnedMessageBox::Show(this, "It looks like the executable has been tampered with, or the version of the game is not 7.10.\n\nPlease use the \"patches\" folder instead of modifying the executable directly (or disable verification).", "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Error);
|
||||||
|
|
||||||
|
if (!warnCheck()) return;
|
||||||
|
if (hasInvalidSettings()) return;
|
||||||
|
|
||||||
SaveSettings();
|
SaveSettings();
|
||||||
|
|
||||||
if (GetPrivateProfileIntW(LAUNCHER_SECTION, L"use_divahook_bat", FALSE, CONFIG_FILE))
|
if (GetPrivateProfileIntW(LAUNCHER_SECTION, L"use_divahook_bat", FALSE, CONFIG_FILE))
|
||||||
@@ -1202,9 +1383,9 @@ private: bool AnyConfigChanged() {
|
|||||||
|
|
||||||
private: String^ GPUIssueText;
|
private: String^ GPUIssueText;
|
||||||
private: System::Void LinkLabelLinkClickedGPUIssueHandler(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) {
|
private: System::Void LinkLabelLinkClickedGPUIssueHandler(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) {
|
||||||
SkinnedMessageBox::Show(this, GPUIssueText, "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Warning);
|
SkinnedMessageBox::Show(this, GPUIssueText, "PD Launcher", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
||||||
}
|
}
|
||||||
private: System::Void trackBar_LagCompensation_ValueChanged(System::Object^ sender, System::EventArgs^ e) {
|
private: System::Void trackBar_LagCompensation_Scroll(System::Object^ sender, System::EventArgs^ e) {
|
||||||
*LagCompensationConfigChanged = true;
|
*LagCompensationConfigChanged = true;
|
||||||
|
|
||||||
updateLagCompMsec();
|
updateLagCompMsec();
|
||||||
@@ -1214,7 +1395,5 @@ private: System::Void tabPage_Resolution_Click(System::Object^ sender, System::E
|
|||||||
private: System::Void button_Wiki_Click(System::Object^ sender, System::EventArgs^ e) {
|
private: System::Void button_Wiki_Click(System::Object^ sender, System::EventArgs^ e) {
|
||||||
System::Diagnostics::Process::Start("https://github.com/PDModdingCommunity/PD-Loader/wiki");
|
System::Diagnostics::Process::Start("https://github.com/PDModdingCommunity/PD-Loader/wiki");
|
||||||
}
|
}
|
||||||
private: System::Void trackBar_LagCompensation_Scroll(System::Object^ sender, System::EventArgs^ e) {
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "glStuff.h"
|
//#define WIN32_LEAN_AND_MEAN
|
||||||
|
//#include <windows.h>
|
||||||
|
//#include <psapi.h>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "glStuff.h"
|
||||||
|
|
||||||
// use this as a hook to perform initialisation
|
// use this as a hook to perform initialisation
|
||||||
void(__cdecl* glutSetCursor)(int cursor) = *(void(__cdecl**)(int))0x140966068;
|
void(__cdecl* glutSetCursor)(int cursor) = *(void(__cdecl**)(int))0x140966068;
|
||||||
void(__cdecl* uploadModelTransformBuf)(DWORD* a1, int a2) = (void(__cdecl*)(DWORD * a1, int a2))0x140444fa0;
|
void(__cdecl* uploadModelTransformBuf)(DWORD* a1, int a2) = (void(__cdecl*)(DWORD * a1, int a2))0x140444fa0;
|
||||||
@@ -112,4 +117,38 @@ void InjectCode(void* address, const std::vector<uint8_t> data)
|
|||||||
VirtualProtect(address, byteCount, PAGE_EXECUTE_READWRITE, &oldProtect);
|
VirtualProtect(address, byteCount, PAGE_EXECUTE_READWRITE, &oldProtect);
|
||||||
memcpy(address, data.data(), byteCount);
|
memcpy(address, data.data(), byteCount);
|
||||||
VirtualProtect(address, byteCount, oldProtect, nullptr);
|
VirtualProtect(address, byteCount, oldProtect, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//bool hasConflicts()
|
||||||
|
//{
|
||||||
|
// printf("[Novidia] Checking for conflicts...\n");
|
||||||
|
//
|
||||||
|
// HMODULE* hModules = new HMODULE[USHRT_MAX];
|
||||||
|
// HANDLE hProcess;
|
||||||
|
// DWORD cbNeeded;
|
||||||
|
//
|
||||||
|
// hProcess = GetCurrentProcess();
|
||||||
|
//
|
||||||
|
// if (EnumProcessModules(hProcess, hModules, sizeof(hModules), &cbNeeded)) {
|
||||||
|
// for (unsigned long long i = 0; i < (cbNeeded / sizeof(HMODULE)); i++) {
|
||||||
|
// auto pNameFunc = (LPCWSTR(*)())GetProcAddress(hModules[i], "GetPluginName");
|
||||||
|
// if (pNameFunc) {
|
||||||
|
// LPCWSTR name = pNameFunc();
|
||||||
|
// if (name && lstrcmpW(name, L"DivaGL") == 0)
|
||||||
|
// {
|
||||||
|
// // detected DivaGL
|
||||||
|
// printf("[Novidia] Detected DivaGL! Quitting!\n");
|
||||||
|
//#ifdef _DEBUG
|
||||||
|
// MessageBoxExW(NULL, L"Detected DivaGL! Quitting!\n", L"Novidia", MB_OK, 0);
|
||||||
|
//#endif
|
||||||
|
// delete[] hModules;
|
||||||
|
// return true;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// printf("[Novidia] No conflicts found.\n");
|
||||||
|
// delete[] hModules;
|
||||||
|
// return false;
|
||||||
|
//}
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class PatchApplier600 : public PatchApplier {
|
|||||||
|
|
||||||
if (nPDLoaderText && !nHideFreeplay)
|
if (nPDLoaderText && !nHideFreeplay)
|
||||||
{
|
{
|
||||||
InjectCode((void*)0x00000001409BC188, { 0x50, 0x44, 0x20, 0x4C, 0x6F, 0x61, 0x64, 0x65, 0x72, 0x20, 0x00 });
|
InjectCode((void*)0x00000001409BC188, { 'U', 'N', 'S', 'U', 'P', 'P', 'O', 'R', 'T', 'E', 'D', '\0' });
|
||||||
printf("[Patches] Show PD Loader text\n");
|
printf("[Patches] Show PD Loader text\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -161,12 +161,18 @@ class PatchApplier600 : public PatchApplier {
|
|||||||
printf("[Patches] Cursor enabled\n");*/
|
printf("[Patches] Cursor enabled\n");*/
|
||||||
}
|
}
|
||||||
// Override status icon states to be invalid (hides them)
|
// Override status icon states to be invalid (hides them)
|
||||||
if (nStatusIcons > 0)
|
if (nHideStatusIcons || nStatusIcons > 0)
|
||||||
{
|
{
|
||||||
std::vector<uint8_t> cardIcon = { 0xFD, 0x0A };
|
std::vector<uint8_t> cardIcon = { 0xFD, 0x0A };
|
||||||
std::vector<uint8_t> networkIcon = { 0x9E, 0x1E };
|
std::vector<uint8_t> networkIcon = { 0x9E, 0x1E };
|
||||||
|
|
||||||
if (nStatusIcons == 2) // 2 for error icons
|
if (nHideStatusIcons || nStatusIcons == 1 || nStatusIcons >= 5) // 1 or invalid for hidden
|
||||||
|
{
|
||||||
|
cardIcon = { 0xFD, 0x0A };
|
||||||
|
networkIcon = { 0x9E, 0x1E };
|
||||||
|
printf("[Patches] Status icons hidden\n");
|
||||||
|
}
|
||||||
|
else if (nStatusIcons == 2) // 2 for error icons
|
||||||
{
|
{
|
||||||
cardIcon = { 0xFA, 0x0A };
|
cardIcon = { 0xFA, 0x0A };
|
||||||
networkIcon = { 0x9F, 0x1E };
|
networkIcon = { 0x9F, 0x1E };
|
||||||
@@ -184,12 +190,6 @@ class PatchApplier600 : public PatchApplier {
|
|||||||
networkIcon = { 0xA1, 0x1E };
|
networkIcon = { 0xA1, 0x1E };
|
||||||
printf("[Patches] Status icons set to partial OK state\n");
|
printf("[Patches] Status icons set to partial OK state\n");
|
||||||
}
|
}
|
||||||
else // 1 or invalid for hidden
|
|
||||||
{
|
|
||||||
cardIcon = { 0xFD, 0x0A };
|
|
||||||
networkIcon = { 0x9E, 0x1E };
|
|
||||||
printf("[Patches] Status icons hidden\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
// card icon
|
// card icon
|
||||||
InjectCode((void*)0x00000001403A0C9E, cardIcon); // error state
|
InjectCode((void*)0x00000001403A0C9E, cardIcon); // error state
|
||||||
@@ -308,16 +308,16 @@ class PatchApplier600 : public PatchApplier {
|
|||||||
printf("[Patches] Enhanced Stage Manager enabled\n");
|
printf("[Patches] Enhanced Stage Manager enabled\n");
|
||||||
}
|
}
|
||||||
// OpenGL Patches
|
// OpenGL Patches
|
||||||
if (nOGLPatchA)
|
//if (nOGLPatchA)
|
||||||
{
|
//{
|
||||||
// (call cs:glGetError) -> (xor eax, eax); (nop); (nop); (nop); (nop);
|
// // (call cs:glGetError) -> (xor eax, eax); (nop); (nop); (nop); (nop);
|
||||||
InjectCode((void*)0x000000014067842D, { 0x31, 0xC0, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)0x000000014067842D, { 0x31, 0xC0, 0x90, 0x90, 0x90, 0x90 });
|
||||||
}
|
//}
|
||||||
if (nOGLPatchB)
|
//if (nOGLPatchB)
|
||||||
{
|
//{
|
||||||
// (js loc_14069BC32) -> (nop)...
|
// // (js loc_14069BC32) -> (nop)...
|
||||||
InjectCode((void*)0x0000000140676D04, { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)0x0000000140676D04, { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
}
|
//}
|
||||||
// Unlock PSEUDO modules (which will all default to Miku, unless we also patch them to match the first performer)
|
// Unlock PSEUDO modules (which will all default to Miku, unless we also patch them to match the first performer)
|
||||||
if (nUnlockPseudo)
|
if (nUnlockPseudo)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ class PatchApplier710 : public PatchApplier {
|
|||||||
if (nPDLoaderText && !nHideFreeplay)
|
if (nPDLoaderText && !nHideFreeplay)
|
||||||
{
|
{
|
||||||
InjectCode((void*)0x00000001409F61F0, { 0x50, 0x44, 0x20, 0x4C, 0x6F, 0x61, 0x64, 0x65, 0x72,
|
InjectCode((void*)0x00000001409F61F0, { 0x50, 0x44, 0x20, 0x4C, 0x6F, 0x61, 0x64, 0x65, 0x72,
|
||||||
0x20, 0x32, 0x2E, 0x36, 0x2E, 0x35, 0x61,
|
0x20, 't', 'e', 's', 't',
|
||||||
0x00});
|
0x00});
|
||||||
printf("[Patches] Show PD Loader text\n");
|
printf("[Patches] Show PD Loader text\n");
|
||||||
}
|
}
|
||||||
@@ -180,12 +180,18 @@ class PatchApplier710 : public PatchApplier {
|
|||||||
printf("[Patches] Cursor enabled\n");
|
printf("[Patches] Cursor enabled\n");
|
||||||
}
|
}
|
||||||
// Override status icon states to be invalid (hides them)
|
// Override status icon states to be invalid (hides them)
|
||||||
if (nStatusIcons > 0)
|
if (nHideStatusIcons || nStatusIcons > 0)
|
||||||
{
|
{
|
||||||
std::vector<uint8_t> cardIcon = { 0xFD, 0x0A };
|
std::vector<uint8_t> cardIcon = { 0xFD, 0x0A };
|
||||||
std::vector<uint8_t> networkIcon = { 0x9E, 0x1E };
|
std::vector<uint8_t> networkIcon = { 0x9E, 0x1E };
|
||||||
|
|
||||||
if (nStatusIcons == 2) // 2 for error icons
|
if (nHideStatusIcons || nStatusIcons == 1 || nStatusIcons >= 5) // 1 or invalid for hidden
|
||||||
|
{
|
||||||
|
cardIcon = { 0xFD, 0x0A };
|
||||||
|
networkIcon = { 0x9E, 0x1E };
|
||||||
|
printf("[Patches] Status icons hidden\n");
|
||||||
|
}
|
||||||
|
else if (nStatusIcons == 2) // 2 for error icons
|
||||||
{
|
{
|
||||||
cardIcon = { 0xFA, 0x0A };
|
cardIcon = { 0xFA, 0x0A };
|
||||||
networkIcon = { 0x9F, 0x1E };
|
networkIcon = { 0x9F, 0x1E };
|
||||||
@@ -203,12 +209,6 @@ class PatchApplier710 : public PatchApplier {
|
|||||||
networkIcon = { 0xA1, 0x1E };
|
networkIcon = { 0xA1, 0x1E };
|
||||||
printf("[Patches] Status icons set to partial OK state\n");
|
printf("[Patches] Status icons set to partial OK state\n");
|
||||||
}
|
}
|
||||||
else // 1 or invalid for hidden
|
|
||||||
{
|
|
||||||
cardIcon = { 0xFD, 0x0A };
|
|
||||||
networkIcon = { 0x9E, 0x1E };
|
|
||||||
printf("[Patches] Status icons hidden\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
// card icon
|
// card icon
|
||||||
InjectCode((void*)0x00000001403B9D6E, cardIcon); // error state
|
InjectCode((void*)0x00000001403B9D6E, cardIcon); // error state
|
||||||
@@ -325,18 +325,20 @@ class PatchApplier710 : public PatchApplier {
|
|||||||
ESM[2] = nEStageManagerEncore;
|
ESM[2] = nEStageManagerEncore;
|
||||||
|
|
||||||
printf("[Patches] Enhanced Stage Manager enabled\n");
|
printf("[Patches] Enhanced Stage Manager enabled\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
// OpenGL Patches
|
//// OpenGL Patches
|
||||||
if (nOGLPatchA)
|
//if (nOGLPatchA)
|
||||||
{
|
//{
|
||||||
// (call cs:glGetError) -> (xor eax, eax); (nop); (nop); (nop); (nop);
|
// // (call cs:glGetError) -> (xor eax, eax); (nop); (nop); (nop); (nop);
|
||||||
InjectCode((void*)0x000000014069D21D, { 0x31, 0xC0, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)0x000000014069D21D, { 0x31, 0xC0, 0x90, 0x90, 0x90, 0x90 });
|
||||||
}
|
//}
|
||||||
if (nOGLPatchB)
|
//if (nOGLPatchB)
|
||||||
{
|
//{
|
||||||
// (js loc_14069BC32) -> (nop)...
|
// // (js loc_14069BC32) -> (nop)...
|
||||||
InjectCode((void*)0x000000014069BAF4, { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)0x000000014069BAF4, { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
// Unlock PSEUDO modules (which will all default to Miku, unless we also patch them to match the first performer)
|
// Unlock PSEUDO modules (which will all default to Miku, unless we also patch them to match the first performer)
|
||||||
if (nUnlockPseudo)
|
if (nUnlockPseudo)
|
||||||
{
|
{
|
||||||
@@ -553,7 +555,7 @@ class PatchApplier710 : public PatchApplier {
|
|||||||
// Reflections
|
// Reflections
|
||||||
if (!nReflections)
|
if (!nReflections)
|
||||||
{
|
{
|
||||||
InjectCode((void*)0x1406477C0, { 0xE9, 0xF3, 0x00, 0x00, 0x00, 0x90 });
|
InjectCode((void*)0x1406477C6, { 0xE9, 0xE9, 0x00, 0x00, 0x00, 0x90, 0x90, 0x90 });
|
||||||
InjectCode((void*)0x1411ADAFC, { 0x00 });
|
InjectCode((void*)0x1411ADAFC, { 0x00 });
|
||||||
}
|
}
|
||||||
// Shadows
|
// Shadows
|
||||||
@@ -596,58 +598,59 @@ class PatchApplier710 : public PatchApplier {
|
|||||||
|
|
||||||
InjectCode((void*)0x140A07920, { 0x00 }); // ignore objset
|
InjectCode((void*)0x140A07920, { 0x00 }); // ignore objset
|
||||||
}
|
}
|
||||||
// Prevent data deletion
|
|
||||||
if (nNoDelete)
|
|
||||||
{
|
|
||||||
InjectCode((void*)(0x1406FEF80 + 0x1DB), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407113F0 + 0x13C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140712270 + 0x6C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140712580 + 0x4C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140712580 + 0x7C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140713470 + 0x104), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407135B0 + 0x102), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407135B0 + 0x135), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407135B0 + 0x232), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140713810 + 0x3E8), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140713D00 + 0x677), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x9C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x1D2), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x218), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x22A), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140720910 + 0x25C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140723EE0 + 0xEC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140870DE0 + 0x4), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1406FEF80 + 0x1DB), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407113F0 + 0x13C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140712270 + 0x6E), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140712580 + 0x4C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140712580 + 0x7C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140713470 + 0x104), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407135B0 + 0x102), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407135B0 + 0x135), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407135B0 + 0x232), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140713810 + 0x3E8), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140713D00 + 0x677), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x9C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x1D2), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x218), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x22A), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140720910 + 0x25C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140723EE0 + 0xEC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x1407168A0 + 0x9C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x140870DE0 + 0x4), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
|
||||||
InjectCode((void*)(0x14081B6A4), { 0xC3 });
|
|
||||||
|
|
||||||
InjectCode((void*)(0x1406E1090 + 0x43C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
//// Prevent data deletion
|
||||||
InjectCode((void*)(0x140718250 + 0x176), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
//if (nNoDelete)
|
||||||
InjectCode((void*)(0x140718750 + 0xC9), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
//{
|
||||||
InjectCode((void*)(0x1407193E0 + 0xFC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)(0x1406FEF80 + 0x1DB), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
InjectCode((void*)(0x1406E1090 + 0x43C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)(0x1407113F0 + 0x13C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
InjectCode((void*)(0x140718250 + 0x176), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)(0x140712270 + 0x6C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
InjectCode((void*)(0x140718750 + 0xC9), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)(0x140712580 + 0x4C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
InjectCode((void*)(0x1407193E0 + 0xFC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
// InjectCode((void*)(0x140712580 + 0x7C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
InjectCode((void*)(0x14081B67A), { 0xC3 });
|
// InjectCode((void*)(0x140713470 + 0x104), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
}
|
// InjectCode((void*)(0x1407135B0 + 0x102), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407135B0 + 0x135), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407135B0 + 0x232), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140713810 + 0x3E8), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140713D00 + 0x677), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x9C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x1D2), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x218), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x22A), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140720910 + 0x25C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140723EE0 + 0xEC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140870DE0 + 0x4), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1406FEF80 + 0x1DB), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407113F0 + 0x13C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140712270 + 0x6E), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140712580 + 0x4C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140712580 + 0x7C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140713470 + 0x104), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407135B0 + 0x102), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407135B0 + 0x135), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407135B0 + 0x232), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140713810 + 0x3E8), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140713D00 + 0x677), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x9C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x1D2), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x218), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x22A), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140720910 + 0x25C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140723EE0 + 0xEC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407168A0 + 0x9C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140870DE0 + 0x4), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x14081B6A4), { 0xC3 });
|
||||||
|
|
||||||
|
// InjectCode((void*)(0x1406E1090 + 0x43C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140718250 + 0x176), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140718750 + 0xC9), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407193E0 + 0xFC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1406E1090 + 0x43C), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140718250 + 0x176), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x140718750 + 0xC9), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x1407193E0 + 0xFC), { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
// InjectCode((void*)(0x14081B67A), { 0xC3 });
|
||||||
|
//}
|
||||||
|
|
||||||
// patch refract and reflect buffer sizes
|
// patch refract and reflect buffer sizes
|
||||||
if (nRefractResWidth != 512 || nRefractResHeight != 256)
|
if (nRefractResWidth != 512 || nRefractResHeight != 256)
|
||||||
@@ -702,6 +705,13 @@ class PatchApplier710 : public PatchApplier {
|
|||||||
|
|
||||||
printf("[Patches] Reflection resolution patched.\n");
|
printf("[Patches] Reflection resolution patched.\n");
|
||||||
}
|
}
|
||||||
|
if (nShadowResWidth != 2048 || nShadowResHeight != 2048)
|
||||||
|
{
|
||||||
|
InjectUint((void*)(0x140A81E04), nShadowResHeight);
|
||||||
|
InjectUint((void*)(0x140A81E08), nShadowResWidth);
|
||||||
|
|
||||||
|
printf("[Patches] Shadow resolution patched.\n");
|
||||||
|
}
|
||||||
|
|
||||||
// lag compensation
|
// lag compensation
|
||||||
if (nLagCompensation > 0 && nLagCompensation <= 500)
|
if (nLagCompensation > 0 && nLagCompensation <= 500)
|
||||||
|
|||||||
@@ -1,114 +1,118 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|x64">
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
<Platform>x64</Platform>
|
<Platform>x64</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
<ProjectConfiguration Include="Release|x64">
|
<ProjectConfiguration Include="Release|x64">
|
||||||
<Configuration>Release</Configuration>
|
<Configuration>Release</Configuration>
|
||||||
<Platform>x64</Platform>
|
<Platform>x64</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<VCProjectVersion>16.0</VCProjectVersion>
|
<VCProjectVersion>16.0</VCProjectVersion>
|
||||||
<ProjectGuid>{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}</ProjectGuid>
|
<ProjectGuid>{3FD6ACA9-E613-4FD6-BDA2-55A91C2CF65C}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>Patches</RootNamespace>
|
<RootNamespace>Patches</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="Shared">
|
<ImportGroup Label="Shared">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
<TargetExt>.dva</TargetExt>
|
<TargetExt>.dva</TargetExt>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<TargetExt>.dva</TargetExt>
|
<TargetExt>.dva</TargetExt>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>MaxSpeed</Optimization>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>NDEBUG;PATCHES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;PATCHES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\detours\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\detours\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>_DEBUG;PATCHES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_DEBUG;PATCHES_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>
|
||||||
</PrecompiledHeaderFile>
|
</PrecompiledHeaderFile>
|
||||||
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\detours\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\freeglut\include;..\..\..\dependencies\detours\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="dllmain.cpp" />
|
<ClCompile Include="databank.cpp" />
|
||||||
</ItemGroup>
|
<ClCompile Include="dllmain.cpp" />
|
||||||
<ItemGroup>
|
</ItemGroup>
|
||||||
<ClInclude Include="framework.h" />
|
<ItemGroup>
|
||||||
<ClInclude Include="PatchApplier.h" />
|
<ClInclude Include="databank.h" />
|
||||||
<ClInclude Include="PatchApplier600.h" />
|
<ClInclude Include="framework.h" />
|
||||||
<ClInclude Include="PatchApplier710.h" />
|
<ClInclude Include="PatchApplier.h" />
|
||||||
</ItemGroup>
|
<ClInclude Include="PatchApplier600.h" />
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<ClInclude Include="PatchApplier710.h" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ClInclude Include="storage.h" />
|
||||||
</ImportGroup>
|
<ClInclude Include="urlutil.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,36 +1,48 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="Source Files">
|
<Filter Include="Source Files">
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="Header Files">
|
<Filter Include="Header Files">
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="Resource Files">
|
<Filter Include="Resource Files">
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
<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>
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="dllmain.cpp">
|
<ClCompile Include="dllmain.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemGroup>
|
<ClCompile Include="databank.cpp">
|
||||||
<ItemGroup>
|
<Filter>Source Files</Filter>
|
||||||
<ClInclude Include="framework.h">
|
</ClCompile>
|
||||||
<Filter>Header Files</Filter>
|
</ItemGroup>
|
||||||
</ClInclude>
|
<ItemGroup>
|
||||||
<ClInclude Include="PatchApplier.h">
|
<ClInclude Include="framework.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="PatchApplier600.h">
|
<ClInclude Include="PatchApplier.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="PatchApplier710.h">
|
<ClInclude Include="PatchApplier600.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
</ItemGroup>
|
<ClInclude Include="PatchApplier710.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="databank.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="storage.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="urlutil.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -0,0 +1,132 @@
|
|||||||
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
#include <sstream>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
#include "databank.h"
|
||||||
|
#include "urlutil.h"
|
||||||
|
|
||||||
|
namespace Databank
|
||||||
|
{
|
||||||
|
bool PvList::readFromStr(std::string& str)
|
||||||
|
{
|
||||||
|
std::string decoded = urlDecode(urlDecode(str));
|
||||||
|
|
||||||
|
std::vector<std::string> tokens;
|
||||||
|
std::stringstream ss(decoded);
|
||||||
|
std::string token;
|
||||||
|
while (std::getline(ss, token, ','))
|
||||||
|
{
|
||||||
|
if (!token.empty())
|
||||||
|
{
|
||||||
|
tokens.push_back(token);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (tokens.size() % 7 != 0)
|
||||||
|
{
|
||||||
|
std::cerr << "[Patches] Databank error: Token count (" << tokens.size() << ") is not a multiple of 7." << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (size_t i = 0; i < tokens.size(); i += 7)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
PvEntry entry;
|
||||||
|
std::tuple<int, int> id(std::stoi(tokens[i]), std::stoi(tokens[i + 2]));
|
||||||
|
entry.unk1 = std::stoi(tokens[i + 1]);
|
||||||
|
entry.advStart = tokens[i + 3];
|
||||||
|
entry.advEnd = tokens[i + 4];
|
||||||
|
entry.start = tokens[i + 5];
|
||||||
|
entry.end = tokens[i + 6];
|
||||||
|
entries.insert({ id, entry });
|
||||||
|
}
|
||||||
|
catch (const std::exception& e)
|
||||||
|
{
|
||||||
|
std::cerr << "[Patches] Databank parse error: " << e.what() << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PvList::readFromFile(const std::string& filename)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
std::ifstream file(filename, std::ios::in | std::ios::binary);
|
||||||
|
if (!file)
|
||||||
|
{
|
||||||
|
std::cerr << "[Patches] Failed to open databank " + filename << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string contents = std::string((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());
|
||||||
|
|
||||||
|
return readFromStr(contents);
|
||||||
|
}
|
||||||
|
catch (const std::exception& e)
|
||||||
|
{
|
||||||
|
std::cerr << "[Patches] Databank file read error: " << e.what() << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void PvList::addEntry(int id, int extra, PvEntry& entry)
|
||||||
|
{
|
||||||
|
entries.insert({ std::tuple<int, int>(id, extra), entry });
|
||||||
|
}
|
||||||
|
|
||||||
|
void PvList::generateMissingEntries()
|
||||||
|
{
|
||||||
|
PvEntry entry = PvEntry();
|
||||||
|
|
||||||
|
for (int i = 0; i <= 999; i++)
|
||||||
|
{
|
||||||
|
entry.advStart = "2000-01-01";
|
||||||
|
entry.advEnd = "2029-01-01";
|
||||||
|
entry.start = "2000-01-01";
|
||||||
|
entry.end = "2029-01-01";
|
||||||
|
|
||||||
|
entries.insert({ std::tuple<int, int>(i, 0), entry });
|
||||||
|
entries.insert({ std::tuple<int, int>(i, 1), entry });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string PvList::finalize()
|
||||||
|
{
|
||||||
|
std::ostringstream csvStream;
|
||||||
|
if (entries.empty())
|
||||||
|
{
|
||||||
|
return "%2A%2A%2A"; // ***
|
||||||
|
//checksum = "5341";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bool first = true;
|
||||||
|
|
||||||
|
for (const auto& entryMap : entries)
|
||||||
|
{
|
||||||
|
std::ostringstream entryStream;
|
||||||
|
if (!first)
|
||||||
|
{
|
||||||
|
csvStream << ",";
|
||||||
|
}
|
||||||
|
first = false;
|
||||||
|
const PvEntry& entry = entryMap.second;
|
||||||
|
entryStream << std::get<0>(entryMap.first) << ","
|
||||||
|
<< entry.unk1 << ","
|
||||||
|
<< std::get<1>(entryMap.first) << ","
|
||||||
|
<< entry.advStart << ","
|
||||||
|
<< entry.advEnd << ","
|
||||||
|
<< entry.start << ","
|
||||||
|
<< entry.end;
|
||||||
|
csvStream << urlEncode(entryStream.str());
|
||||||
|
}
|
||||||
|
|
||||||
|
return urlEncode(csvStream.str());
|
||||||
|
//checksum = std::to_string(crc16_ccitt(finalString));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
#include "databank.h"
|
||||||
|
|
||||||
|
namespace Databank
|
||||||
|
{
|
||||||
|
struct PvEntry
|
||||||
|
{
|
||||||
|
int unk1 = 1;
|
||||||
|
std::string advStart, advEnd, start, end;
|
||||||
|
};
|
||||||
|
|
||||||
|
class PvList
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
std::map<std::tuple<int, int>, PvEntry> entries;
|
||||||
|
|
||||||
|
public:
|
||||||
|
bool readFromStr(std::string& str);
|
||||||
|
bool readFromFile(const std::string& filename);
|
||||||
|
void addEntry(int id, int extra, PvEntry& entry);
|
||||||
|
void generateMissingEntries();
|
||||||
|
std::string finalize();
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -7,13 +7,16 @@
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
#include <regex>
|
||||||
|
#include <detours.h>
|
||||||
|
|
||||||
#include "PluginConfigApi.h"
|
#include "PluginConfigApi.h"
|
||||||
#include "PatchApplier.h"
|
#include "PatchApplier.h"
|
||||||
#include "PatchApplier600.h"
|
#include "PatchApplier600.h"
|
||||||
#include "PatchApplier710.h"
|
#include "PatchApplier710.h"
|
||||||
|
|
||||||
#include <detours.h>
|
|
||||||
#include "framework.h"
|
#include "framework.h"
|
||||||
|
#include "storage.h"
|
||||||
|
#include "databank.h"
|
||||||
#pragma comment(lib, "detours.lib")
|
#pragma comment(lib, "detours.lib")
|
||||||
|
|
||||||
unsigned short game_version = 710;
|
unsigned short game_version = 710;
|
||||||
@@ -22,7 +25,9 @@ void InjectCode(void* address, const std::vector<uint8_t> data);
|
|||||||
void ApplyPatches();
|
void ApplyPatches();
|
||||||
void ApplyCustomPatches(std::wstring CPATCH_FILE_STRING);
|
void ApplyCustomPatches(std::wstring CPATCH_FILE_STRING);
|
||||||
|
|
||||||
|
constexpr uint64_t PVLIST_INIT_ADDRESS = 0x000000014001EC80;
|
||||||
|
void(__fastcall* divaPvListInitializer)(void* pvListContainer) = (void(__fastcall*)(void* pvListContainer))PVLIST_INIT_ADDRESS;
|
||||||
|
void initPvListContainerHook();
|
||||||
|
|
||||||
HMODULE *hModulePtr;
|
HMODULE *hModulePtr;
|
||||||
|
|
||||||
@@ -98,6 +103,11 @@ void ApplyPatches() {
|
|||||||
|
|
||||||
std::cout << "[Patches] All custom patches applied\n";
|
std::cout << "[Patches] All custom patches applied\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (nAutoDatabank)
|
||||||
|
{
|
||||||
|
initPvListContainerHook();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -244,7 +254,7 @@ void ApplyCustomPatches(std::wstring CPATCH_FILE_STRING)
|
|||||||
if (echo) std::cout << std::endl;
|
if (echo) std::cout << std::endl;
|
||||||
else if (comment_string.length() > 0)
|
else if (comment_string.length() > 0)
|
||||||
{
|
{
|
||||||
std::cout << "[Patches]";;
|
std::cout << "[Patches]";
|
||||||
if (comment_string.at(0) != ' ') std::cout << ' ';
|
if (comment_string.at(0) != ' ') std::cout << ' ';
|
||||||
std::cout << comment_string << std::endl;
|
std::cout << comment_string << std::endl;
|
||||||
}
|
}
|
||||||
@@ -254,6 +264,52 @@ void ApplyCustomPatches(std::wstring CPATCH_FILE_STRING)
|
|||||||
fileStream.close();
|
fileStream.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Databank::PvList lists[5] = {};
|
||||||
|
void hookedPvListInitializer(void* pvListContainer)
|
||||||
|
{
|
||||||
|
Storage::FileRecord* records = (Storage::FileRecord*)((uint64_t)pvListContainer + 0xA0);
|
||||||
|
|
||||||
|
for (int i = 0; i <= 4; i++)
|
||||||
|
{
|
||||||
|
std::regex pattern("(PvList" + std::to_string(i) +"_SBZV_7.10_.*_.*\\.dat)");
|
||||||
|
try
|
||||||
|
{
|
||||||
|
for (const auto& entry : std::filesystem::directory_iterator("ram/databank/"))
|
||||||
|
{
|
||||||
|
if (entry.is_regular_file() && std::regex_match(entry.path().filename().string(), pattern))
|
||||||
|
{
|
||||||
|
std::string path = entry.path().string();
|
||||||
|
std::cout << "[Patches] Reading databank: " << path << std::endl;
|
||||||
|
lists[i].readFromFile(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (const std::filesystem::filesystem_error& e)
|
||||||
|
{
|
||||||
|
std::cerr << "[Patches] Databank filesystem error: " << e.what() << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (i != 4) lists[i].generateMissingEntries();
|
||||||
|
std::string finalString = lists[i].finalize();
|
||||||
|
|
||||||
|
Storage::customAddStringContainer(&records[i], finalString.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
*(uint8_t*)(0x140CDB1D9) = 0x01; // enables databank
|
||||||
|
}
|
||||||
|
|
||||||
|
void initPvListContainerHook()
|
||||||
|
{
|
||||||
|
if (game_version != 710) return;
|
||||||
|
|
||||||
|
DetourTransactionBegin();
|
||||||
|
DetourUpdateThread(GetCurrentThread());
|
||||||
|
DetourAttach(&(PVOID&)divaPvListInitializer, (PVOID)(hookedPvListInitializer));
|
||||||
|
DetourTransactionCommit();
|
||||||
|
std::cout << "[Patch] Auto Databank enabled" << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using namespace PluginConfig;
|
using namespace PluginConfig;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
typedef uint16_t(__fastcall* p_crc16_ccitt)(void* data, int len);
|
||||||
|
p_crc16_ccitt o_crc16_ccitt = (p_crc16_ccitt)0x140011A90;
|
||||||
|
|
||||||
|
uint16_t crc16_ccitt(std::string& str)
|
||||||
|
{
|
||||||
|
return o_crc16_ccitt(str.data(), str.size());
|
||||||
|
}
|
||||||
|
|
||||||
std::string TrimString(const std::string& str, const std::string& whitespace)
|
std::string TrimString(const std::string& str, const std::string& whitespace)
|
||||||
{
|
{
|
||||||
const size_t strBegin = str.find_first_not_of(whitespace);
|
const size_t strBegin = str.find_first_not_of(whitespace);
|
||||||
@@ -47,6 +55,14 @@ void InjectCode(void* address, const std::vector<uint8_t> data)
|
|||||||
VirtualProtect(address, byteCount, oldProtect, nullptr);
|
VirtualProtect(address, byteCount, oldProtect, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InjectUint(void* address, const uint32_t data)
|
||||||
|
{
|
||||||
|
DWORD oldProtect;
|
||||||
|
VirtualProtect(address, 4, PAGE_EXECUTE_READWRITE, &oldProtect);
|
||||||
|
memcpy(address, &data, 4);
|
||||||
|
VirtualProtect(address, 4, oldProtect, nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
// patchMovieExt will modify an extension to mp4 only if the file exists on disk as an mp4
|
// patchMovieExt will modify an extension to mp4 only if the file exists on disk as an mp4
|
||||||
void patchMovieExt(std::string moviefile, void* address)
|
void patchMovieExt(std::string moviefile, void* address)
|
||||||
{
|
{
|
||||||
@@ -83,6 +99,7 @@ auto nCursor = GetPrivateProfileIntW(L"patches", L"cursor", TRUE, CONFIG_FILE);
|
|||||||
auto nHideFreeplay = GetPrivateProfileIntW(L"patches", L"hide_freeplay", FALSE, CONFIG_FILE);
|
auto nHideFreeplay = GetPrivateProfileIntW(L"patches", L"hide_freeplay", FALSE, CONFIG_FILE);
|
||||||
auto nFreeplay = GetPrivateProfileIntW(L"patches", L"freeplay", TRUE, CONFIG_FILE);
|
auto nFreeplay = GetPrivateProfileIntW(L"patches", L"freeplay", TRUE, CONFIG_FILE);
|
||||||
auto nPDLoaderText = GetPrivateProfileIntW(L"patches", L"pdloadertext", TRUE, CONFIG_FILE);
|
auto nPDLoaderText = GetPrivateProfileIntW(L"patches", L"pdloadertext", TRUE, CONFIG_FILE);
|
||||||
|
auto nHideStatusIcons = GetPrivateProfileIntW(L"patches", L"hide_status_icons", FALSE, CONFIG_FILE);
|
||||||
auto nStatusIcons = GetPrivateProfileIntW(L"patches", L"status_icons", 0, CONFIG_FILE);
|
auto nStatusIcons = GetPrivateProfileIntW(L"patches", L"status_icons", 0, CONFIG_FILE);
|
||||||
auto nHidePVWatermark = GetPrivateProfileIntW(L"patches", L"hide_pv_watermark", FALSE, CONFIG_FILE);
|
auto nHidePVWatermark = GetPrivateProfileIntW(L"patches", L"hide_pv_watermark", FALSE, CONFIG_FILE);
|
||||||
auto nNoPVUi = GetPrivateProfileIntW(L"patches", L"no_pv_ui", FALSE, CONFIG_FILE);
|
auto nNoPVUi = GetPrivateProfileIntW(L"patches", L"no_pv_ui", FALSE, CONFIG_FILE);
|
||||||
@@ -93,13 +110,12 @@ auto nMP4Movies = GetPrivateProfileIntW(L"patches", L"mp4_movies", FALSE, CONFIG
|
|||||||
auto nNoError = GetPrivateProfileIntW(L"patches", L"no_error", FALSE, CONFIG_FILE);
|
auto nNoError = GetPrivateProfileIntW(L"patches", L"no_error", FALSE, CONFIG_FILE);
|
||||||
auto nNoTimer = GetPrivateProfileIntW(L"patches", L"no_timer", TRUE, CONFIG_FILE);
|
auto nNoTimer = GetPrivateProfileIntW(L"patches", L"no_timer", TRUE, CONFIG_FILE);
|
||||||
auto nNoTimerSprite = GetPrivateProfileIntW(L"patches", L"no_timer_sprite", TRUE, CONFIG_FILE);
|
auto nNoTimerSprite = GetPrivateProfileIntW(L"patches", L"no_timer_sprite", TRUE, CONFIG_FILE);
|
||||||
|
auto nAutoDatabank = GetPrivateProfileIntW(L"patches", L"auto_databank", TRUE, CONFIG_FILE);
|
||||||
auto nEStageManager = GetPrivateProfileIntW(L"patches", L"enhanced_stage_manager", 0, CONFIG_FILE);
|
auto nEStageManager = GetPrivateProfileIntW(L"patches", L"enhanced_stage_manager", 0, CONFIG_FILE);
|
||||||
auto nEStageManagerEncore = GetPrivateProfileIntW(L"patches", L"enhanced_stage_manager_encore", TRUE, CONFIG_FILE);
|
auto nEStageManagerEncore = GetPrivateProfileIntW(L"patches", L"enhanced_stage_manager_encore", TRUE, CONFIG_FILE);
|
||||||
auto nUnlockPseudo = GetPrivateProfileIntW(L"patches", L"unlock_pseudo", FALSE, CONFIG_FILE);
|
auto nUnlockPseudo = GetPrivateProfileIntW(L"patches", L"unlock_pseudo", FALSE, CONFIG_FILE);
|
||||||
auto nCard = GetPrivateProfileIntW(L"patches", L"card", TRUE, CONFIG_FILE);
|
auto nCard = GetPrivateProfileIntW(L"patches", L"card", TRUE, CONFIG_FILE);
|
||||||
auto nHardwareSlider = GetPrivateProfileIntW(L"patches", L"hardware_slider", FALSE, CONFIG_FILE);
|
auto nHardwareSlider = GetPrivateProfileIntW(L"patches", L"hardware_slider", FALSE, CONFIG_FILE);
|
||||||
auto nOGLPatchA = GetPrivateProfileIntW(L"patches", L"opengl_patch_a", FALSE, CONFIG_FILE);
|
|
||||||
auto nOGLPatchB = GetPrivateProfileIntW(L"patches", L"opengl_patch_b", FALSE, CONFIG_FILE);
|
|
||||||
auto nTAA = GetPrivateProfileIntW(L"graphics", L"taa", TRUE, CONFIG_FILE);
|
auto nTAA = GetPrivateProfileIntW(L"graphics", L"taa", TRUE, CONFIG_FILE);
|
||||||
auto nMLAA = GetPrivateProfileIntW(L"graphics", L"mlaa", TRUE, CONFIG_FILE);
|
auto nMLAA = GetPrivateProfileIntW(L"graphics", L"mlaa", TRUE, CONFIG_FILE);
|
||||||
auto nDoF = GetPrivateProfileIntW(L"graphics", L"dof", TRUE, CONFIG_FILE);
|
auto nDoF = GetPrivateProfileIntW(L"graphics", L"dof", TRUE, CONFIG_FILE);
|
||||||
@@ -123,10 +139,11 @@ auto nPunchthrough = GetPrivateProfileIntW(L"graphics", L"punchthrough", TRUE, C
|
|||||||
auto nGlare = GetPrivateProfileIntW(L"graphics", L"glare", TRUE, CONFIG_FILE);
|
auto nGlare = GetPrivateProfileIntW(L"graphics", L"glare", TRUE, CONFIG_FILE);
|
||||||
auto nShader = GetPrivateProfileIntW(L"graphics", L"shader", TRUE, CONFIG_FILE);
|
auto nShader = GetPrivateProfileIntW(L"graphics", L"shader", TRUE, CONFIG_FILE);
|
||||||
auto n2D = GetPrivateProfileIntW(L"graphics", L"2D", FALSE, CONFIG_FILE);
|
auto n2D = GetPrivateProfileIntW(L"graphics", L"2D", FALSE, CONFIG_FILE);
|
||||||
auto nNoDelete = GetPrivateProfileIntW(L"patches", L"prevent_data_deletion", FALSE, CONFIG_FILE);
|
|
||||||
auto nReflectResWidth = GetPrivateProfileIntW(L"graphics", L"reflect_res_width", 512, CONFIG_FILE);
|
auto nReflectResWidth = GetPrivateProfileIntW(L"graphics", L"reflect_res_width", 512, CONFIG_FILE);
|
||||||
auto nReflectResHeight = GetPrivateProfileIntW(L"graphics", L"reflect_res_height", 256, CONFIG_FILE);
|
auto nReflectResHeight = GetPrivateProfileIntW(L"graphics", L"reflect_res_height", 256, CONFIG_FILE);
|
||||||
auto nRefractResWidth = GetPrivateProfileIntW(L"graphics", L"refract_res_width", 512, CONFIG_FILE);
|
auto nRefractResWidth = GetPrivateProfileIntW(L"graphics", L"refract_res_width", 512, CONFIG_FILE);
|
||||||
auto nRefractResHeight = GetPrivateProfileIntW(L"graphics", L"refract_res_height", 256, CONFIG_FILE);
|
auto nRefractResHeight = GetPrivateProfileIntW(L"graphics", L"refract_res_height", 256, CONFIG_FILE);
|
||||||
|
auto nShadowResWidth = GetPrivateProfileIntW(L"graphics", L"shadow_res_width", 2048, CONFIG_FILE);
|
||||||
|
auto nShadowResHeight = GetPrivateProfileIntW(L"graphics", L"shadow_res_height", 2048, CONFIG_FILE);
|
||||||
auto nLagCompensation = GetPrivateProfileIntW(L"graphics", L"lag_compensation", 0, CONFIG_FILE);
|
auto nLagCompensation = GetPrivateProfileIntW(L"graphics", L"lag_compensation", 0, CONFIG_FILE);
|
||||||
auto nUseDivahookBat = GetPrivateProfileIntW(L"launcher", L"use_divahook_bat", FALSE, CONFIG_FILE);
|
auto nUseDivahookBat = GetPrivateProfileIntW(L"launcher", L"use_divahook_bat", FALSE, CONFIG_FILE);
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
namespace Storage
|
||||||
|
{
|
||||||
|
struct FileRecord
|
||||||
|
{
|
||||||
|
union
|
||||||
|
{
|
||||||
|
void* pData; // used if allocSize is >= 16
|
||||||
|
char inlineData[16]; // used if allocSize is < 16; [8-15] not normally cleared when expanded
|
||||||
|
};
|
||||||
|
uint64_t dataLength = 0;
|
||||||
|
uint64_t allocSize = 15;
|
||||||
|
};
|
||||||
|
|
||||||
|
//void(__fastcall* divaAddStringContainer)(void*, void**) = (void(__fastcall*)(void* container, void** src))0x01400C0A40;
|
||||||
|
|
||||||
|
void customAddStringContainer(void* container, const char* str)
|
||||||
|
{
|
||||||
|
uint64_t addr = (uint64_t)container;
|
||||||
|
|
||||||
|
while (*(uint64_t*)addr != 0)
|
||||||
|
{
|
||||||
|
addr += sizeof(FileRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
FileRecord* record = (FileRecord*)addr;
|
||||||
|
size_t length = strlen(str) + 1;
|
||||||
|
|
||||||
|
if (length > 0 && length < 16)
|
||||||
|
{
|
||||||
|
memcpy_s(record->inlineData, length, str, length);
|
||||||
|
record->dataLength = length;
|
||||||
|
record->allocSize = 0;
|
||||||
|
}
|
||||||
|
else if (length >= 16)
|
||||||
|
{
|
||||||
|
char* alloc = (char*)malloc(length);
|
||||||
|
memcpy_s(alloc, length, str, length);
|
||||||
|
record->pData = alloc;
|
||||||
|
record->dataLength = length;
|
||||||
|
record->allocSize = length;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <string>
|
||||||
|
#include <sstream>
|
||||||
|
#include <iomanip>
|
||||||
|
|
||||||
|
std::string urlDecode(const std::string& encoded)
|
||||||
|
{
|
||||||
|
std::string decoded;
|
||||||
|
char ch;
|
||||||
|
for (size_t i = 0; i < encoded.length(); i++)
|
||||||
|
{
|
||||||
|
if (encoded[i] == '%')
|
||||||
|
{
|
||||||
|
if (i + 2 < encoded.length())
|
||||||
|
{
|
||||||
|
std::string hex = encoded.substr(i + 1, 2);
|
||||||
|
ch = static_cast<char>(std::strtol(hex.c_str(), nullptr, 16));
|
||||||
|
decoded.push_back(ch);
|
||||||
|
i += 2;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
decoded.push_back('%');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (encoded[i] == '+')
|
||||||
|
{
|
||||||
|
decoded.push_back(' ');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
decoded.push_back(encoded[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return decoded;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string urlEncode(const std::string& str)
|
||||||
|
{
|
||||||
|
std::ostringstream escaped;
|
||||||
|
escaped.fill('0');
|
||||||
|
escaped << std::hex;
|
||||||
|
|
||||||
|
for (unsigned char c : str)
|
||||||
|
{
|
||||||
|
if (std::isalnum(c) || c == '-' || c == '_' || c == '.' || c == '~')
|
||||||
|
{
|
||||||
|
escaped << c;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
escaped << '%' << std::setw(2) << std::uppercase << static_cast<int>(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return escaped.str();
|
||||||
|
}
|
||||||
@@ -135,8 +135,8 @@ __int64 hookedParseParameters(int a1, __int64* a2)
|
|||||||
case 600:
|
case 600:
|
||||||
*resolutionType_600 = 15;
|
*resolutionType_600 = 15;
|
||||||
break;
|
break;
|
||||||
default:
|
//default:
|
||||||
*resolutionType_710 = 15;
|
// *resolutionType_710 = 15;
|
||||||
}
|
}
|
||||||
// Return to the original function
|
// Return to the original function
|
||||||
switch (game_version)
|
switch (game_version)
|
||||||
@@ -144,8 +144,8 @@ __int64 hookedParseParameters(int a1, __int64* a2)
|
|||||||
case 600:
|
case 600:
|
||||||
return divaParseParameters_600(a1, a2);
|
return divaParseParameters_600(a1, a2);
|
||||||
break;
|
break;
|
||||||
default:
|
//default:
|
||||||
return divaParseParameters_710(a1, a2);
|
// return divaParseParameters_710(a1, a2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -231,6 +231,40 @@ __int64 __fastcall limiterFuncLight(__int64 a1)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define WRITE_MEMORY_INT(address, data) \
|
||||||
|
{ \
|
||||||
|
DWORD oldProtect, bck; \
|
||||||
|
VirtualProtect((BYTE*)(address), 4, PAGE_EXECUTE_READWRITE, &oldProtect); \
|
||||||
|
*((int*)(address)) = (data); \
|
||||||
|
VirtualProtect((BYTE*)(address), 4, oldProtect, &bck); \
|
||||||
|
}
|
||||||
|
|
||||||
|
void __fastcall hookedInitRender(int ssaa, int hd_res, int ss_alpha_mask, __int8 npr) {
|
||||||
|
if (nIntRes)
|
||||||
|
{
|
||||||
|
const __int64 widthAddress = 0x0000000140EDA8B0 + 0x0C;
|
||||||
|
const __int64 heightAddress = 0x0000000140EDA8B0 + 0x10;
|
||||||
|
const __int64 intWidthAddress = 0x0000000140EDA8D8 + 0x0C;
|
||||||
|
const __int64 intHeightAddress = 0x0000000140EDA8D8 + 0x10;
|
||||||
|
|
||||||
|
int originalWidth = *(int*)widthAddress;
|
||||||
|
int originalHeight = *(int*)heightAddress;
|
||||||
|
int originalIntWidth = *(int*)intWidthAddress;
|
||||||
|
int originalIntHeight = *(int*)intHeightAddress;
|
||||||
|
WRITE_MEMORY_INT(widthAddress, nIntResWidth);
|
||||||
|
WRITE_MEMORY_INT(heightAddress, nIntResHeight);
|
||||||
|
WRITE_MEMORY_INT(intWidthAddress, nIntResWidth);
|
||||||
|
WRITE_MEMORY_INT(intHeightAddress, nIntResHeight);
|
||||||
|
divaInitRender_710(ssaa, hd_res, ss_alpha_mask, npr);
|
||||||
|
WRITE_MEMORY_INT(widthAddress, originalWidth);
|
||||||
|
WRITE_MEMORY_INT(heightAddress, originalHeight);
|
||||||
|
WRITE_MEMORY_INT(intWidthAddress, originalIntWidth);
|
||||||
|
WRITE_MEMORY_INT(intHeightAddress, originalIntHeight);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
divaInitRender_710(ssaa, hd_res, ss_alpha_mask, npr);
|
||||||
|
}
|
||||||
|
|
||||||
__int64 __fastcall hookedEngineUpdate(__int64 a1)
|
__int64 __fastcall hookedEngineUpdate(__int64 a1)
|
||||||
{
|
{
|
||||||
if (nFpsLimit < 1)
|
if (nFpsLimit < 1)
|
||||||
@@ -284,17 +318,17 @@ BOOL APIENTRY DllMain(HMODULE hModule,
|
|||||||
}
|
}
|
||||||
DetourTransactionCommit();
|
DetourTransactionCommit();
|
||||||
|
|
||||||
DetourTransactionBegin();
|
|
||||||
DetourUpdateThread(GetCurrentThread());
|
|
||||||
switch (game_version)
|
switch (game_version)
|
||||||
{
|
{
|
||||||
case 600:
|
case 600:
|
||||||
|
DetourTransactionBegin();
|
||||||
|
DetourUpdateThread(GetCurrentThread());
|
||||||
DetourAttach(&(PVOID&)divaParseParameters_600, hookedParseParameters);
|
DetourAttach(&(PVOID&)divaParseParameters_600, hookedParseParameters);
|
||||||
|
DetourTransactionCommit();
|
||||||
break;
|
break;
|
||||||
default:
|
//default:
|
||||||
DetourAttach(&(PVOID&)divaParseParameters_710, hookedParseParameters);
|
// DetourAttach(&(PVOID&)divaParseParameters_710, hookedParseParameters);
|
||||||
}
|
}
|
||||||
DetourTransactionCommit();
|
|
||||||
|
|
||||||
|
|
||||||
// set sleep time resolution to 2ms or device minimum (whichever's lower)
|
// set sleep time resolution to 2ms or device minimum (whichever's lower)
|
||||||
@@ -340,39 +374,14 @@ BOOL APIENTRY DllMain(HMODULE hModule,
|
|||||||
switch (game_version)
|
switch (game_version)
|
||||||
{
|
{
|
||||||
case 600:
|
case 600:
|
||||||
{
|
WRITE_MEMORY_INT(0x0000000140980954, nIntResWidth);
|
||||||
DWORD oldProtect, bck;
|
WRITE_MEMORY_INT(0x0000000140980958, nIntResWidth);
|
||||||
VirtualProtect((BYTE*)0x0000000140980954, 4, PAGE_EXECUTE_READWRITE, &oldProtect);
|
break;
|
||||||
*((int*)0x0000000140980954) = nIntResWidth;
|
|
||||||
VirtualProtect((BYTE*)0x0000000140980954, 6, oldProtect, &bck);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
DWORD oldProtect, bck;
|
|
||||||
VirtualProtect((BYTE*)0x0000000140980958, 4, PAGE_EXECUTE_READWRITE, &oldProtect);
|
|
||||||
*((int*)0x0000000140980958) = nIntResHeight;
|
|
||||||
VirtualProtect((BYTE*)0x0000000140980958, 6, oldProtect, &bck);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
{
|
DetourTransactionBegin();
|
||||||
DWORD oldProtect, bck;
|
DetourUpdateThread(GetCurrentThread());
|
||||||
VirtualProtect((BYTE*)0x00000001409B8B68, 4, PAGE_EXECUTE_READWRITE, &oldProtect);
|
DetourAttach(&(PVOID&)divaInitRender_710, hookedInitRender);
|
||||||
*((int*)0x00000001409B8B68) = nIntResWidth;
|
DetourTransactionCommit();
|
||||||
VirtualProtect((BYTE*)0x00000001409B8B68, 6, oldProtect, &bck);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
DWORD oldProtect, bck;
|
|
||||||
VirtualProtect((BYTE*)0x00000001409B8B6C, 4, PAGE_EXECUTE_READWRITE, &oldProtect);
|
|
||||||
*((int*)0x00000001409B8B6C) = nIntResHeight;
|
|
||||||
VirtualProtect((BYTE*)0x00000001409B8B6C, 6, oldProtect, &bck);
|
|
||||||
}
|
|
||||||
|
|
||||||
//*((int*)0x00000001409B8B6C) = maxHeight;
|
|
||||||
//*((int*)0x00000001409B8B14) = maxWidth;
|
|
||||||
//*((int*)0x00000001409B8B18) = maxHeight;
|
|
||||||
|
|
||||||
//*((int*)0x00000001409B8B1C) = maxWidth; // No parameters width?
|
|
||||||
//*((int*)0x00000001409B8B20) = maxHeight; // No parameters height?
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -390,4 +399,4 @@ extern "C" __declspec(dllexport) LPCWSTR GetPluginName(void)
|
|||||||
extern "C" __declspec(dllexport) LPCWSTR GetPluginDescription(void)
|
extern "C" __declspec(dllexport) LPCWSTR GetPluginDescription(void)
|
||||||
{
|
{
|
||||||
return L"Applies window mode/size and FPS limiting.";
|
return L"Applies window mode/size and FPS limiting.";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,11 +6,12 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
static int(__cdecl* divaCreateWindow_710)(const char* title, void(__cdecl* exitfunc)(int)) = (int(__cdecl*)(const char* title, void(__cdecl * exitfunc)(int)))0x140194D00;
|
static int(__cdecl* divaCreateWindow_710)(const char* title, void(__cdecl* exitfunc)(int)) = (int(__cdecl*)(const char* title, void(__cdecl * exitfunc)(int)))0x140194D00;
|
||||||
__int64 (__fastcall* divaParseParameters_710)(int a1, __int64* a2) = (__int64(__fastcall*)(int a1, __int64* a2))0x140193630;
|
void(__fastcall* divaInitRender_710)(int ssaa, int hd_res, int ss_alpha_mask, __int8 npr) = (void(__fastcall *)(int ssaa, int hd_res, int ss_alpha_mask, __int8 npr))0x0000000140502A10;
|
||||||
|
//__int64 (__fastcall* divaParseParameters_710)(int a1, __int64* a2) = (__int64(__fastcall*)(int a1, __int64* a2))0x140193630;
|
||||||
__int64(__fastcall* divaEngineUpdate_710)(__int64 a1) = (__int64(__fastcall*)(__int64 a1))0x140194CD0;
|
__int64(__fastcall* divaEngineUpdate_710)(__int64 a1) = (__int64(__fastcall*)(__int64 a1))0x140194CD0;
|
||||||
|
|
||||||
uint8_t* fullScreenFlag_710 = (uint8_t*)0x140EDA5D1;
|
uint8_t* fullScreenFlag_710 = (uint8_t*)0x140EDA5D1;
|
||||||
DWORD* resolutionType_710 = (DWORD*)0x140EDA5D4;
|
//DWORD* resolutionType_710 = (DWORD*)0x140EDA5D4;
|
||||||
|
|
||||||
|
|
||||||
static int(__cdecl* divaCreateWindow_600)(const char* title, void(__cdecl* exitfunc)(int)) = (int(__cdecl*)(const char* title, void(__cdecl * exitfunc)(int)))0x14018CD00;
|
static int(__cdecl* divaCreateWindow_600)(const char* title, void(__cdecl* exitfunc)(int)) = (int(__cdecl*)(const char* title, void(__cdecl * exitfunc)(int)))0x14018CD00;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
|
||||||
#include <windows.h>
|
//#include <windows.h>
|
||||||
|
//#include <psapi.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <map>
|
#include <map>
|
||||||
@@ -127,3 +128,36 @@ LPCWSTR DATA_FILE = DATA_FILE_STRING.c_str();
|
|||||||
std::wstring CONFIG_FILE_STRING = DirPath() + L"\\plugins\\ShaderPatchConfig.ini";
|
std::wstring CONFIG_FILE_STRING = DirPath() + L"\\plugins\\ShaderPatchConfig.ini";
|
||||||
LPCWSTR CONFIG_FILE = CONFIG_FILE_STRING.c_str();
|
LPCWSTR CONFIG_FILE = CONFIG_FILE_STRING.c_str();
|
||||||
|
|
||||||
|
//bool hasConflicts()
|
||||||
|
//{
|
||||||
|
// printf("[ShaderPatch] Checking for conflicts...\n");
|
||||||
|
//
|
||||||
|
// HMODULE* hModules = new HMODULE[USHRT_MAX];
|
||||||
|
// HANDLE hProcess;
|
||||||
|
// DWORD cbNeeded;
|
||||||
|
//
|
||||||
|
// hProcess = GetCurrentProcess();
|
||||||
|
//
|
||||||
|
// if (EnumProcessModules(hProcess, hModules, sizeof(hModules), &cbNeeded)) {
|
||||||
|
// for (unsigned long long i = 0; i < (cbNeeded / sizeof(HMODULE)); i++) {
|
||||||
|
// auto pNameFunc = (LPCWSTR(*)())GetProcAddress(hModules[i], "GetPluginName");
|
||||||
|
// if (pNameFunc) {
|
||||||
|
// LPCWSTR name = pNameFunc();
|
||||||
|
// if (name && lstrcmpW(name, L"DivaGL") == 0)
|
||||||
|
// {
|
||||||
|
// // detected DivaGL
|
||||||
|
// printf("[ShaderPatch] Detected DivaGL! Quitting!\n");
|
||||||
|
//#ifdef _DEBUG
|
||||||
|
// MessageBoxExW(NULL, L"Detected DivaGL! Quitting!\n", L"ShaderPatch", MB_OK, 0);
|
||||||
|
//#endif
|
||||||
|
// delete[] hModules;
|
||||||
|
// return true;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// printf("[ShaderPatch] No conflicts found.\n");
|
||||||
|
// delete[] hModules;
|
||||||
|
// return false;
|
||||||
|
//}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include "../../Input/Bindings/XinputBinding.h"
|
#include "../../Input/Bindings/XinputBinding.h"
|
||||||
#include "../../Input/Bindings/MouseBinding.h"
|
#include "../../Input/Bindings/MouseBinding.h"
|
||||||
#include "../../Input/Bindings/Ds4Binding.h"
|
#include "../../Input/Bindings/Ds4Binding.h"
|
||||||
|
#include "../../Input/Bindings/DVLBinding.h"
|
||||||
#include "../../Input/KeyConfig/Config.h"
|
#include "../../Input/KeyConfig/Config.h"
|
||||||
#include "../../Utilities/Operations.h"
|
#include "../../Utilities/Operations.h"
|
||||||
#include "../../Utilities/EnumBitwiseOperations.h"
|
#include "../../Utilities/EnumBitwiseOperations.h"
|
||||||
@@ -83,6 +84,7 @@ namespace TLAC::Components
|
|||||||
|
|
||||||
CoinBinding = new Binding();
|
CoinBinding = new Binding();
|
||||||
ToonBinding = new Binding();
|
ToonBinding = new Binding();
|
||||||
|
WireframeBinding = new Binding();
|
||||||
|
|
||||||
FileSystem::ConfigFile configFile(framework::GetModuleDirectory(), KEY_CONFIG_FILE_NAME);
|
FileSystem::ConfigFile configFile(framework::GetModuleDirectory(), KEY_CONFIG_FILE_NAME);
|
||||||
configFile.OpenRead();
|
configFile.OpenRead();
|
||||||
@@ -103,8 +105,18 @@ namespace TLAC::Components
|
|||||||
Config::BindConfigKeys(configFile.ConfigMap, "MENU_CIRCLE", *MenuCircleBinding, { "D", "L", "Spacebar" });
|
Config::BindConfigKeys(configFile.ConfigMap, "MENU_CIRCLE", *MenuCircleBinding, { "D", "L", "Spacebar" });
|
||||||
Config::BindConfigKeys(configFile.ConfigMap, "TOON", *ToonBinding, { "F9" });
|
Config::BindConfigKeys(configFile.ConfigMap, "TOON", *ToonBinding, { "F9" });
|
||||||
Config::BindConfigKeys(configFile.ConfigMap, "COIN", *CoinBinding, { "F10" });
|
Config::BindConfigKeys(configFile.ConfigMap, "COIN", *CoinBinding, { "F10" });
|
||||||
|
Config::BindConfigKeys(configFile.ConfigMap, "WIREFRAME", *WireframeBinding, { "Backspace" });
|
||||||
|
|
||||||
mouseScrollPvSelection = configFile.GetBooleanValue("mouse_scroll_pv_selection");
|
mouseScrollPvSelection = configFile.GetBooleanValue("mouse_scroll_pv_selection");
|
||||||
|
|
||||||
|
TestBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_L3));
|
||||||
|
ServiceBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_L2));
|
||||||
|
CoinBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_L1));
|
||||||
|
StartBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_FN));
|
||||||
|
SankakuBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_TRIANGLE));
|
||||||
|
ShikakuBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_SQUARE));
|
||||||
|
BatsuBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_CROSS));
|
||||||
|
MaruBinding->AddBinding(new DivallerBinding(DivallerButton::DVL_CIRCLE));
|
||||||
}
|
}
|
||||||
|
|
||||||
void InputEmulator::Update()
|
void InputEmulator::Update()
|
||||||
@@ -176,6 +188,9 @@ namespace TLAC::Components
|
|||||||
|
|
||||||
if (ToonBinding->AnyTapped())
|
if (ToonBinding->AnyTapped())
|
||||||
toggleNpr1();
|
toggleNpr1();
|
||||||
|
|
||||||
|
if (WireframeBinding->AnyTapped())
|
||||||
|
toggleWireframe();
|
||||||
}
|
}
|
||||||
|
|
||||||
HoldState InputEmulator::GetHoldState()
|
HoldState InputEmulator::GetHoldState()
|
||||||
@@ -467,4 +482,28 @@ namespace TLAC::Components
|
|||||||
printf("[TLAC] NPR1 restored\n");
|
printf("[TLAC] NPR1 restored\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void InputEmulator::toggleWireframe()
|
||||||
|
{
|
||||||
|
static bool wireframeEnabled = false;
|
||||||
|
|
||||||
|
if (!wireframeEnabled)
|
||||||
|
{
|
||||||
|
// inject samyuu's wireframe code
|
||||||
|
InjectCode((void*)0x00000000140500BE6, { 0xBA, 0x01, 0x1B, 0x00, 0x00, // mov edx,00001B01
|
||||||
|
0xB9, 0x08, 0x04, 0x00, 0x00, // mov ecx,00000408
|
||||||
|
0xE8, 0xE1, 0x5A, 0x3B, 0x00, // call 1408B66D6
|
||||||
|
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 });
|
||||||
|
|
||||||
|
wireframeEnabled = true;
|
||||||
|
printf("[TLAC] Wireframe enabled\n");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
InjectCode((void*)0x00000000140500BE6, { 0xB9, 0x1C, 0x00, 0x00, 0x00, 0xE8, 0x30, 0x7C, 0xF3, 0xFF, 0xB9, 0x1B, 0x00, 0x00, 0x00, 0x8B, 0xD8, 0xE8, 0x24, 0x7C, 0xF3, 0xFF, 0xB9, 0x1A, 0x00, 0x00, 0x00 });
|
||||||
|
|
||||||
|
wireframeEnabled = false;
|
||||||
|
printf("[TLAC] Wireframe disabled\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -40,6 +40,7 @@ namespace TLAC::Components
|
|||||||
|
|
||||||
Input::Binding* CoinBinding;
|
Input::Binding* CoinBinding;
|
||||||
Input::Binding* ToonBinding;
|
Input::Binding* ToonBinding;
|
||||||
|
Input::Binding* WireframeBinding;
|
||||||
|
|
||||||
InputEmulator();
|
InputEmulator();
|
||||||
~InputEmulator();
|
~InputEmulator();
|
||||||
@@ -112,5 +113,6 @@ namespace TLAC::Components
|
|||||||
|
|
||||||
void addCoin();
|
void addCoin();
|
||||||
void toggleNpr1();
|
void toggleNpr1();
|
||||||
|
void toggleWireframe();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "../../Input/Bindings/KeyboardBinding.h"
|
#include "../../Input/Bindings/KeyboardBinding.h"
|
||||||
#include "../../Input/KeyConfig/Config.h"
|
#include "../../Input/KeyConfig/Config.h"
|
||||||
#include "../../Input/DirectInput/Ds4/DualShock4.h"
|
#include "../../Input/DirectInput/Ds4/DualShock4.h"
|
||||||
|
#include "../../Input/Divaller/Divaller.h"
|
||||||
#include "../../FileSystem/ConfigFile.h"
|
#include "../../FileSystem/ConfigFile.h"
|
||||||
#include "../../Utilities/Math.h"
|
#include "../../Utilities/Math.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
@@ -100,7 +101,11 @@ namespace TLAC::Components
|
|||||||
if (!componentsManager->GetUpdateGameInput() || componentsManager->IsDwGuiActive() || (!enableInMenus && !(*(GameState*)CURRENT_GAME_STATE_ADDRESS == GS_GAME && *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_GAME_MAIN)))
|
if (!componentsManager->GetUpdateGameInput() || componentsManager->IsDwGuiActive() || (!enableInMenus && !(*(GameState*)CURRENT_GAME_STATE_ADDRESS == GS_GAME && *(SubGameState*)CURRENT_GAME_SUB_STATE_ADDRESS == SUB_GAME_MAIN)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (usePs4OfficialSlider)
|
if (Input::Divaller::GetInstance() != nullptr)
|
||||||
|
{
|
||||||
|
ApplyBitfieldState(Input::Divaller::GetInstance()->GetSlider());
|
||||||
|
}
|
||||||
|
else if (usePs4OfficialSlider)
|
||||||
{
|
{
|
||||||
DualShock4* ds4 = DualShock4::GetInstance();
|
DualShock4* ds4 = DualShock4::GetInstance();
|
||||||
if (ds4 == nullptr)
|
if (ds4 == nullptr)
|
||||||
@@ -140,7 +145,7 @@ namespace TLAC::Components
|
|||||||
|
|
||||||
void TouchSliderEmulator::OnFocusLost()
|
void TouchSliderEmulator::OnFocusLost()
|
||||||
{
|
{
|
||||||
if (usePs4OfficialSlider)
|
if (usePs4OfficialSlider || Input::Divaller::GetInstance() != nullptr)
|
||||||
sliderState->ResetSensors(TouchSliderState::SENSOR_SET_MODE_RAW);
|
sliderState->ResetSensors(TouchSliderState::SENSOR_SET_MODE_RAW);
|
||||||
else
|
else
|
||||||
sliderState->ResetSensors(TouchSliderState::SENSOR_SET_MODE_SECTIONS);
|
sliderState->ResetSensors(TouchSliderState::SENSOR_SET_MODE_SECTIONS);
|
||||||
|
|||||||
@@ -32,9 +32,13 @@ namespace TLAC::Components
|
|||||||
Pause::menusets Pause::curMenuSet = MENUSET_MAIN;
|
Pause::menusets Pause::curMenuSet = MENUSET_MAIN;
|
||||||
std::chrono::time_point<std::chrono::high_resolution_clock> Pause::menuItemMoveTime;
|
std::chrono::time_point<std::chrono::high_resolution_clock> Pause::menuItemMoveTime;
|
||||||
std::vector<uint8_t> Pause::origAetMovOp;
|
std::vector<uint8_t> Pause::origAetMovOp;
|
||||||
|
float_t Pause::origDeltaFrameHistory = 0.0f;
|
||||||
|
int32_t Pause::origDeltaFrameHistoryInt = 0;
|
||||||
uint8_t* Pause::aetMovPatchAddress = (uint8_t*)0x1401703b3;
|
uint8_t* Pause::aetMovPatchAddress = (uint8_t*)0x1401703b3;
|
||||||
std::vector<uint8_t> Pause::origFramespeedOp;
|
std::vector<uint8_t> Pause::origFramespeedOp;
|
||||||
uint8_t* Pause::framespeedPatchAddress = (uint8_t*)0x140192D50;
|
uint8_t* Pause::framespeedPatchAddress = (uint8_t*)0x140192D50;
|
||||||
|
float_t* Pause::deltaFrameHistoryAddress = (float_t*)0x140EDA6C0;
|
||||||
|
int32_t* Pause::deltaFrameHistoryIntAddress = (int32_t*)0x140EDA6C4;
|
||||||
std::vector<uint8_t> Pause::origAgeageHairOp;
|
std::vector<uint8_t> Pause::origAgeageHairOp;
|
||||||
uint8_t* Pause::ageageHairPatchAddress = (uint8_t*)0x14054352c;
|
uint8_t* Pause::ageageHairPatchAddress = (uint8_t*)0x14054352c;
|
||||||
std::vector<bool> Pause::streamPlayStates;
|
std::vector<bool> Pause::streamPlayStates;
|
||||||
@@ -136,6 +140,12 @@ namespace TLAC::Components
|
|||||||
InjectCode(framespeedPatchAddress, { 0x0f, 0x57, 0xc0, 0xc3 }); // XORPS XMM0,XMM0; RET
|
InjectCode(framespeedPatchAddress, { 0x0f, 0x57, 0xc0, 0xc3 }); // XORPS XMM0,XMM0; RET
|
||||||
InjectCode(ageageHairPatchAddress, { 0x0f, 0x57, 0xdb }); // XORPS XMM3,XMM3
|
InjectCode(ageageHairPatchAddress, { 0x0f, 0x57, 0xdb }); // XORPS XMM3,XMM3
|
||||||
|
|
||||||
|
origDeltaFrameHistory = *deltaFrameHistoryAddress;
|
||||||
|
origDeltaFrameHistoryInt = *deltaFrameHistoryIntAddress;
|
||||||
|
|
||||||
|
*deltaFrameHistoryAddress = 0.0f;
|
||||||
|
*deltaFrameHistoryIntAddress = 0;
|
||||||
|
|
||||||
uint64_t audioMixerAddr = *(uint64_t*)(AUDIO_MAIN_CLASS_ADDRESS + 0x70);
|
uint64_t audioMixerAddr = *(uint64_t*)(AUDIO_MAIN_CLASS_ADDRESS + 0x70);
|
||||||
uint64_t audioStreamsAddress = *(uint64_t*)(audioMixerAddr + 0x18);
|
uint64_t audioStreamsAddress = *(uint64_t*)(audioMixerAddr + 0x18);
|
||||||
int nAudioStreams = *(uint64_t*)(audioMixerAddr + 0x20);
|
int nAudioStreams = *(uint64_t*)(audioMixerAddr + 0x20);
|
||||||
@@ -279,6 +289,9 @@ namespace TLAC::Components
|
|||||||
InjectCode(framespeedPatchAddress, origFramespeedOp);
|
InjectCode(framespeedPatchAddress, origFramespeedOp);
|
||||||
InjectCode(ageageHairPatchAddress, origAgeageHairOp);
|
InjectCode(ageageHairPatchAddress, origAgeageHairOp);
|
||||||
|
|
||||||
|
*deltaFrameHistoryAddress = origDeltaFrameHistory;
|
||||||
|
*deltaFrameHistoryIntAddress = origDeltaFrameHistoryInt;
|
||||||
|
|
||||||
uint64_t audioMixerAddr = *(uint64_t*)(AUDIO_MAIN_CLASS_ADDRESS + 0x70);
|
uint64_t audioMixerAddr = *(uint64_t*)(AUDIO_MAIN_CLASS_ADDRESS + 0x70);
|
||||||
uint64_t audioStreamsAddress = *(uint64_t*)(audioMixerAddr + 0x18);
|
uint64_t audioStreamsAddress = *(uint64_t*)(audioMixerAddr + 0x18);
|
||||||
int nAudioStreams = *(uint64_t*)(audioMixerAddr + 0x20);
|
int nAudioStreams = *(uint64_t*)(audioMixerAddr + 0x20);
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ namespace TLAC::Components
|
|||||||
|
|
||||||
static std::vector<uint8_t> origFramespeedOp;
|
static std::vector<uint8_t> origFramespeedOp;
|
||||||
static uint8_t* framespeedPatchAddress;
|
static uint8_t* framespeedPatchAddress;
|
||||||
|
static float_t origDeltaFrameHistory;
|
||||||
|
static int32_t origDeltaFrameHistoryInt;
|
||||||
|
static float_t* deltaFrameHistoryAddress;
|
||||||
|
static int32_t* deltaFrameHistoryIntAddress;
|
||||||
|
|
||||||
static std::vector<uint8_t> origAgeageHairOp;
|
static std::vector<uint8_t> origAgeageHairOp;
|
||||||
static uint8_t* ageageHairPatchAddress;
|
static uint8_t* ageageHairPatchAddress;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ constexpr uint8_t JNE_OPCODE = 0x85;
|
|||||||
|
|
||||||
//constexpr uint64_t ENGINE_UPDATE_HOOK_TARGET_ADDRESS = 0x000000014018CC40;
|
//constexpr uint64_t ENGINE_UPDATE_HOOK_TARGET_ADDRESS = 0x000000014018CC40;
|
||||||
constexpr uint64_t ENGINE_UPDATE_INPUT_ADDRESS = 0x000000014018CBB0;
|
constexpr uint64_t ENGINE_UPDATE_INPUT_ADDRESS = 0x000000014018CBB0;
|
||||||
constexpr uint64_t ENGINE_DRAW_2D_ADDRESS = 0x0000000140501F70;
|
constexpr uint64_t ENGINE_STAGE_DISP_SHADOW_ADDRESS = 0x0000000140649840;
|
||||||
constexpr uint64_t ENGINE_FINISH_DRAW_ADDRESS = 0x0000000140192730;
|
constexpr uint64_t ENGINE_FINISH_DRAW_ADDRESS = 0x0000000140192730;
|
||||||
|
|
||||||
constexpr uint64_t CURRENT_GAME_STATE_ADDRESS = 0x0000000140EDA810;
|
constexpr uint64_t CURRENT_GAME_STATE_ADDRESS = 0x0000000140EDA810;
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#include "DVLBinding.h"
|
||||||
|
|
||||||
|
namespace TLAC::Input
|
||||||
|
{
|
||||||
|
#define DivallerInstanceCheckDefault(checkFunc) (Divaller::InstanceInitialized() ? Divaller::GetInstance()->checkFunc : false)
|
||||||
|
|
||||||
|
DivallerBinding::DivallerBinding(DivallerButton button) : Button(button)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
DivallerBinding::~DivallerBinding()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DivallerBinding::IsDown()
|
||||||
|
{
|
||||||
|
return DivallerInstanceCheckDefault(IsDown(Button));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DivallerBinding::IsTapped()
|
||||||
|
{
|
||||||
|
return DivallerInstanceCheckDefault(IsTapped(Button));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DivallerBinding::IsReleased()
|
||||||
|
{
|
||||||
|
return DivallerInstanceCheckDefault(IsReleased(Button));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "IInputBinding.h"
|
||||||
|
#include "../Divaller/Divaller.h"
|
||||||
|
|
||||||
|
namespace TLAC::Input
|
||||||
|
{
|
||||||
|
class DivallerBinding : public IInputBinding
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
DivallerButton Button;
|
||||||
|
|
||||||
|
DivallerBinding(DivallerButton button);
|
||||||
|
~DivallerBinding();
|
||||||
|
|
||||||
|
bool IsDown() override;
|
||||||
|
bool IsTapped() override;
|
||||||
|
bool IsReleased() override;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -21,7 +21,9 @@ namespace TLAC::Input
|
|||||||
// Hori F2nd Miniboard (Hatsune Miku Sho): {00490F0D-0000-0000-0000-504944564944}
|
// Hori F2nd Miniboard (Hatsune Miku Sho): {00490F0D-0000-0000-0000-504944564944}
|
||||||
{ 0x00490F0D, 0x0000, 0x0000, { 0x00, 0x00, 0x50, 0x49, 0x44, 0x56, 0x49, 0x44 } },
|
{ 0x00490F0D, 0x0000, 0x0000, { 0x00, 0x00, 0x50, 0x49, 0x44, 0x56, 0x49, 0x44 } },
|
||||||
// Hori FT Senyou: {013C0F0D-0000-0000-0000-504944564944}
|
// Hori FT Senyou: {013C0F0D-0000-0000-0000-504944564944}
|
||||||
{ 0x013C0F0D, 0x0000, 0x0000, { 0x00, 0x00, 0x50, 0x49, 0x44, 0x56, 0x49, 0x44 } }
|
{ 0x013C0F0D, 0x0000, 0x0000, { 0x00, 0x00, 0x50, 0x49, 0x44, 0x56, 0x49, 0x44 } },
|
||||||
|
// HORI HATSUNE MIKU 39S CONTROLLER: {00FB0F0D-0000-0000-0000-504944564944}
|
||||||
|
{ 0x00FB0F0D, 0x0000, 0x0000, { 0x00, 0x00, 0x50, 0x49, 0x44, 0x56, 0x49, 0x44 } }
|
||||||
};
|
};
|
||||||
|
|
||||||
class DualShock4 : public Controller, public IInputDevice
|
class DualShock4 : public Controller, public IInputDevice
|
||||||
@@ -72,4 +74,4 @@ namespace TLAC::Input
|
|||||||
bool MatchesDirection(Joystick joystick, Direction directionEnum, float threshold);
|
bool MatchesDirection(Joystick joystick, Direction directionEnum, float threshold);
|
||||||
bool GetButtonState(Ds4State &state, Ds4Button button);
|
bool GetButtonState(Ds4State &state, Ds4Button button);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,272 @@
|
|||||||
|
#include "Divaller.h"
|
||||||
|
#include "../../framework.h"
|
||||||
|
#include "DivallerButton.h"
|
||||||
|
#include "DivallerState.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
namespace TLAC::Input
|
||||||
|
{
|
||||||
|
Divaller *Divaller::instance;
|
||||||
|
|
||||||
|
Divaller::Divaller()
|
||||||
|
{
|
||||||
|
memset(outputBuffer, 0, sizeof(outputBuffer));
|
||||||
|
outputBuffer[0] = 0x44;
|
||||||
|
outputBuffer[1] = 0x4c;
|
||||||
|
outputBuffer[2] = 0x61;
|
||||||
|
}
|
||||||
|
|
||||||
|
Divaller::~Divaller()
|
||||||
|
{
|
||||||
|
CloseHandle(hDeviceHandle);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::TryInitializeInstance()
|
||||||
|
{
|
||||||
|
if (InstanceInitialized())
|
||||||
|
return true;
|
||||||
|
|
||||||
|
Divaller *divaller = new Divaller();
|
||||||
|
|
||||||
|
BOOL success = divaller->Initialize();
|
||||||
|
instance = success ? divaller : nullptr;
|
||||||
|
|
||||||
|
if (!success)
|
||||||
|
delete divaller;
|
||||||
|
|
||||||
|
return success;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::Initialize()
|
||||||
|
{
|
||||||
|
HDEVINFO hDevInfo = SetupDiGetClassDevs(&GUID_DEVINTERFACE_USB_DEVICE, NULL, NULL, DIGCF_PRESENT | DIGCF_DEVICEINTERFACE);
|
||||||
|
if (hDevInfo == INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
printf("[TLAC] Divaller::Initialize(): SetupDiGetClassDevs returned INVALID_HANDLE_VALUE\n");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
LPCWSTR devPath = NULL;
|
||||||
|
for (size_t i = 0;; i++)
|
||||||
|
{
|
||||||
|
SP_DEVICE_INTERFACE_DATA device_interface_data = {0};
|
||||||
|
device_interface_data.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
|
||||||
|
BOOL success = SetupDiEnumDeviceInterfaces(
|
||||||
|
hDevInfo,
|
||||||
|
NULL,
|
||||||
|
&GUID_DEVINTERFACE_USB_DEVICE,
|
||||||
|
(DWORD)i,
|
||||||
|
&device_interface_data);
|
||||||
|
if (!success)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
ULONG required_length = 0;
|
||||||
|
success = SetupDiGetDeviceInterfaceDetail(
|
||||||
|
hDevInfo,
|
||||||
|
&device_interface_data,
|
||||||
|
NULL,
|
||||||
|
0,
|
||||||
|
&required_length,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
UINT8 *interface_data = (UINT8 *)calloc(required_length, sizeof(UINT8));
|
||||||
|
|
||||||
|
PSP_DEVICE_INTERFACE_DETAIL_DATA device_interface_detail_data = (PSP_DEVICE_INTERFACE_DETAIL_DATA)interface_data;
|
||||||
|
device_interface_detail_data->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA);
|
||||||
|
|
||||||
|
ULONG actual_length = required_length;
|
||||||
|
success = SetupDiGetDeviceInterfaceDetail(
|
||||||
|
hDevInfo,
|
||||||
|
&device_interface_data,
|
||||||
|
device_interface_detail_data,
|
||||||
|
actual_length,
|
||||||
|
&required_length,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
if (!success)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
wcsstr(device_interface_detail_data->DevicePath, L"vid_0e8f") == 0 ||
|
||||||
|
wcsstr(device_interface_detail_data->DevicePath, L"pid_2213") == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
devPath = device_interface_detail_data->DevicePath;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (devPath == NULL)
|
||||||
|
{
|
||||||
|
SetupDiDestroyDeviceInfoList(hDevInfo);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
hDeviceHandle = CreateFile(
|
||||||
|
devPath,
|
||||||
|
GENERIC_READ | GENERIC_WRITE,
|
||||||
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
|
NULL,
|
||||||
|
OPEN_EXISTING,
|
||||||
|
FILE_FLAG_OVERLAPPED,
|
||||||
|
NULL);
|
||||||
|
if (hDeviceHandle == INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
printf("[TLAC] Divaller::Initialize(): Open device failed.\n");
|
||||||
|
SetupDiDestroyDeviceInfoList(hDevInfo);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!WinUsb_Initialize(hDeviceHandle, &hInterfaceHandle))
|
||||||
|
{
|
||||||
|
printf("[TLAC] Divaller::Initialize(): WinUsb_Initialize failed.\n");
|
||||||
|
std::cout << GetLastError() << std::endl;
|
||||||
|
SetupDiDestroyDeviceInfoList(hDevInfo);
|
||||||
|
CloseHandle(hDeviceHandle);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
USB_INTERFACE_DESCRIPTOR USBInterfaceDescriptor;
|
||||||
|
if (!WinUsb_QueryInterfaceSettings(hInterfaceHandle, 0, &USBInterfaceDescriptor))
|
||||||
|
{
|
||||||
|
std::cout << GetLastError() << std::endl;
|
||||||
|
SetupDiDestroyDeviceInfoList(hDevInfo);
|
||||||
|
CloseHandle(hDeviceHandle);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
SetupDiDestroyDeviceInfoList(hDevInfo);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::PollInput()
|
||||||
|
{
|
||||||
|
lastState = currentState;
|
||||||
|
ULONG len = 0;
|
||||||
|
memset(currentState.state, 0, sizeof(currentState.state));
|
||||||
|
BOOL bResult = WinUsb_ReadPipe(hInterfaceHandle, (UCHAR)132, currentState.state, _countof(currentState.state), &len, nullptr);
|
||||||
|
if (!bResult || currentState.state[0] != 0x42 || currentState.state[1] != 0x56 || currentState.state[2] != 0x5a)
|
||||||
|
{
|
||||||
|
printf("[TLAC] Divaller::PollInput(): WinUsb_ReadPipe failed.\n");
|
||||||
|
std::cout << GetLastError() << std::endl;
|
||||||
|
}
|
||||||
|
SetLED();
|
||||||
|
return bResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::SetLED()
|
||||||
|
{
|
||||||
|
outputBuffer[3] &= 0x0F; // Reset Button LED
|
||||||
|
outputBuffer[3] |= (!(*buttonLed >> 1 & 0x0001)) << 4; // SQUARE
|
||||||
|
outputBuffer[3] |= (!(*buttonLed >> 3 & 0x0001)) << 5; // CIRCLE
|
||||||
|
outputBuffer[3] |= (!(*buttonLed & 0x0001)) << 6; // TRIANGLE
|
||||||
|
outputBuffer[3] |= (!(*buttonLed >> 2 & 0x0001)) << 7; // CROSS
|
||||||
|
if (*sliderLedInit && !sliderLedData)
|
||||||
|
{
|
||||||
|
sliderLedData = reinterpret_cast<UCHAR *>(*(uint64_t *)(0x14cc5de40 + 0x68) + 0x189c);
|
||||||
|
}
|
||||||
|
if (sliderLedData)
|
||||||
|
{
|
||||||
|
for (int n = 0; n < 32; n++)
|
||||||
|
{
|
||||||
|
// LED number + 3 bytes header + color offset
|
||||||
|
outputBuffer[(31 - n) * 3 + 3 + 3] = sliderLedData[n * 3 + 1]; // BLUE
|
||||||
|
outputBuffer[(31 - n) * 3 + 3 + 2] = sliderLedData[n * 3 + 2]; // RED
|
||||||
|
outputBuffer[(31 - n) * 3 + 3 + 1] = sliderLedData[n * 3 + 3]; // GREEN
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ULONG len = 0;
|
||||||
|
BOOL bResult = WinUsb_WritePipe(hInterfaceHandle, (UCHAR)0x03, outputBuffer, 100, &len, NULL);
|
||||||
|
if (!bResult)
|
||||||
|
{
|
||||||
|
printf("[TLAC] Divaller::SetLED(): WinUsb_WritePipe failed.\n");
|
||||||
|
std::cout << GetLastError() << std::endl;
|
||||||
|
}
|
||||||
|
return bResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::IsDown(DivallerButton button)
|
||||||
|
{
|
||||||
|
switch (button)
|
||||||
|
{
|
||||||
|
case DivallerButton::DVL_L1:
|
||||||
|
return (currentState.state[5] >> 0) & 1;
|
||||||
|
case DivallerButton::DVL_L2:
|
||||||
|
return (currentState.state[4] >> 7) & 1;
|
||||||
|
case DivallerButton::DVL_L3:
|
||||||
|
return (currentState.state[4] >> 6) & 1;
|
||||||
|
case DivallerButton::DVL_FN:
|
||||||
|
return (currentState.state[3] >> 1) & 1;
|
||||||
|
case DivallerButton::DVL_TRIANGLE:
|
||||||
|
return (currentState.state[3] >> 4) & 1;
|
||||||
|
case DivallerButton::DVL_SQUARE:
|
||||||
|
return (currentState.state[3] >> 2) & 1;
|
||||||
|
case DivallerButton::DVL_CROSS:
|
||||||
|
return (currentState.state[3] >> 5) & 1;
|
||||||
|
case DivallerButton::DVL_CIRCLE:
|
||||||
|
return (currentState.state[3] >> 3) & 1;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::IsUp(DivallerButton button)
|
||||||
|
{
|
||||||
|
return !IsDown(button);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::IsTapped(DivallerButton button)
|
||||||
|
{
|
||||||
|
return IsDown(button) && WasUp(button);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::IsReleased(DivallerButton button)
|
||||||
|
{
|
||||||
|
return IsUp(button) && WasDown(button);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::WasDown(DivallerButton button)
|
||||||
|
{
|
||||||
|
switch (button)
|
||||||
|
{
|
||||||
|
case DivallerButton::DVL_L1:
|
||||||
|
return (lastState.state[5] >> 0) & 1;
|
||||||
|
case DivallerButton::DVL_L2:
|
||||||
|
return (lastState.state[4] >> 7) & 1;
|
||||||
|
case DivallerButton::DVL_L3:
|
||||||
|
return (lastState.state[4] >> 6) & 1;
|
||||||
|
case DivallerButton::DVL_FN:
|
||||||
|
return (lastState.state[3] >> 1) & 1;
|
||||||
|
case DivallerButton::DVL_TRIANGLE:
|
||||||
|
return (lastState.state[3] >> 4) & 1;
|
||||||
|
case DivallerButton::DVL_SQUARE:
|
||||||
|
return (lastState.state[3] >> 2) & 1;
|
||||||
|
case DivallerButton::DVL_CROSS:
|
||||||
|
return (lastState.state[3] >> 5) & 1;
|
||||||
|
case DivallerButton::DVL_CIRCLE:
|
||||||
|
return (lastState.state[3] >> 3) & 1;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Divaller::WasUp(DivallerButton button)
|
||||||
|
{
|
||||||
|
return !WasDown(button);
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t Divaller::GetSlider()
|
||||||
|
{
|
||||||
|
uint32_t i = 0;
|
||||||
|
i |= currentState.state[5] >> 4;
|
||||||
|
i |= currentState.state[6] << 4;
|
||||||
|
i |= currentState.state[7] << 12;
|
||||||
|
i |= currentState.state[8] << 20;
|
||||||
|
i |= currentState.state[9] << 28;
|
||||||
|
// Reverse the bit order of uint32
|
||||||
|
i = (i & 0xaaaaaaaa) >> 1 | (i & 0x55555555) << 1;
|
||||||
|
i = (i & 0xcccccccc) >> 2 | (i & 0x33333333) << 2;
|
||||||
|
i = (i & 0xf0f0f0f0) >> 4 | (i & 0x0f0f0f0f) << 4;
|
||||||
|
i = (i & 0xff00ff00) >> 8 | (i & 0x00ff00ff) << 8;
|
||||||
|
return i >> 16 | i << 16;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "../IInputDevice.h"
|
||||||
|
#include "DivallerState.h"
|
||||||
|
#include "DivallerButton.h"
|
||||||
|
#include <SetupAPI.h>
|
||||||
|
#include <initguid.h>
|
||||||
|
#include <usbiodef.h>
|
||||||
|
#include <winusb.h>
|
||||||
|
|
||||||
|
namespace TLAC::Input
|
||||||
|
{
|
||||||
|
|
||||||
|
class Divaller : public IInputDevice
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Divaller();
|
||||||
|
~Divaller();
|
||||||
|
|
||||||
|
static bool TryInitializeInstance();
|
||||||
|
|
||||||
|
bool Initialize();
|
||||||
|
bool PollInput() override;
|
||||||
|
bool SetLED();
|
||||||
|
bool IsDown(DivallerButton button);
|
||||||
|
bool IsUp(DivallerButton button);
|
||||||
|
bool IsTapped(DivallerButton button);
|
||||||
|
bool IsReleased(DivallerButton button);
|
||||||
|
|
||||||
|
bool WasDown(DivallerButton button);
|
||||||
|
bool WasUp(DivallerButton button);
|
||||||
|
uint32_t GetSlider();
|
||||||
|
static inline bool InstanceInitialized() { return instance != nullptr; };
|
||||||
|
static inline Divaller *GetInstance() { return instance; };
|
||||||
|
static inline void DeleteInstance()
|
||||||
|
{
|
||||||
|
delete instance;
|
||||||
|
instance = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
private:
|
||||||
|
static Divaller *instance;
|
||||||
|
DivallerState lastState;
|
||||||
|
DivallerState currentState;
|
||||||
|
WINUSB_INTERFACE_HANDLE hInterfaceHandle;
|
||||||
|
HANDLE hDeviceHandle;
|
||||||
|
UCHAR outputBuffer[100];
|
||||||
|
int *buttonLed = reinterpret_cast<int *>(0x14119b950);
|
||||||
|
uint64_t *partionLed = reinterpret_cast<uint64_t *>(*(uint64_t *)0x140eda330 + 0xc9);
|
||||||
|
uint64_t *sliderLedInit = reinterpret_cast<uint64_t *>((uint64_t *)0x14cc5dea8);
|
||||||
|
UCHAR *sliderLedData = nullptr;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace TLAC::Input
|
||||||
|
{
|
||||||
|
enum DivallerButton : int
|
||||||
|
{
|
||||||
|
DVL_SQUARE = 0,
|
||||||
|
DVL_CROSS = 1,
|
||||||
|
DVL_CIRCLE = 2,
|
||||||
|
DVL_TRIANGLE = 3,
|
||||||
|
|
||||||
|
DVL_FN = 4,
|
||||||
|
|
||||||
|
DVL_L1 = 5,
|
||||||
|
DVL_L2 = 6,
|
||||||
|
DVL_L3 = 7,
|
||||||
|
|
||||||
|
DVL_R1 = 8,
|
||||||
|
DVL_R2 = 9,
|
||||||
|
DVL_R3 = 10,
|
||||||
|
|
||||||
|
DVL_UP = 11,
|
||||||
|
DVL_LEFT = 12,
|
||||||
|
DVL_DOWN = 13,
|
||||||
|
DVL_RIGHT = 14,
|
||||||
|
|
||||||
|
DVL_PAD = 11,
|
||||||
|
DVL_SHARE = 12,
|
||||||
|
DVL_HOME = 13,
|
||||||
|
DVL_OPTION = 14
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
#pragma once
|
||||||
|
#include "../../framework.h"
|
||||||
|
namespace TLAC::Input
|
||||||
|
{
|
||||||
|
|
||||||
|
struct DivallerState
|
||||||
|
{
|
||||||
|
uint8_t state[24];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -26,9 +26,6 @@ namespace TLAC::Input::KeyConfig
|
|||||||
{ "Minus", VK_SUBTRACT },
|
{ "Minus", VK_SUBTRACT },
|
||||||
{ "Divide", VK_DIVIDE },
|
{ "Divide", VK_DIVIDE },
|
||||||
{ "Multiply", VK_MULTIPLY },
|
{ "Multiply", VK_MULTIPLY },
|
||||||
{ "Comma", VK_OEM_COMMA },
|
|
||||||
{ "Period", VK_OEM_PERIOD },
|
|
||||||
{ "Slash", VK_OEM_2 },
|
|
||||||
// F-Keys
|
// F-Keys
|
||||||
{ "F1", VK_F1 },
|
{ "F1", VK_F1 },
|
||||||
{ "F2", VK_F2 },
|
{ "F2", VK_F2 },
|
||||||
@@ -91,7 +88,14 @@ namespace TLAC::Input::KeyConfig
|
|||||||
{ "Escape", VK_ESCAPE },
|
{ "Escape", VK_ESCAPE },
|
||||||
{ "Comma", VK_OEM_COMMA },
|
{ "Comma", VK_OEM_COMMA },
|
||||||
{ "Period", VK_OEM_PERIOD },
|
{ "Period", VK_OEM_PERIOD },
|
||||||
|
{ "Colon", VK_OEM_1 },
|
||||||
{ "Slash", VK_OEM_2 },
|
{ "Slash", VK_OEM_2 },
|
||||||
|
{ "Tilde", VK_OEM_3 },
|
||||||
|
{ "LeftBracket", VK_OEM_4 },
|
||||||
|
{ "Backslash", VK_OEM_5 },
|
||||||
|
{ "RightBracket", VK_OEM_6 },
|
||||||
|
{ "SingleDoubleQuote", VK_OEM_7 },
|
||||||
|
{ "OEM_8", VK_OEM_8 },
|
||||||
// Mouse buttons
|
// Mouse buttons
|
||||||
{ "MouseLeft", VK_LBUTTON },
|
{ "MouseLeft", VK_LBUTTON },
|
||||||
{ "MouseMiddle", VK_MBUTTON },
|
{ "MouseMiddle", VK_MBUTTON },
|
||||||
|
|||||||
@@ -1,231 +1,237 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|x64">
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
<Platform>x64</Platform>
|
<Platform>x64</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
<ProjectConfiguration Include="Release|x64">
|
<ProjectConfiguration Include="Release|x64">
|
||||||
<Configuration>Release</Configuration>
|
<Configuration>Release</Configuration>
|
||||||
<Platform>x64</Platform>
|
<Platform>x64</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<VCProjectVersion>16.0</VCProjectVersion>
|
<VCProjectVersion>16.0</VCProjectVersion>
|
||||||
<ProjectGuid>{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}</ProjectGuid>
|
<ProjectGuid>{2B5533BB-04A1-424F-9BCA-1CA963B46B7F}</ProjectGuid>
|
||||||
<Keyword>Win32Proj</Keyword>
|
<Keyword>Win32Proj</Keyword>
|
||||||
<RootNamespace>TLAC</RootNamespace>
|
<RootNamespace>TLAC</RootNamespace>
|
||||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>true</UseDebugLibraries>
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
<UseDebugLibraries>false</UseDebugLibraries>
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
<PlatformToolset>v142</PlatformToolset>
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
<CharacterSet>Unicode</CharacterSet>
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
<ImportGroup Label="ExtensionSettings">
|
<ImportGroup Label="ExtensionSettings">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="Shared">
|
<ImportGroup Label="Shared">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<LinkIncremental>false</LinkIncremental>
|
<LinkIncremental>false</LinkIncremental>
|
||||||
<TargetName>$(ProjectName)</TargetName>
|
<TargetName>$(ProjectName)</TargetName>
|
||||||
<TargetExt>.dva</TargetExt>
|
<TargetExt>.dva</TargetExt>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<LinkIncremental>true</LinkIncremental>
|
<LinkIncremental>true</LinkIncremental>
|
||||||
<TargetName>$(ProjectName)</TargetName>
|
<TargetName>$(ProjectName)</TargetName>
|
||||||
<TargetExt>.dva</TargetExt>
|
<TargetExt>.dva</TargetExt>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>MaxSpeed</Optimization>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>NDEBUG;TLAC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;TLAC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>
|
||||||
</PrecompiledHeaderFile>
|
</PrecompiledHeaderFile>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\detours\include;..\..\..\dependencies\freeglut\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\detours\include;..\..\..\dependencies\freeglut\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||||
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<AdditionalDependencies>XINPUT9_1_0.LIB;dinput8.lib;dxguid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>XINPUT9_1_0.LIB;dinput8.lib;dxguid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;Winusb.lib;Setupapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<IgnoreSpecificDefaultLibraries>Xinput.h</IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>Xinput.h</IgnoreSpecificDefaultLibraries>
|
||||||
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<PreprocessorDefinitions>_DEBUG;TLAC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>_DEBUG;TLAC_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<ConformanceMode>true</ConformanceMode>
|
<ConformanceMode>true</ConformanceMode>
|
||||||
<PrecompiledHeaderFile>
|
<PrecompiledHeaderFile>
|
||||||
</PrecompiledHeaderFile>
|
</PrecompiledHeaderFile>
|
||||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\detours\include;..\..\..\dependencies\freeglut\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
<AdditionalIncludeDirectories>..\..\..\dependencies\PluginConfigApi;..\..\..\dependencies\detours\include;..\..\..\dependencies\freeglut\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Windows</SubSystem>
|
<SubSystem>Windows</SubSystem>
|
||||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
<EnableUAC>false</EnableUAC>
|
<EnableUAC>false</EnableUAC>
|
||||||
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
<AdditionalLibraryDirectories>..\..\..\dependencies\detours\lib;..\..\..\dependencies\freeglut\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
|
||||||
<AdditionalDependencies>XINPUT9_1_0.LIB;dinput8.lib;dxguid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
<AdditionalDependencies>XINPUT9_1_0.LIB;dinput8.lib;dxguid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
<IgnoreSpecificDefaultLibraries>Xinput.h</IgnoreSpecificDefaultLibraries>
|
<IgnoreSpecificDefaultLibraries>Xinput.h</IgnoreSpecificDefaultLibraries>
|
||||||
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
<AdditionalOptions>-d2:-FH4- %(AdditionalOptions)</AdditionalOptions>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="Components\CameraController.h" />
|
<ClInclude Include="Components\CameraController.h" />
|
||||||
<ClInclude Include="Components\ComponentsManager.h" />
|
<ClInclude Include="Components\ComponentsManager.h" />
|
||||||
<ClInclude Include="Components\CustomPlayerData.h" />
|
<ClInclude Include="Components\CustomPlayerData.h" />
|
||||||
<ClInclude Include="Components\DebugComponent.h" />
|
<ClInclude Include="Components\DebugComponent.h" />
|
||||||
<ClInclude Include="Components\EmulatorComponent.h" />
|
<ClInclude Include="Components\EmulatorComponent.h" />
|
||||||
<ClInclude Include="Components\FastLoader.h" />
|
<ClInclude Include="Components\FastLoader.h" />
|
||||||
<ClInclude Include="Components\FrameRateManager.h" />
|
<ClInclude Include="Components\FrameRateManager.h" />
|
||||||
<ClInclude Include="Components\GameState.h" />
|
<ClInclude Include="Components\GameState.h" />
|
||||||
<ClInclude Include="Components\GameTargets\HoldState.h" />
|
<ClInclude Include="Components\GameTargets\HoldState.h" />
|
||||||
<ClInclude Include="Components\GameTargets\TargetHitStates.h" />
|
<ClInclude Include="Components\GameTargets\TargetHitStates.h" />
|
||||||
<ClInclude Include="Components\GameTargets\TargetInspector.h" />
|
<ClInclude Include="Components\GameTargets\TargetInspector.h" />
|
||||||
<ClInclude Include="Components\GameTargets\TargetState.h" />
|
<ClInclude Include="Components\GameTargets\TargetState.h" />
|
||||||
<ClInclude Include="Components\GameTargets\TargetTypes.h" />
|
<ClInclude Include="Components\GameTargets\TargetTypes.h" />
|
||||||
<ClInclude Include="Components\Input\InputBufferType.h" />
|
<ClInclude Include="Components\Input\InputBufferType.h" />
|
||||||
<ClInclude Include="Components\Input\InputEmulator.h" />
|
<ClInclude Include="Components\Input\InputEmulator.h" />
|
||||||
<ClInclude Include="Components\Input\InputState.h" />
|
<ClInclude Include="Components\Input\InputState.h" />
|
||||||
<ClInclude Include="Components\Input\JvsButtons.h" />
|
<ClInclude Include="Components\Input\JvsButtons.h" />
|
||||||
<ClInclude Include="Components\Input\TouchPanelEmulator.h" />
|
<ClInclude Include="Components\Input\TouchPanelEmulator.h" />
|
||||||
<ClInclude Include="Components\Input\TouchPanelState.h" />
|
<ClInclude Include="Components\Input\TouchPanelState.h" />
|
||||||
<ClInclude Include="Components\Input\TouchSliderEmulator.h" />
|
<ClInclude Include="Components\Input\TouchSliderEmulator.h" />
|
||||||
<ClInclude Include="Components\Input\TouchSliderState.h" />
|
<ClInclude Include="Components\Input\TouchSliderState.h" />
|
||||||
<ClInclude Include="Components\Pause.h" />
|
<ClInclude Include="Components\Pause.h" />
|
||||||
<ClInclude Include="Components\PlayerData.h" />
|
<ClInclude Include="Components\PlayerData.h" />
|
||||||
<ClInclude Include="Components\PlayerDataManager.h" />
|
<ClInclude Include="Components\PlayerDataManager.h" />
|
||||||
<ClInclude Include="Components\ScaleComponent.h" />
|
<ClInclude Include="Components\ScaleComponent.h" />
|
||||||
<ClInclude Include="Components\ScoreSaver.h" />
|
<ClInclude Include="Components\ScoreSaver.h" />
|
||||||
<ClInclude Include="Constants.h" />
|
<ClInclude Include="Constants.h" />
|
||||||
<ClInclude Include="FileSystem\ConfigFile.h" />
|
<ClInclude Include="FileSystem\ConfigFile.h" />
|
||||||
<ClInclude Include="FileSystem\TextFile.h" />
|
<ClInclude Include="FileSystem\TextFile.h" />
|
||||||
<ClInclude Include="framework.h" />
|
<ClInclude Include="framework.h" />
|
||||||
<ClInclude Include="Input\Bindings\Binding.h" />
|
<ClInclude Include="Input\Bindings\Binding.h" />
|
||||||
<ClInclude Include="Input\Bindings\Ds4Binding.h" />
|
<ClInclude Include="Input\Bindings\Ds4Binding.h" />
|
||||||
<ClInclude Include="Input\Bindings\GuBinding.h" />
|
<ClInclude Include="Input\Bindings\DVLBinding.h" />
|
||||||
<ClInclude Include="Input\Bindings\IInputBinding.h" />
|
<ClInclude Include="Input\Bindings\GuBinding.h" />
|
||||||
<ClInclude Include="Input\Bindings\KeyboardBinding.h" />
|
<ClInclude Include="Input\Bindings\IInputBinding.h" />
|
||||||
<ClInclude Include="Input\Bindings\MouseBinding.h" />
|
<ClInclude Include="Input\Bindings\KeyboardBinding.h" />
|
||||||
<ClInclude Include="Input\Bindings\XinputBinding.h" />
|
<ClInclude Include="Input\Bindings\MouseBinding.h" />
|
||||||
<ClInclude Include="Input\DirectInput\Controller.h" />
|
<ClInclude Include="Input\Bindings\XinputBinding.h" />
|
||||||
<ClInclude Include="Input\DirectInput\DirectInput.h" />
|
<ClInclude Include="Input\DirectInput\Controller.h" />
|
||||||
<ClInclude Include="Input\DirectInput\DirectInputDevice.h" />
|
<ClInclude Include="Input\DirectInput\DirectInput.h" />
|
||||||
<ClInclude Include="Input\DirectInput\DirectInputMouse.h" />
|
<ClInclude Include="Input\DirectInput\DirectInputDevice.h" />
|
||||||
<ClInclude Include="Input\DirectInput\Ds4\Ds4Button.h" />
|
<ClInclude Include="Input\DirectInput\DirectInputMouse.h" />
|
||||||
<ClInclude Include="Input\DirectInput\Ds4\Ds4State.h" />
|
<ClInclude Include="Input\DirectInput\Ds4\Ds4Button.h" />
|
||||||
<ClInclude Include="Input\DirectInput\Ds4\DualShock4.h" />
|
<ClInclude Include="Input\DirectInput\Ds4\Ds4State.h" />
|
||||||
<ClInclude Include="Input\DirectInput\GenericUsb\GenericUsbInput.h" />
|
<ClInclude Include="Input\DirectInput\Ds4\DualShock4.h" />
|
||||||
<ClInclude Include="Input\DirectInput\GenericUsb\GuButton.h" />
|
<ClInclude Include="Input\DirectInput\GenericUsb\GenericUsbInput.h" />
|
||||||
<ClInclude Include="Input\DirectInput\GenericUsb\GuState.h" />
|
<ClInclude Include="Input\DirectInput\GenericUsb\GuButton.h" />
|
||||||
<ClInclude Include="Input\IInputDevice.h" />
|
<ClInclude Include="Input\DirectInput\GenericUsb\GuState.h" />
|
||||||
<ClInclude Include="Input\Keyboard\Keyboard.h" />
|
<ClInclude Include="Input\Divaller\Divaller.h" />
|
||||||
<ClInclude Include="Input\Keyboard\KeyboardState.h" />
|
<ClInclude Include="Input\Divaller\DivallerButton.h" />
|
||||||
<ClInclude Include="Input\KeyConfig\Config.h" />
|
<ClInclude Include="Input\Divaller\DivallerState.h" />
|
||||||
<ClInclude Include="Input\KeyConfig\KeyString.h" />
|
<ClInclude Include="Input\IInputDevice.h" />
|
||||||
<ClInclude Include="Input\KeyConfig\KeyStringHash.h" />
|
<ClInclude Include="Input\Keyboard\Keyboard.h" />
|
||||||
<ClInclude Include="Input\Mouse\Mouse.h" />
|
<ClInclude Include="Input\Keyboard\KeyboardState.h" />
|
||||||
<ClInclude Include="Input\Mouse\MouseState.h" />
|
<ClInclude Include="Input\KeyConfig\Config.h" />
|
||||||
<ClInclude Include="Input\Xinput\Xinput.h" />
|
<ClInclude Include="Input\KeyConfig\KeyString.h" />
|
||||||
<ClInclude Include="Input\Xinput\XinputState.h" />
|
<ClInclude Include="Input\KeyConfig\KeyStringHash.h" />
|
||||||
<ClInclude Include="pluginconfig.h" />
|
<ClInclude Include="Input\Mouse\Mouse.h" />
|
||||||
<ClInclude Include="Utilities\Drawing.h" />
|
<ClInclude Include="Input\Mouse\MouseState.h" />
|
||||||
<ClInclude Include="Utilities\EnumBitwiseOperations.h" />
|
<ClInclude Include="Input\Xinput\Xinput.h" />
|
||||||
<ClInclude Include="Utilities\Math.h" />
|
<ClInclude Include="Input\Xinput\XinputState.h" />
|
||||||
<ClInclude Include="Utilities\Operations.h" />
|
<ClInclude Include="pluginconfig.h" />
|
||||||
<ClInclude Include="Utilities\Stopwatch.h" />
|
<ClInclude Include="Utilities\Drawing.h" />
|
||||||
<ClInclude Include="Utilities\Vec2.h" />
|
<ClInclude Include="Utilities\EnumBitwiseOperations.h" />
|
||||||
<ClInclude Include="Utilities\Vec3.h" />
|
<ClInclude Include="Utilities\Math.h" />
|
||||||
<ClInclude Include="Utils.h" />
|
<ClInclude Include="Utilities\Operations.h" />
|
||||||
</ItemGroup>
|
<ClInclude Include="Utilities\Stopwatch.h" />
|
||||||
<ItemGroup>
|
<ClInclude Include="Utilities\Vec2.h" />
|
||||||
<ClCompile Include="Components\CameraController.cpp" />
|
<ClInclude Include="Utilities\Vec3.h" />
|
||||||
<ClCompile Include="Components\ComponentsManager.cpp" />
|
<ClInclude Include="Utils.h" />
|
||||||
<ClCompile Include="Components\DebugComponent.cpp" />
|
</ItemGroup>
|
||||||
<ClCompile Include="Components\EmulatorComponent.cpp" />
|
<ItemGroup>
|
||||||
<ClCompile Include="Components\FastLoader.cpp" />
|
<ClCompile Include="Components\CameraController.cpp" />
|
||||||
<ClCompile Include="Components\FrameRateManager.cpp" />
|
<ClCompile Include="Components\ComponentsManager.cpp" />
|
||||||
<ClCompile Include="Components\GameTargets\TargetInspector.cpp" />
|
<ClCompile Include="Components\DebugComponent.cpp" />
|
||||||
<ClCompile Include="Components\Input\InputEmulator.cpp" />
|
<ClCompile Include="Components\EmulatorComponent.cpp" />
|
||||||
<ClCompile Include="Components\Input\InputState.cpp" />
|
<ClCompile Include="Components\FastLoader.cpp" />
|
||||||
<ClCompile Include="Components\Input\TouchPanelEmulator.cpp" />
|
<ClCompile Include="Components\FrameRateManager.cpp" />
|
||||||
<ClCompile Include="Components\Input\TouchSliderEmulator.cpp" />
|
<ClCompile Include="Components\GameTargets\TargetInspector.cpp" />
|
||||||
<ClCompile Include="Components\Input\TouchSliderState.cpp" />
|
<ClCompile Include="Components\Input\InputEmulator.cpp" />
|
||||||
<ClCompile Include="Components\Pause.cpp" />
|
<ClCompile Include="Components\Input\InputState.cpp" />
|
||||||
<ClCompile Include="Components\PlayerDataManager.cpp" />
|
<ClCompile Include="Components\Input\TouchPanelEmulator.cpp" />
|
||||||
<ClCompile Include="Components\ScaleComponent.cpp" />
|
<ClCompile Include="Components\Input\TouchSliderEmulator.cpp" />
|
||||||
<ClCompile Include="Components\ScoreSaver.cpp" />
|
<ClCompile Include="Components\Input\TouchSliderState.cpp" />
|
||||||
<ClCompile Include="dllmain.cpp" />
|
<ClCompile Include="Components\Pause.cpp" />
|
||||||
<ClCompile Include="FileSystem\ConfigFile.cpp" />
|
<ClCompile Include="Components\PlayerDataManager.cpp" />
|
||||||
<ClCompile Include="FileSystem\TextFile.cpp" />
|
<ClCompile Include="Components\ScaleComponent.cpp" />
|
||||||
<ClCompile Include="framework.cpp" />
|
<ClCompile Include="Components\ScoreSaver.cpp" />
|
||||||
<ClCompile Include="Input\Bindings\Binding.cpp" />
|
<ClCompile Include="dllmain.cpp" />
|
||||||
<ClCompile Include="Input\Bindings\Ds4Binding.cpp" />
|
<ClCompile Include="FileSystem\ConfigFile.cpp" />
|
||||||
<ClCompile Include="Input\Bindings\GuBinding.cpp" />
|
<ClCompile Include="FileSystem\TextFile.cpp" />
|
||||||
<ClCompile Include="Input\Bindings\KeyboardBinding.cpp" />
|
<ClCompile Include="framework.cpp" />
|
||||||
<ClCompile Include="Input\Bindings\MouseBinding.cpp" />
|
<ClCompile Include="Input\Bindings\Binding.cpp" />
|
||||||
<ClCompile Include="Input\Bindings\XinputBinding.cpp" />
|
<ClCompile Include="Input\Bindings\Ds4Binding.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\Controller.cpp" />
|
<ClCompile Include="Input\Bindings\DVLBinding.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\DirectInput.cpp" />
|
<ClCompile Include="Input\Bindings\GuBinding.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\DirectInputDevice.cpp" />
|
<ClCompile Include="Input\Bindings\KeyboardBinding.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\DirectInputMouse.cpp" />
|
<ClCompile Include="Input\Bindings\MouseBinding.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\Ds4\Ds4State.cpp" />
|
<ClCompile Include="Input\Bindings\XinputBinding.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\Ds4\DualShock4.cpp" />
|
<ClCompile Include="Input\DirectInput\Controller.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\GenericUsb\GenericUsbInput.cpp" />
|
<ClCompile Include="Input\DirectInput\DirectInput.cpp" />
|
||||||
<ClCompile Include="Input\DirectInput\GenericUsb\GuState.cpp" />
|
<ClCompile Include="Input\DirectInput\DirectInputDevice.cpp" />
|
||||||
<ClCompile Include="Input\Keyboard\Keyboard.cpp" />
|
<ClCompile Include="Input\DirectInput\DirectInputMouse.cpp" />
|
||||||
<ClCompile Include="Input\Keyboard\KeyboardState.cpp" />
|
<ClCompile Include="Input\DirectInput\Ds4\Ds4State.cpp" />
|
||||||
<ClCompile Include="Input\KeyConfig\Config.cpp" />
|
<ClCompile Include="Input\DirectInput\Ds4\DualShock4.cpp" />
|
||||||
<ClCompile Include="Input\KeyConfig\KeyString.cpp" />
|
<ClCompile Include="Input\DirectInput\GenericUsb\GenericUsbInput.cpp" />
|
||||||
<ClCompile Include="Input\KeyConfig\KeyStringHash.cpp" />
|
<ClCompile Include="Input\DirectInput\GenericUsb\GuState.cpp" />
|
||||||
<ClCompile Include="Input\Mouse\Mouse.cpp" />
|
<ClCompile Include="Input\Divaller\Divaller.cpp" />
|
||||||
<ClCompile Include="Input\Xinput\Xinput.cpp" />
|
<ClCompile Include="Input\Keyboard\Keyboard.cpp" />
|
||||||
<ClCompile Include="Input\Xinput\XinputState.cpp" />
|
<ClCompile Include="Input\Keyboard\KeyboardState.cpp" />
|
||||||
<ClCompile Include="Utilities\Drawing.cpp" />
|
<ClCompile Include="Input\KeyConfig\Config.cpp" />
|
||||||
<ClCompile Include="Utilities\Math.cpp" />
|
<ClCompile Include="Input\KeyConfig\KeyString.cpp" />
|
||||||
<ClCompile Include="Utilities\Operations.cpp" />
|
<ClCompile Include="Input\KeyConfig\KeyStringHash.cpp" />
|
||||||
<ClCompile Include="Utilities\Stopwatch.cpp" />
|
<ClCompile Include="Input\Mouse\Mouse.cpp" />
|
||||||
<ClCompile Include="Utilities\Vec2.cpp" />
|
<ClCompile Include="Input\Xinput\Xinput.cpp" />
|
||||||
<ClCompile Include="Utilities\Vec3.cpp" />
|
<ClCompile Include="Input\Xinput\XinputState.cpp" />
|
||||||
<ClCompile Include="Utils.cpp" />
|
<ClCompile Include="Utilities\Drawing.cpp" />
|
||||||
</ItemGroup>
|
<ClCompile Include="Utilities\Math.cpp" />
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<ClCompile Include="Utilities\Operations.cpp" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ClCompile Include="Utilities\Stopwatch.cpp" />
|
||||||
</ImportGroup>
|
<ClCompile Include="Utilities\Vec2.cpp" />
|
||||||
|
<ClCompile Include="Utilities\Vec3.cpp" />
|
||||||
|
<ClCompile Include="Utils.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,366 +1,384 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="Source Files">
|
<Filter Include="Source Files">
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="Header Files">
|
<Filter Include="Header Files">
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
<Extensions>h;hh;hpp;hxx;hm;inl;inc;ipp;xsd</Extensions>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="Resource Files">
|
<Filter Include="Resource Files">
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
<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>
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="framework.h">
|
<ClInclude Include="framework.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Constants.h">
|
<ClInclude Include="Constants.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\CameraController.h">
|
<ClInclude Include="Components\CameraController.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\ComponentsManager.h">
|
<ClInclude Include="Components\ComponentsManager.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\CustomPlayerData.h">
|
<ClInclude Include="Components\CustomPlayerData.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\DebugComponent.h">
|
<ClInclude Include="Components\DebugComponent.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\EmulatorComponent.h">
|
<ClInclude Include="Components\EmulatorComponent.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\FastLoader.h">
|
<ClInclude Include="Components\FastLoader.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\FrameRateManager.h">
|
<ClInclude Include="Components\FrameRateManager.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\GameState.h">
|
<ClInclude Include="Components\GameState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\PlayerData.h">
|
<ClInclude Include="Components\PlayerData.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\PlayerDataManager.h">
|
<ClInclude Include="Components\PlayerDataManager.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\InputBufferType.h">
|
<ClInclude Include="Components\Input\InputBufferType.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\InputEmulator.h">
|
<ClInclude Include="Components\Input\InputEmulator.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\InputState.h">
|
<ClInclude Include="Components\Input\InputState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\JvsButtons.h">
|
<ClInclude Include="Components\Input\JvsButtons.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\TouchPanelEmulator.h">
|
<ClInclude Include="Components\Input\TouchPanelEmulator.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\TouchPanelState.h">
|
<ClInclude Include="Components\Input\TouchPanelState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\TouchSliderEmulator.h">
|
<ClInclude Include="Components\Input\TouchSliderEmulator.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Input\TouchSliderState.h">
|
<ClInclude Include="Components\Input\TouchSliderState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="FileSystem\ConfigFile.h">
|
<ClInclude Include="FileSystem\ConfigFile.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="FileSystem\TextFile.h">
|
<ClInclude Include="FileSystem\TextFile.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Bindings\Binding.h">
|
<ClInclude Include="Input\Bindings\Binding.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Bindings\Ds4Binding.h">
|
<ClInclude Include="Input\Bindings\Ds4Binding.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Bindings\IInputBinding.h">
|
<ClInclude Include="Input\Bindings\IInputBinding.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Bindings\KeyboardBinding.h">
|
<ClInclude Include="Input\Bindings\KeyboardBinding.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Bindings\MouseBinding.h">
|
<ClInclude Include="Input\Bindings\MouseBinding.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\Ds4\Ds4Button.h">
|
<ClInclude Include="Input\DirectInput\Ds4\Ds4Button.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\Ds4\Ds4State.h">
|
<ClInclude Include="Input\DirectInput\Ds4\Ds4State.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\Ds4\DualShock4.h">
|
<ClInclude Include="Input\DirectInput\Ds4\DualShock4.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\Controller.h">
|
<ClInclude Include="Input\DirectInput\Controller.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\DirectInput.h">
|
<ClInclude Include="Input\DirectInput\DirectInput.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\DirectInputDevice.h">
|
<ClInclude Include="Input\DirectInput\DirectInputDevice.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\DirectInputMouse.h">
|
<ClInclude Include="Input\DirectInput\DirectInputMouse.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Keyboard\Keyboard.h">
|
<ClInclude Include="Input\Keyboard\Keyboard.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Keyboard\KeyboardState.h">
|
<ClInclude Include="Input\Keyboard\KeyboardState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\KeyConfig\Config.h">
|
<ClInclude Include="Input\KeyConfig\Config.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\KeyConfig\KeyString.h">
|
<ClInclude Include="Input\KeyConfig\KeyString.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\KeyConfig\KeyStringHash.h">
|
<ClInclude Include="Input\KeyConfig\KeyStringHash.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Mouse\Mouse.h">
|
<ClInclude Include="Input\Mouse\Mouse.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Mouse\MouseState.h">
|
<ClInclude Include="Input\Mouse\MouseState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\IInputDevice.h">
|
<ClInclude Include="Input\IInputDevice.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utilities\EnumBitwiseOperations.h">
|
<ClInclude Include="Utilities\EnumBitwiseOperations.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utilities\Math.h">
|
<ClInclude Include="Utilities\Math.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utilities\Operations.h">
|
<ClInclude Include="Utilities\Operations.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utilities\Stopwatch.h">
|
<ClInclude Include="Utilities\Stopwatch.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utilities\Vec2.h">
|
<ClInclude Include="Utilities\Vec2.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utilities\Vec3.h">
|
<ClInclude Include="Utilities\Vec3.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\ScaleComponent.h">
|
<ClInclude Include="Components\ScaleComponent.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Bindings\XinputBinding.h">
|
<ClInclude Include="Input\Bindings\XinputBinding.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Xinput\Xinput.h">
|
<ClInclude Include="Input\Xinput\Xinput.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Xinput\XinputState.h">
|
<ClInclude Include="Input\Xinput\XinputState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\GameTargets\HoldState.h">
|
<ClInclude Include="Components\GameTargets\HoldState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\GameTargets\TargetHitStates.h">
|
<ClInclude Include="Components\GameTargets\TargetHitStates.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\GameTargets\TargetInspector.h">
|
<ClInclude Include="Components\GameTargets\TargetInspector.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\GameTargets\TargetState.h">
|
<ClInclude Include="Components\GameTargets\TargetState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\GameTargets\TargetTypes.h">
|
<ClInclude Include="Components\GameTargets\TargetTypes.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\ScoreSaver.h">
|
<ClInclude Include="Components\ScoreSaver.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="pluginconfig.h">
|
<ClInclude Include="pluginconfig.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Components\Pause.h">
|
<ClInclude Include="Components\Pause.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utilities\Drawing.h">
|
<ClInclude Include="Utilities\Drawing.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\GenericUsb\GuButton.h">
|
<ClInclude Include="Input\DirectInput\GenericUsb\GuButton.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\GenericUsb\GuState.h">
|
<ClInclude Include="Input\DirectInput\GenericUsb\GuState.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\DirectInput\GenericUsb\GenericUsbInput.h">
|
<ClInclude Include="Input\DirectInput\GenericUsb\GenericUsbInput.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Input\Bindings\GuBinding.h">
|
<ClInclude Include="Input\Bindings\GuBinding.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="Utils.h">
|
<ClInclude Include="Utils.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
</ItemGroup>
|
<ClInclude Include="Input\Divaller\Divaller.h">
|
||||||
<ItemGroup>
|
<Filter>Header Files</Filter>
|
||||||
<ClCompile Include="dllmain.cpp">
|
</ClInclude>
|
||||||
<Filter>Source Files</Filter>
|
<ClInclude Include="Input\Divaller\DivallerButton.h">
|
||||||
</ClCompile>
|
<Filter>Header Files</Filter>
|
||||||
<ClCompile Include="framework.cpp">
|
</ClInclude>
|
||||||
<Filter>Source Files</Filter>
|
<ClInclude Include="Input\Divaller\DivallerState.h">
|
||||||
</ClCompile>
|
<Filter>Header Files</Filter>
|
||||||
<ClCompile Include="Components\CameraController.cpp">
|
</ClInclude>
|
||||||
<Filter>Source Files</Filter>
|
<ClInclude Include="Input\Bindings\DVLBinding.h">
|
||||||
</ClCompile>
|
<Filter>Header Files</Filter>
|
||||||
<ClCompile Include="Components\ComponentsManager.cpp">
|
</ClInclude>
|
||||||
<Filter>Source Files</Filter>
|
</ItemGroup>
|
||||||
</ClCompile>
|
<ItemGroup>
|
||||||
<ClCompile Include="Components\DebugComponent.cpp">
|
<ClCompile Include="dllmain.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\EmulatorComponent.cpp">
|
<ClCompile Include="framework.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\FastLoader.cpp">
|
<ClCompile Include="Components\CameraController.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\FrameRateManager.cpp">
|
<ClCompile Include="Components\ComponentsManager.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\PlayerDataManager.cpp">
|
<ClCompile Include="Components\DebugComponent.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\Input\InputEmulator.cpp">
|
<ClCompile Include="Components\EmulatorComponent.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\Input\InputState.cpp">
|
<ClCompile Include="Components\FastLoader.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\Input\TouchPanelEmulator.cpp">
|
<ClCompile Include="Components\FrameRateManager.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\Input\TouchSliderEmulator.cpp">
|
<ClCompile Include="Components\PlayerDataManager.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\Input\TouchSliderState.cpp">
|
<ClCompile Include="Components\Input\InputEmulator.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="FileSystem\ConfigFile.cpp">
|
<ClCompile Include="Components\Input\InputState.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="FileSystem\TextFile.cpp">
|
<ClCompile Include="Components\Input\TouchPanelEmulator.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Bindings\Binding.cpp">
|
<ClCompile Include="Components\Input\TouchSliderEmulator.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Bindings\Ds4Binding.cpp">
|
<ClCompile Include="Components\Input\TouchSliderState.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Bindings\KeyboardBinding.cpp">
|
<ClCompile Include="FileSystem\ConfigFile.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Bindings\MouseBinding.cpp">
|
<ClCompile Include="FileSystem\TextFile.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\Ds4\Ds4State.cpp">
|
<ClCompile Include="Input\Bindings\Binding.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\Ds4\DualShock4.cpp">
|
<ClCompile Include="Input\Bindings\Ds4Binding.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\Controller.cpp">
|
<ClCompile Include="Input\Bindings\KeyboardBinding.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\DirectInput.cpp">
|
<ClCompile Include="Input\Bindings\MouseBinding.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\DirectInputDevice.cpp">
|
<ClCompile Include="Input\DirectInput\Ds4\Ds4State.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\DirectInputMouse.cpp">
|
<ClCompile Include="Input\DirectInput\Ds4\DualShock4.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Keyboard\Keyboard.cpp">
|
<ClCompile Include="Input\DirectInput\Controller.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Keyboard\KeyboardState.cpp">
|
<ClCompile Include="Input\DirectInput\DirectInput.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\KeyConfig\Config.cpp">
|
<ClCompile Include="Input\DirectInput\DirectInputDevice.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\KeyConfig\KeyString.cpp">
|
<ClCompile Include="Input\DirectInput\DirectInputMouse.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\KeyConfig\KeyStringHash.cpp">
|
<ClCompile Include="Input\Keyboard\Keyboard.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Mouse\Mouse.cpp">
|
<ClCompile Include="Input\Keyboard\KeyboardState.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Utilities\Math.cpp">
|
<ClCompile Include="Input\KeyConfig\Config.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Utilities\Operations.cpp">
|
<ClCompile Include="Input\KeyConfig\KeyString.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Utilities\Stopwatch.cpp">
|
<ClCompile Include="Input\KeyConfig\KeyStringHash.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Utilities\Vec2.cpp">
|
<ClCompile Include="Input\Mouse\Mouse.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Utilities\Vec3.cpp">
|
<ClCompile Include="Utilities\Math.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\ScaleComponent.cpp">
|
<ClCompile Include="Utilities\Operations.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Bindings\XinputBinding.cpp">
|
<ClCompile Include="Utilities\Stopwatch.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Xinput\Xinput.cpp">
|
<ClCompile Include="Utilities\Vec2.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Xinput\XinputState.cpp">
|
<ClCompile Include="Utilities\Vec3.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\GameTargets\TargetInspector.cpp">
|
<ClCompile Include="Components\ScaleComponent.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\ScoreSaver.cpp">
|
<ClCompile Include="Input\Bindings\XinputBinding.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Components\Pause.cpp">
|
<ClCompile Include="Input\Xinput\Xinput.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Utilities\Drawing.cpp">
|
<ClCompile Include="Input\Xinput\XinputState.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\GenericUsb\GuState.cpp">
|
<ClCompile Include="Components\GameTargets\TargetInspector.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\DirectInput\GenericUsb\GenericUsbInput.cpp">
|
<ClCompile Include="Components\ScoreSaver.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Input\Bindings\GuBinding.cpp">
|
<ClCompile Include="Components\Pause.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="Utils.cpp">
|
<ClCompile Include="Utilities\Drawing.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemGroup>
|
<ClCompile Include="Input\DirectInput\GenericUsb\GuState.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="Input\DirectInput\GenericUsb\GenericUsbInput.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="Input\Bindings\GuBinding.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="Utils.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="Input\Divaller\Divaller.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="Input\Bindings\DVLBinding.cpp">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
#include "Input/DirectInput/DirectInput.h"
|
#include "Input/DirectInput/DirectInput.h"
|
||||||
#include "Input/DirectInput/Ds4/DualShock4.h"
|
#include "Input/DirectInput/Ds4/DualShock4.h"
|
||||||
#include "Input/DirectInput/GenericUsb/GenericUsbInput.h"
|
#include "Input/DirectInput/GenericUsb/GenericUsbInput.h"
|
||||||
|
#include "Input/Divaller/Divaller.h"
|
||||||
#include "Components/ComponentsManager.h"
|
#include "Components/ComponentsManager.h"
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <GL/freeglut.h>
|
#include <GL/freeglut.h>
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
#pragma comment(lib, "detours.lib")
|
#pragma comment(lib, "detours.lib")
|
||||||
|
|
||||||
void(__cdecl* divaEngineUpdate)() = (void(__cdecl*)())0x14018CC40;
|
void(__cdecl* divaEngineUpdate)() = (void(__cdecl*)())0x14018CC40;
|
||||||
void(__cdecl* divaEngineDraw2D)(void* addr) = (void(__cdecl*)(void* addr))ENGINE_DRAW_2D_ADDRESS;
|
void(__cdecl* divaEngineStageDispShadow)() = (void(__cdecl*)())ENGINE_STAGE_DISP_SHADOW_ADDRESS;
|
||||||
|
|
||||||
LRESULT CALLBACK MessageWindowProcessCallback(HWND, UINT, WPARAM, LPARAM);
|
LRESULT CALLBACK MessageWindowProcessCallback(HWND, UINT, WPARAM, LPARAM);
|
||||||
DWORD WINAPI WindowMessageDispatcher(LPVOID);
|
DWORD WINAPI WindowMessageDispatcher(LPVOID);
|
||||||
@@ -81,6 +82,12 @@ namespace TLAC
|
|||||||
if (Input::GenericUsbInput::TryInitializeInstance())
|
if (Input::GenericUsbInput::TryInitializeInstance())
|
||||||
printf("[TLAC] UpdateTick(): GenericUsbInput connected and initialized\n");
|
printf("[TLAC] UpdateTick(): GenericUsbInput connected and initialized\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Input::Divaller::InstanceInitialized())
|
||||||
|
{
|
||||||
|
if (Input::Divaller::TryInitializeInstance())
|
||||||
|
printf("[TLAC] UpdateTick(): Divaller connected and initialized\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ComponentsManager.Update();
|
ComponentsManager.Update();
|
||||||
@@ -112,6 +119,15 @@ namespace TLAC
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Input::Divaller::GetInstance() != nullptr)
|
||||||
|
{
|
||||||
|
if (!Input::Divaller::GetInstance()->PollInput())
|
||||||
|
{
|
||||||
|
Input::Divaller::DeleteInstance();
|
||||||
|
printf("[TLAC] UpdateTick(): Divaller connection lost\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ComponentsManager.UpdateInput();
|
ComponentsManager.UpdateInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,6 +156,15 @@ namespace TLAC
|
|||||||
printf("[TLAC] UpdateTick(): GenericUsbInput connection lost\n");
|
printf("[TLAC] UpdateTick(): GenericUsbInput connection lost\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Input::Divaller::GetInstance() != nullptr)
|
||||||
|
{
|
||||||
|
if (!Input::Divaller::GetInstance()->PollInput())
|
||||||
|
{
|
||||||
|
Input::Divaller::DeleteInstance();
|
||||||
|
printf("[TLAC] UpdateTick(): Divaller connection lost\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HasWindowFocus && !HadWindowFocus)
|
if (HasWindowFocus && !HadWindowFocus)
|
||||||
@@ -371,10 +396,10 @@ void hookedEngineUpdate()
|
|||||||
//divaEngineUpdate();
|
//divaEngineUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void hookedEngineDraw2D(void* addr)
|
void hookedEngineStageDispShadow()
|
||||||
{
|
{
|
||||||
|
divaEngineStageDispShadow();
|
||||||
TLAC::UpdateDraw2D();
|
TLAC::UpdateDraw2D();
|
||||||
divaEngineDraw2D(addr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||||
@@ -400,7 +425,7 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReser
|
|||||||
|
|
||||||
DetourTransactionBegin();
|
DetourTransactionBegin();
|
||||||
DetourUpdateThread(GetCurrentThread());
|
DetourUpdateThread(GetCurrentThread());
|
||||||
DetourAttach(&(PVOID&)divaEngineDraw2D, hookedEngineDraw2D);
|
DetourAttach(&(PVOID&)divaEngineStageDispShadow, hookedEngineStageDispShadow);
|
||||||
DetourTransactionCommit();
|
DetourTransactionCommit();
|
||||||
|
|
||||||
//TLAC::InitializeExtraSettings();
|
//TLAC::InitializeExtraSettings();
|
||||||
|
|||||||
Reference in New Issue
Block a user