text: import os, json, sys
  
  THIS_DIR, _ = os.path.split(os.path.abspath(__file__))
  
  if sys.platform == "win32":
      THIS_CONFIG = os.path.join(THIS_DIR, 'config_windows.json')
      DOLPHIN_NAME = 'Dolphin.exe'
  else:
      THIS_CONFIG = os.path.join(THIS_DIR, 'config.json')
      DOLPHIN_NAME = 'dolphin-emu'
  
  class Config:
      def __init__(self):
          with open(THIS_CONFIG, 'r') as f:
              j = json.loads(f.read())
              self.melee_iso = os.path.expanduser(j['melee_iso'])
              self.check_path(self.melee_iso)
              self.dolphin_dir = os.path.expanduser(j['dolphin_dir'])
              self.check_path(self.dolphin_dir)
              self.ffmpeg = os.path.expanduser(j['ffmpeg'])
              self.check_path(self.ffmpeg)
              self.resolution = j['resolution']
              self.widescreen = j['widescreen']
              self.bitrateKbps = j['bitrateKbps']
              self.parallel_games = j['parallel_games']
              self.remove_short = j['remove_short']
              self.combine = j['combine']
  
          self.dolphin_bin = os.path.join(self.dolphin_dir, DOLPHIN_NAME)
          self.check_path(self.dolphin_bin)
  
      def check_path(self, path):
          if not os.path.exists(path):
              raise RuntimeError("{} does not exist".format(path))
  