+
    KiN  c                   st    ^ RI t ^ RI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  ! R R	]	4      tR# )
i    N)gettext)copyfile)MissingGameExecutableError)Runner)system)loggerc                   s2  a  ] tR t^t o ]! R4      t]! R4      .t]! R4      tRtRt	Rt
RRR	R
R]! R4      R]! R4      /.tRRR]! R4      R	R
R]! R4      /RRR]! R4      R	R
R]! R4      /RRR]! R4      R	RRR/.tRRRR/.t]R 4       tR tR tR tRtV tR# ) yuzuZYuzuzNintendo SwitchzNintendo Switch emulatorTzyuzu/yuzu-mainline.AppImagezorg.yuzu_emu.yuzuZoption	main_fileZtypeZfileZlabelzROM fileZhelpz+The game data, commonly called a ROM image.	prod_keyszEncryption keysz$File containing the encryption keys.
title_keysz
Title keyszFile containing the title keys.
fullscreenZ
FullscreenZboolZdefaultZdisable_runtimec                s   RpV F  p\         P                  ! \        P                  P	                  \        P                  P                  V4      R4      4      p\         P                  ! V4      '       g   Kr  VR\        R4      )  u # 	  R# )z Return dir where Yuzu files lie.ZnandN)z~/.local/share/yuzu)r   Zfix_path_caseospathjoinZ
expanduserpath_existsZlen)selfZ
candidatesZ	candidater      &   8/usr/lib/python3.14/site-packages/lutris/runners/yuzu.pyyuzu_data_dirZyuzu.yuzu_data_dir3   sf     .
#I''RWW5G5G	5RTZ([\D!!$''Ns6{l++ $    c                sB   V P                  4       pV P                  P                  R4      pV'       d   VP                  R4       V P                  P                  R4      ;'       g    Rp\
        P                  ! V4      '       g   \        VR7      hVRV.,          pRV/# )zRun the game.r
   z-fr   Z )Zfilenamez-gZcommand)Zget_commandrunner_configgetZappendZgame_configr   r   r   )r   Z	argumentsr
   Zromr   r   playZ	yuzu.play<   s    $$&	''++L9
T""";/552!!#&&,c::dC[ 	9%%r   c                sd   V P                   pV'       g   \        P                  ! R4       R# VR8X  d"   \        P                  P                  VR4      pMAVR8X  d"   \        P                  P                  VR4      pM\        P                  ! RV4       R# V P                  P                  V4      pV'       g   \        P                  ! RV4       R# \        P                  ! V4      '       g   \        P                  ! R	V4       R# \        P                  P                  V4      p\        P                  P                  V4      '       g   \        P                  ! V4       MC\        P                  P                  V4      '       d   \         P"                  ! WC4      '       d   R# \%        WC4       R# )
zUpdate a keys file if setzYuzu data dir not setNr   zkeys/prod.keysr	   zkeys/title.keyszInvalid keys type %s!zNo %s file was set.zKeys file %s does not exist!)r   r   Zerrorr   r   r   r   r   Zdebugr   r   ZwarningZdirnameZexistsZmakedirsZisfilefilecmpZcmpr   )r   key_typer   Zkey_lockeyZkeys_dirs   &&    r   _update_keyZyuzu._update_keyJ   s   **LL01{"ggll=2BCG%ggll=2CDGLL0(;  $$X.LL.9!!#&&NN93?77??7+ww~~h''KK!WW^^G$$S)B)Br   c                s<    R F  pV P                  VR7       K  	  R# )r   )r   N)r   r	   )r   )r   r   s   & r   	prelaunchZyuzu.prelaunchh   s    .Cc* /r    N)Z__name__Z
__module__Z__qualname__Z__firstlineno___Z
human_nameZ	platformsZdescriptionZrunnable_aloneZrunner_executableZ
flatpak_idZgame_optionsZrunner_optionsZsystem_options_overrideZpropertyr   r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s    6J$%&I./KN5$J kFQz]ACD		
L kQ()FA<=		
 lQ|_FA78		
 lQ|_Ft		
N, !)*;YMN, ,&<+ +r   r   )r   r   r    r   Zshutilr   Zlutris.exceptionsr   Zlutris.runners.runnerr   Zlutris.utilr   Zlutris.util.logr   r   r   r   r   <module>r      s+     	    8 (  "^+6 ^+r   