1
0
mirror of synced 2024-11-27 16:10:52 +01:00

Update SDL2 and add StartDelay option to ini files

This commit is contained in:
Boomslangnz 2023-11-18 10:42:01 +13:00
parent f7cfa3dbcc
commit bead4a63eb
5 changed files with 20 additions and 8 deletions

View File

@ -13,6 +13,8 @@
[Settings]
; GameId specifies the game behavior to use - e.g. which address to read, how to interpret values, etc.
GameId=-1
; Add a sleep before initializing, some games crash without this etc
StartDelay=1
; All forces /designated within a game/ will be scaled to exist between MinForce and MaxForce
; 0-100: you may want to set a min force if your wheel doesn't deliver sufficient forces when values are low
MinForce=0
@ -139,6 +141,7 @@ SpringStrength=100
[GRID Real]
GameId=10
StartDelay=0
FeedbackLength=80
EnableDamper=0
DamperStrength=100
@ -244,12 +247,14 @@ FFBRumbleStripFadeSinePeriod = 0;
[Dirty Drivin']
GameId=42
StartDelay=0
FeedbackLength=500
EnableDamper=0
DamperStrength=100
[H2Overdrive]
GameId=43
StartDelay=0
FeedbackLength=500
EnableDamper=0
DamperStrength=100
@ -319,6 +324,7 @@ DamperStrength=100
[Batman]
GameId=45
StartDelay=0
FeedbackLength=500
EnableDamper=0
DamperStrength=100
@ -905,6 +911,7 @@ DamperStrength=100
[Road Fighters 3D]
GameId=29
StartDelay=0
MinForce=0
MaxForce=75
AlternativeMinForceLeft=0
@ -1446,6 +1453,7 @@ ShiftDownButtonKeyBrd=99
[Supermodel 32bit Outputs]
GameId=34
StartDelay=0
EnableDamperDaytona2=0
DamperStrengthDaytona2=100
FeedbackLengthDaytona2=500
@ -1521,6 +1529,7 @@ AlternativeMaxForceRightECA=100
[Supermodel 64bit Outputs]
GameId=34
StartDelay=0
EnableDamperDaytona2=0
DamperStrengthDaytona2=100
FeedbackLengthDaytona2=500
@ -1596,6 +1605,7 @@ AlternativeMaxForceRightECA=100
[MAME 32bit Outputs]
GameId=22
StartDelay=0
EnableForceSpringEffect=0
ForceSpringStrength=100
Device2GUID=
@ -2093,6 +2103,7 @@ FFBDivideAceDriver=643
[MAME 64bit Outputs]
GameId=22
StartDelay=0
EnableForceSpringEffect=0
ForceSpringStrength=100
Device2GUID=

View File

@ -455,14 +455,14 @@ cd $(OutDir) && for /D /r %d in (.\Deploy\*) do @xcopy *.dll %d\
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
<Import Project="packages\sdl2.nuget.redist.2.28.3\build\native\sdl2.nuget.redist.targets" Condition="Exists('packages\sdl2.nuget.redist.2.28.3\build\native\sdl2.nuget.redist.targets')" />
<Import Project="packages\sdl2.nuget.2.28.3\build\native\sdl2.nuget.targets" Condition="Exists('packages\sdl2.nuget.2.28.3\build\native\sdl2.nuget.targets')" />
<Import Project="packages\sdl2.nuget.redist.2.28.5\build\native\sdl2.nuget.redist.targets" Condition="Exists('packages\sdl2.nuget.redist.2.28.5\build\native\sdl2.nuget.redist.targets')" />
<Import Project="packages\sdl2.nuget.2.28.5\build\native\sdl2.nuget.targets" Condition="Exists('packages\sdl2.nuget.2.28.5\build\native\sdl2.nuget.targets')" />
</ImportGroup>
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('packages\sdl2.nuget.redist.2.28.3\build\native\sdl2.nuget.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\sdl2.nuget.redist.2.28.3\build\native\sdl2.nuget.redist.targets'))" />
<Error Condition="!Exists('packages\sdl2.nuget.2.28.3\build\native\sdl2.nuget.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\sdl2.nuget.2.28.3\build\native\sdl2.nuget.targets'))" />
<Error Condition="!Exists('packages\sdl2.nuget.redist.2.28.5\build\native\sdl2.nuget.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\sdl2.nuget.redist.2.28.5\build\native\sdl2.nuget.redist.targets'))" />
<Error Condition="!Exists('packages\sdl2.nuget.2.28.5\build\native\sdl2.nuget.targets')" Text="$([System.String]::Format('$(ErrorText)', 'packages\sdl2.nuget.2.28.5\build\native\sdl2.nuget.targets'))" />
</Target>
</Project>

View File

@ -970,6 +970,7 @@ int DoubleConstant = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleConstant
int DoubleSpring = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleSpring"), 0, settingsFilename);
int DoubleFriction = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleFriction"), 0, settingsFilename);
int FFBOrRumble = GetPrivateProfileInt(TEXT("Settings"), TEXT("FFBOrRumble"), 0, settingsFilename);
int StartDelay = GetPrivateProfileInt(TEXT("Settings"), TEXT("StartDelay"), 0, settingsFilename);
extern void DefaultConfigValues();
extern void CustomFFBStrengthSetup();
@ -2327,7 +2328,7 @@ DWORD WINAPI FFBLoop(LPVOID lpParam)
{
hlp.log("In FFBLoop");
if (configGameId != 22 && configGameId != 29 && configGameId != 34 && configGameId != 10) //For games which need code to run quicker etc. Some games will crash if no sleep added
if (StartDelay) //For games which need code to run quicker etc. Some games will crash if no sleep added
Sleep(2500);
Initialize(0);

View File

@ -1 +1 @@
v2.0.0.35
v2.0.0.36

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="sdl2.nuget" version="2.28.3" targetFramework="native" />
<package id="sdl2.nuget.redist" version="2.28.3" targetFramework="native" />
<package id="sdl2.nuget" version="2.28.5" targetFramework="native" />
<package id="sdl2.nuget.redist" version="2.28.5" targetFramework="native" />
</packages>