code: def add_loadout_preset(self, file_path: str):
          
          if file_path is not None and os.path.isfile(file_path):
              name = pathlib.Path(file_path).stem
          else:
              name = "new preset"
          if file_path in self.loadout_presets:
              return self.loadout_presets[file_path]
          preset = LoadoutPreset(name, file_path)
          self.loadout_presets[preset.config_path] = preset
          return preset
docs: Loads a preset using file_path with all values from that path loaded
          :param file_path: the path to load the preset from, if invalid a default preset is returned
          :return preset: the loadout preset created