Skip to content

Commit

Permalink
basic photomode stuff for fm8
Browse files Browse the repository at this point in the history
  • Loading branch information
szaaamerik committed Jan 7, 2024
1 parent 2074166 commit 4e3e1e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Forza-Mods-AIO/Tabs/Self-Vehicle/Self-Vehicle-Addrs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static void FM8_Scan()
}

Sv.UiManager.Index = 0;
Sv.UiManager.ScanAmount = 5;
Sv.UiManager.ScanAmount = 6;

const string massProtectSig = "74 ? F3 0F ? ? 0F 29";
var massProtectAddresses = Mw.M.ScanForSig(massProtectSig);
Expand All @@ -110,9 +110,14 @@ private static void FM8_Scan()
Car1Addr = Mw.M.ScanForSig(car1Sig).FirstOrDefault();
Sv.UiManager.AddProgress();

const string cameraBaseSig = "48 ? 6E 64 62 ? ? 6B 65 00 ? 00 00 00 00 00 09";
PhotoCamEntity.MainPhotoCamEntity = Mw.M.ScanForSig(cameraBaseSig).FirstOrDefault() + 264;
Sv.UiManager.AddProgress();

Sv.Dispatcher.Invoke(() =>
{
Sv.HandlingButton.IsEnabled = true;
Sv.PhotomodeButton.IsEnabled = true;
Shp.WaterDragSwitch.IsEnabled = false;
Shp.SuperCarSwitch.IsEnabled = false;
});
Expand Down

0 comments on commit 4e3e1e1

Please sign in to comment.