@@ -40,6 +40,8 @@ internal class Settings : MonoBehaviour
4040 internal static Boolean useStockToolbar = true ;
4141 internal static Boolean useBlizzyToolbar = true ;
4242
43+ internal static bool logDebugMessages = false ;
44+
4345 //Options
4446 internal static int mode = 0 ;
4547 internal static Boolean camFix = true ;
@@ -160,6 +162,9 @@ private void buildConfig(bool rebuildRails)
160162 internalData . AddValue ( "fpsMinSlider" , fpsMinSlider ) ;
161163
162164 internalData . AddValue ( "showFPS" , showFPS ) ;
165+
166+ internalData . AddValue ( "logDebugMessages" , logDebugMessages ) ;
167+
163168 ConfigNode fpsPositionNode = internalData . AddNode ( "fpsPosition" ) ;
164169 fpsPositionNode . AddValue ( "x" , fpsPosition . xMin ) ;
165170 fpsPositionNode . AddValue ( "y" , fpsPosition . yMin ) ;
@@ -247,8 +252,12 @@ private void loadConfig()
247252 camFix = bool . Parse ( internalData . GetValue ( "camFix" ) ) ;
248253 fpsKeeperActive = bool . Parse ( internalData . GetValue ( "fpsKeeperActive" ) ) ;
249254 fpsMinSlider = int . Parse ( internalData . GetValue ( "fpsMinSlider" ) ) ;
250-
255+
251256 showFPS = bool . Parse ( internalData . GetValue ( "showFPS" ) ) ;
257+
258+ logDebugMessages = bool . Parse ( internalData . GetValue ( "logDebugMessages" ) ) ;
259+ TC . logDebugMessages = logDebugMessages ;
260+
252261 ConfigNode fpsPositionNode = internalData . GetNode ( "fpsPosition" ) ;
253262 fpsPosition . xMin = float . Parse ( fpsPositionNode . GetValue ( "x" ) ) ;
254263 fpsPosition . yMin = float . Parse ( fpsPositionNode . GetValue ( "y" ) ) ;
@@ -340,6 +349,9 @@ private void saveConfig()
340349 internalData . SetValue ( "fpsMinSlider" , fpsMinSlider . ToString ( ) ) ;
341350
342351 internalData . SetValue ( "showFPS" , showFPS . ToString ( ) ) ;
352+
353+ internalData . SetValue ( "logDebugMessages" , logDebugMessages . ToString ( ) ) ;
354+
343355 ConfigNode fpsPositionNode = internalData . GetNode ( "fpsPosition" ) ;
344356 fpsPositionNode . SetValue ( "x" , fpsPosition . xMin . ToString ( ) ) ;
345357 fpsPositionNode . SetValue ( "y" , fpsPosition . yMin . ToString ( ) ) ;
0 commit comments