diff --git a/Config/FFBPlugin.ini b/Config/FFBPlugin.ini index 694fa23..5867acc 100644 --- a/Config/FFBPlugin.ini +++ b/Config/FFBPlugin.ini @@ -559,6 +559,20 @@ AlternativeMinForceRightKingOfRoute66=0 AlternativeMaxForceRightKingOfRoute66=100 DoubleSineKingOfRoute66=0 DoubleConstantKingOfRoute66=0 +EnableDamperSegaDrivingSimulator=0 +DamperStrengthSegaDrivingSimulator=100 +FeedbackLengthSegaDrivingSimulator=500 +PowerModeSegaDrivingSimulator=0 +EnableForceSpringEffectSegaDrivingSimulator=0 +ForceSpringStrengthSegaDrivingSimulator=80 +MinForceSegaDrivingSimulator=0 +MaxForceSegaDrivingSimulator=100 +AlternativeMinForceLeftSegaDrivingSimulator=0 +AlternativeMaxForceLeftSegaDrivingSimulator=-100 +AlternativeMinForceRightSegaDrivingSimulator=0 +AlternativeMaxForceRightSegaDrivingSimulator=100 +DoubleSineSegaDrivingSimulator=0 +DoubleConstantSegaDrivingSimulator=0 [Crazy Taxi Steam] GameId=58 diff --git a/DInput8Wrapper.aps b/DInput8Wrapper.aps index 636f448..23f4e70 100644 Binary files a/DInput8Wrapper.aps and b/DInput8Wrapper.aps differ diff --git a/DInput8Wrapper.rc b/DInput8Wrapper.rc index c2cb120..f5bd12b 100644 Binary files a/DInput8Wrapper.rc and b/DInput8Wrapper.rc differ diff --git a/Game Files/MAMESupermodel.cpp b/Game Files/MAMESupermodel.cpp index ec74421..571ac46 100644 --- a/Game Files/MAMESupermodel.cpp +++ b/Game Files/MAMESupermodel.cpp @@ -230,6 +230,8 @@ std::string FasterThanSPEED("FASTER THAN SPEED\n"); std::string F355ChallengeJapan("F355 CHALLENGE JAPAN\n"); std::string ClubKartInJapan("CLUB KART IN JAPAN\n"); std::string TheKingOfRoute66("THE KING OF ROUTE66\n"); +std::string SegaDrivingSimulator("SAMPLE GAME MAX LONG NAME-\n"); + //Our string to load game from std::string M2Active("M2Active"); @@ -1051,6 +1053,21 @@ static int DamperStrengthKingOfRoute66 = GetPrivateProfileInt(TEXT("Settings"), static int DoubleSineKingOfRoute66 = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleSineKingOfRoute66"), 0, settingsFilename); static int DoubleConstantKingOfRoute66 = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleConstantKingOfRoute66"), 0, settingsFilename); +static int configMinForceSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("MinForceSegaDrivingSimulator"), 0, settingsFilename); +static int configMaxForceSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("MaxForceSegaDrivingSimulator"), 100, settingsFilename); +static int configAlternativeMinForceLeftSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("AlternativeMinForceLeftSegaDrivingSimulator"), 0, settingsFilename); +static int configAlternativeMaxForceLeftSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("AlternativeMaxForceLeftSegaDrivingSimulator"), 100, settingsFilename); +static int configAlternativeMinForceRightSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("AlternativeMinForceRightSegaDrivingSimulator"), 0, settingsFilename); +static int configAlternativeMaxForceRightSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("AlternativeMaxForceRightSegaDrivingSimulator"), 100, settingsFilename); +static int configFeedbackLengthSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("FeedbackLengthSegaDrivingSimulator"), 120, settingsFilename); +static int PowerModeSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("PowerModeSegaDrivingSimulator"), 0, settingsFilename); +static int EnableForceSpringEffectSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("EnableForceSpringEffectSegaDrivingSimulator"), 0, settingsFilename); +static int ForceSpringStrengthSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("ForceSpringStrengthSegaDrivingSimulator"), 0, settingsFilename); +static int EnableDamperSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("EnableDamperSegaDrivingSimulator"), 0, settingsFilename); +static int DamperStrengthSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("DamperStrengthSegaDrivingSimulator"), 100, settingsFilename); +static int DoubleSineSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleSineSegaDrivingSimulator"), 0, settingsFilename); +static int DoubleConstantSegaDrivingSimulator = GetPrivateProfileInt(TEXT("Settings"), TEXT("DoubleConstantSegaDrivingSimulator"), 0, settingsFilename); + static bool init = false; static bool initSpring = false; static bool EmuName = false; @@ -1858,7 +1875,6 @@ void MAMESupermodel::FFBLoop(EffectConstants* constants, Helpers* helpers, Effec SDL_JoystickGUID guid, dev_guid; int numJoysticks = SDL_NumJoysticks(); std::string njs = std::to_string(numJoysticks); - ((char)njs.c_str()); for (int i = 0; i < SDL_NumJoysticks(); i++) { extern int joystick1Index; @@ -2891,6 +2907,26 @@ void MAMESupermodel::FFBLoop(EffectConstants* constants, Helpers* helpers, Effec RunningFFB = "InitialDActive"; } + if (romname == SegaDrivingSimulator) + { + configMinForce = configMinForceSegaDrivingSimulator; + configMaxForce = configMaxForceSegaDrivingSimulator; + configAlternativeMinForceLeft = configAlternativeMinForceLeftSegaDrivingSimulator; + configAlternativeMaxForceLeft = configAlternativeMaxForceLeftSegaDrivingSimulator; + configAlternativeMinForceRight = configAlternativeMinForceRightSegaDrivingSimulator; + configAlternativeMaxForceRight = configAlternativeMaxForceRightSegaDrivingSimulator; + configFeedbackLength = configFeedbackLengthSegaDrivingSimulator; + PowerMode = PowerModeSegaDrivingSimulator; + EnableDamper = EnableDamperSegaDrivingSimulator; + DamperStrength = DamperStrengthSegaDrivingSimulator; + EnableForceSpringEffect = EnableForceSpringEffectSegaDrivingSimulator; + ForceSpringStrength = ForceSpringStrengthSegaDrivingSimulator; + DoubleSine = DoubleSineSegaDrivingSimulator; + DoubleConstant = DoubleConstantSegaDrivingSimulator; + + RunningFFB = "InitialDActive"; + } + if (romname == MaximumSPEED) { configMinForce = configMinForceMaximumSpeed; diff --git a/Includes/FFBPluginReadme.txt b/Includes/FFBPluginReadme.txt index d7f1469..bbf642d 100644 --- a/Includes/FFBPluginReadme.txt +++ b/Includes/FFBPluginReadme.txt @@ -178,6 +178,7 @@ FLYCAST: -Initial D Arcade Stage 3 -King Of Route 66 -Maximum Speed +-Sega Driving Simulator diff --git a/Version.txt b/Version.txt index ef0ee5a..16aa262 100644 --- a/Version.txt +++ b/Version.txt @@ -1 +1 @@ -v2.0.0.22 \ No newline at end of file +v2.0.0.23 \ No newline at end of file