private void AddGameMenu() { var saveName = _menus.AddGameChooseNamePrompt(); if (!ValidSaveName(saveName)) { _logger.Info($"Name chosen was invalid: {saveName}"); _messages.InvalidFileNameConfirmation(); return; } var mapping = _menus.AddGameForm(saveName); if (mapping == null) { _logger.Info("Mapping was not added"); _messages.ItemAddMessage(false); return; } if (_currentLocalMappingProfile.LocalMappings == null) { _currentLocalMappingProfile.LocalMappings = new List <LocalMapping>(); } _currentLocalMappingProfile.LocalMappings.Add(mapping); _mappingManager.WriteLocalMappingData(_currentLocalMappingProfile.LocalMappings, _currentSharedMappings); _messages.ItemAddMessage(true); }