diff --git a/Include/rFactor2SharedMemoryMap.hpp b/Include/rFactor2SharedMemoryMap.hpp index 0549f61..25998f0 100644 --- a/Include/rFactor2SharedMemoryMap.hpp +++ b/Include/rFactor2SharedMemoryMap.hpp @@ -27,7 +27,7 @@ Website: thecrewchief.org // Each component can be in [0:99] range. #define PLUGIN_VERSION_MAJOR "3.0" -#define PLUGIN_VERSION_MINOR "0.0" +#define PLUGIN_VERSION_MINOR "0.1" #define PLUGIN_NAME_AND_VERSION "rFactor 2 Shared Memory Map Plugin - v" PLUGIN_VERSION_MAJOR #define SHARED_MEMORY_VERSION PLUGIN_VERSION_MAJOR "." PLUGIN_VERSION_MINOR diff --git a/Monitor/rF2SMMonitor/rF2SMMonitor/MainForm.cs b/Monitor/rF2SMMonitor/rF2SMMonitor/MainForm.cs index b59f418..840dcac 100644 --- a/Monitor/rF2SMMonitor/rF2SMMonitor/MainForm.cs +++ b/Monitor/rF2SMMonitor/rF2SMMonitor/MainForm.cs @@ -685,7 +685,7 @@ void View_Paint(object sender, PaintEventArgs e) float yStep = SystemFonts.DefaultFont.Height; var gameStateText = new StringBuilder(); gameStateText.Append( - $"Plugin Version: Expected: 3.0.0.0 64bit Actual: {MainForm.GetStringFromBytes(this.extended.mVersion)} {(this.extended.is64bit == 1 ? "64bit" : "32bit")} {(this.extended.mHostedPluginVars.StockCarRules_IsHosted == 1 ? "SCR Plugin Hosted" : "")} FPS: {this.fps}"); + $"Plugin Version: Expected: 3.0.0.1 64bit Actual: {MainForm.GetStringFromBytes(this.extended.mVersion)} {(this.extended.is64bit == 1 ? "64bit" : "32bit")} {(this.extended.mHostedPluginVars.StockCarRules_IsHosted == 1 ? "SCR Plugin Hosted" : "")} FPS: {this.fps}"); // Draw header g.DrawString(gameStateText.ToString(), SystemFonts.DefaultFont, brush, currX, currY); diff --git a/README.md b/README.md index 906445d..916f129 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,10 @@ If you would like to support this project, you can donate [here.](http://thecrew # Release history +02/16/2018 - v3.0.0.1 + + Hotfix for physics options not being captured. + 02/16/2018 - v3.0.0.0 Rework Plugin to replace mutexes with buffer version tracking mechanism. Update Monitor to match new way of reading data. diff --git a/Source/rFactor2SharedMemoryMap.cpp b/Source/rFactor2SharedMemoryMap.cpp index f794f6d..877eef5 100644 --- a/Source/rFactor2SharedMemoryMap.cpp +++ b/Source/rFactor2SharedMemoryMap.cpp @@ -913,6 +913,8 @@ void SharedMemoryPlugin::SetPhysicsOptions(PhysicsOptionsV01& options) DEBUG_MSG(DebugLevel::Timing, "PHYSICS - Updated."); + memcpy(&(mExtStateTracker.mExtended.mPhysics), &options, sizeof(rF2PhysicsOptions)); + mExtended.BeginUpdate(); memcpy(mExtended.mpBuff, &(mExtStateTracker.mExtended), sizeof(rF2Extended)); mExtended.EndUpdate();