Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for FM8 (Forza Motorsport) #31

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -531,7 +531,7 @@
{
if (progressReporter != null)
progressReporter.Report(new ForzaDSXReportStruct("Couldn't Access Port. " + e.Message ));
throw e;

Check warning on line 534 in ForzaDSXWorker.cs

View workflow job for this annotation

GitHub Actions / package (7.0.x)

Re-throwing caught exception changes stack information (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2200)
}
else if (e is ObjectDisposedException)
{
Expand Down Expand Up @@ -766,6 +766,9 @@
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.
Loading