Artemis.Utilities.Updater.LoadNullDefaults C# (CSharp) Method

LoadNullDefaults() private static method

JSON default value handling can only go so far, so the update will take care of defaults on the offsets if they are null
private static LoadNullDefaults ( ) : void
return void
        private static void LoadNullDefaults()
        {
            var offsetSettings = SettingsProvider.Load<OffsetSettings>();
            if (offsetSettings.RocketLeague == null)
                offsetSettings.RocketLeague = new GamePointersCollection
                {
                    Game = "RocketLeague",
                    GameVersion = "1.21",
                    GameAddresses = new List<GamePointer>
                    {
                        new GamePointer
                        {
                            Description = "Boost",
                            BasePointer = new IntPtr(0x016AD528),
                            Offsets = new[] {0x304, 0x8, 0x50, 0x720, 0x224}
                        }
                    }
                };

            offsetSettings.Save();
        }
    }