+
    Ki  c                   s    ^ RI t ^ RIt^ RIHu Ht ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ] P"                  P%                  ]P&                  R4      t ! R	 R
]4      tR# )i    N)gettext)settings)MissingGameExecutableError)Runner)system)loggerzrunners/snes9xc                   s6  a  ] tR t^t o ]! R4      t]! R4      t]! R4      .tRtRt	Rt
RtRRR	R
RRR]! R4      R]! R4      /.tRRR	RR]! R4      R]! R4      RR/RRR	RR]! R4      R]! R4      RRR]! R4      /RRR	RR]! R4      RRRR$RR/.tR  tR! tR"tV tR## )%snes9xzSuper Nintendo emulatorZSnes9xzNintendo SNESTzsnes9x/bin/snes9x-gtkzcom.snes9x.Snes9xoption	main_fileZtypeZfileZdefault_pathZ	game_pathZlabelzROM fileZhelpz+The game data, commonly called a ROM image.Z
fullscreenboolZsectionZGraphicsZ
FullscreenZdefault1Zmaintain_aspect_ratiozMaintain aspect ratio (4:3)zSuper Nintendo games were made for 4:3 screens with rectangular pixels, but modern screens have square pixels, which results in a vertically squeezed image. This option corrects this by displaying rectangular pixels.Zsound_driverZchoicezSound driverZadvancedZchoicesc                s   \         P                  P                  R 4      p\        P                  ! V4      '       gN   \
        P                  ! V P                  4       R.,           4      ;_uu_ 4       pVP                  4        RRR4       \        P                  ! V4      '       g   \        P                  ! R4       R# \        P                  ! V4      pVP                  RV,          4      pVeD   \        V\        4      '       d   V'       d   RMRpW&P                   R&   VP#                  V4       R# R#   + '       g   i     L; i)z~/.snes9x/snes9x.xmlz-helpNz"Snes9x config file creation failedz ./preferences/option[@name='%s']r
   0value)ospathZ
expanduserr   path_exists
subprocessZPopenget_commandZcommunicater   ZerroretreeZparseZfindZ
isinstancer	   ZattribZwrite)selfr   r   Zconfig_fileZsnes9x_processZtreeZnodes   &&&    :/usr/lib/python3.14/site-packages/lutris/runners/snes9x.py
set_optionZsnes9x.set_option=   s    gg(()?@!!+..!!$"2"2"4y"@AA^**, B!!+..LL=>{{;'yy;fDE%&&$##(KK JJ{#	  BAs   0D44E	c                s^   V P                   P                   F-  pV P                  WP                  P                  V4      4       K/  	  V P                  P                  R 4      ;'       g    Rp\
        P                  ! V4      '       g   \        VR7      hRV P                  4       V.,           /# )r   Z )ZfilenameZcommand)	ZconfigZrunner_configr   ZgetZgame_configr   r   r   r   )r   Zoption_nameZroms   &  r   playZsnes9x.playM   s    ;;44KOOK););)?)?)LM 5 "";/552!!#&&,c::4++-566     N))ZSDLr
   )ZALSAZ2)ZOSSr   )Z__name__Z
__module__Z__qualname__Z__firstlineno___ZdescriptionZ
human_nameZ	platformsZrunnable_aloneZrunner_executableZ
flatpak_idZuse_sniper_runtimeZgame_optionsZrunner_optionsr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s    -.K8J?#$IN/$J kFKQz]ACD	
L 
<AjM7TUVbTcenpst-Fq}Q45sA&	
 nHQ~&Bs	
!N4$ 7 7r   r   )r   r   Zxml.etree.ElementTreer   ZElementTreer    r   Zlutrisr   Zlutris.exceptionsr   Zlutris.runners.runnerr   Zlutris.utilr   Zlutris.util.logr   r   ZjoinZDATA_DIRZ
SNES9X_DIRr   r   r   r   <module>r      sN    	  % %    8 (  "WW\\(++-=>
C7V C7r   