Update SDL2 and add StartDelay option to ini files
This commit is contained in:
parent
f7cfa3dbcc
commit
bead4a63eb
@ -13,6 +13,8 @@
|
|||||||
[Settings]
|
[Settings]
|
||||||
; GameId specifies the game behavior to use - e.g. which address to read, how to interpret values, etc.
|
; GameId specifies the game behavior to use - e.g. which address to read, how to interpret values, etc.
|
||||||
GameId=-1
|
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
|
; 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
|
; 0-100: you may want to set a min force if your wheel doesn't deliver sufficient forces when values are low
|
||||||
MinForce=0
|
MinForce=0
|
||||||
@ -139,6 +141,7 @@ SpringStrength=100
|
|||||||
|
|
||||||
[GRID Real]
|
[GRID Real]
|
||||||
GameId=10
|
GameId=10
|
||||||
|
StartDelay=0
|
||||||
FeedbackLength=80
|
FeedbackLength=80
|
||||||
EnableDamper=0
|
EnableDamper=0
|
||||||
DamperStrength=100
|
DamperStrength=100
|
||||||
@ -244,12 +247,14 @@ FFBRumbleStripFadeSinePeriod = 0;
|
|||||||
|
|
||||||
[Dirty Drivin']
|
[Dirty Drivin']
|
||||||
GameId=42
|
GameId=42
|
||||||
|
StartDelay=0
|
||||||
FeedbackLength=500
|
FeedbackLength=500
|
||||||
EnableDamper=0
|
EnableDamper=0
|
||||||
DamperStrength=100
|
DamperStrength=100
|
||||||
|
|
||||||
[H2Overdrive]
|
[H2Overdrive]
|
||||||
GameId=43
|
GameId=43
|
||||||
|
StartDelay=0
|
||||||
FeedbackLength=500
|
FeedbackLength=500
|
||||||
EnableDamper=0
|
EnableDamper=0
|
||||||
DamperStrength=100
|
DamperStrength=100
|
||||||
@ -319,6 +324,7 @@ DamperStrength=100
|
|||||||
|
|
||||||
[Batman]
|
[Batman]
|
||||||
GameId=45
|
GameId=45
|
||||||
|
StartDelay=0
|
||||||
FeedbackLength=500
|
FeedbackLength=500
|
||||||
EnableDamper=0
|
EnableDamper=0
|
||||||
DamperStrength=100
|
DamperStrength=100
|
||||||
@ -905,6 +911,7 @@ DamperStrength=100
|
|||||||
|
|
||||||
[Road Fighters 3D]
|
[Road Fighters 3D]
|
||||||
GameId=29
|
GameId=29
|
||||||
|
StartDelay=0
|
||||||
MinForce=0
|
MinForce=0
|
||||||
MaxForce=75
|
MaxForce=75
|
||||||
AlternativeMinForceLeft=0
|
AlternativeMinForceLeft=0
|
||||||
@ -1446,6 +1453,7 @@ ShiftDownButtonKeyBrd=99
|
|||||||
|
|
||||||
[Supermodel 32bit Outputs]
|
[Supermodel 32bit Outputs]
|
||||||
GameId=34
|
GameId=34
|
||||||
|
StartDelay=0
|
||||||
EnableDamperDaytona2=0
|
EnableDamperDaytona2=0
|
||||||
DamperStrengthDaytona2=100
|
DamperStrengthDaytona2=100
|
||||||
FeedbackLengthDaytona2=500
|
FeedbackLengthDaytona2=500
|
||||||
@ -1521,6 +1529,7 @@ AlternativeMaxForceRightECA=100
|
|||||||
|
|
||||||
[Supermodel 64bit Outputs]
|
[Supermodel 64bit Outputs]
|
||||||
GameId=34
|
GameId=34
|
||||||
|
StartDelay=0
|
||||||
EnableDamperDaytona2=0
|
EnableDamperDaytona2=0
|
||||||
DamperStrengthDaytona2=100
|
DamperStrengthDaytona2=100
|
||||||
FeedbackLengthDaytona2=500
|
FeedbackLengthDaytona2=500
|
||||||
@ -1596,6 +1605,7 @@ AlternativeMaxForceRightECA=100
|
|||||||
|
|
||||||
[MAME 32bit Outputs]
|
[MAME 32bit Outputs]
|
||||||
GameId=22
|
GameId=22
|
||||||
|
StartDelay=0
|
||||||
EnableForceSpringEffect=0
|
EnableForceSpringEffect=0
|
||||||
ForceSpringStrength=100
|
ForceSpringStrength=100
|
||||||
Device2GUID=
|
Device2GUID=
|
||||||
@ -2093,6 +2103,7 @@ FFBDivideAceDriver=643
|
|||||||
|
|
||||||
[MAME 64bit Outputs]
|
[MAME 64bit Outputs]
|
||||||
GameId=22
|
GameId=22
|
||||||
|
StartDelay=0
|
||||||
EnableForceSpringEffect=0
|
EnableForceSpringEffect=0
|
||||||
ForceSpringStrength=100
|
ForceSpringStrength=100
|
||||||
Device2GUID=
|
Device2GUID=
|
||||||
|
@ -455,14 +455,14 @@ cd $(OutDir) && for /D /r %d in (.\Deploy\*) do @xcopy *.dll %d\
|
|||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
<Import Project="$(VCTargetsPath)\BuildCustomizations\masm.targets" />
|
<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.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.3\build\native\sdl2.nuget.targets" Condition="Exists('packages\sdl2.nuget.2.28.3\build\native\sdl2.nuget.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>
|
</ImportGroup>
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
<PropertyGroup>
|
<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>
|
<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>
|
</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.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.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.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>
|
</Target>
|
||||||
</Project>
|
</Project>
|
@ -970,6 +970,7 @@ int DoubleConstant = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleConstant
|
|||||||
int DoubleSpring = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleSpring"), 0, settingsFilename);
|
int DoubleSpring = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleSpring"), 0, settingsFilename);
|
||||||
int DoubleFriction = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleFriction"), 0, settingsFilename);
|
int DoubleFriction = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleFriction"), 0, settingsFilename);
|
||||||
int FFBOrRumble = GetPrivateProfileInt(TEXT("Settings"), TEXT("FFBOrRumble"), 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 DefaultConfigValues();
|
||||||
extern void CustomFFBStrengthSetup();
|
extern void CustomFFBStrengthSetup();
|
||||||
@ -2327,7 +2328,7 @@ DWORD WINAPI FFBLoop(LPVOID lpParam)
|
|||||||
{
|
{
|
||||||
hlp.log("In FFBLoop");
|
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);
|
Sleep(2500);
|
||||||
|
|
||||||
Initialize(0);
|
Initialize(0);
|
||||||
|
@ -1 +1 @@
|
|||||||
v2.0.0.35
|
v2.0.0.36
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="sdl2.nuget" version="2.28.3" targetFramework="native" />
|
<package id="sdl2.nuget" version="2.28.5" targetFramework="native" />
|
||||||
<package id="sdl2.nuget.redist" version="2.28.3" targetFramework="native" />
|
<package id="sdl2.nuget.redist" version="2.28.5" targetFramework="native" />
|
||||||
</packages>
|
</packages>
|
Loading…
Reference in New Issue
Block a user