Skip to content

Commit

Permalink
Merge pull request #31 from zchenak/main
Browse files Browse the repository at this point in the history
Added support for FM8 (Forza Motorsport)
  • Loading branch information
cosmii02 authored Oct 6, 2023
2 parents d9b8f90 + 5bb394e commit d69604f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AppCheckThread.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public void Run()
forzaProcesses = Process.GetProcessesByName("ForzaHorizon5").Length;
forzaProcesses += Process.GetProcessesByName("ForzaHorizon4").Length; //Guess at name
forzaProcesses += Process.GetProcessesByName("ForzaMotorsport7").Length; //Guess at name
forzaProcesses += Process.GetProcessesByName("forza_gaming.desktop.x64_release_final").Length; //Guess at name

// DSX = "DSX" or "DualSenseX"
DSX = Process.GetProcessesByName("DSX");
DSX_2 = Process.GetProcessesByName("DualsenseX");
Expand Down
3 changes: 3 additions & 0 deletions ForzaDSXWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,9 @@ static bool AdjustToBufferType(int bufferLength)
case 311: // FM7 dash
FMData.BufferOffset = 0;
return true;
case 331: // FM8 dash
FMData.BufferOffset = 0;
return true;
case 324: // FH4
FMData.BufferOffset = 12;
return true;
Expand Down
Binary file modified publish/ForzaDSX.exe
Binary file not shown.
Binary file modified publish/ForzaDSX.zip
Binary file not shown.

0 comments on commit d69604f

Please sign in to comment.