+
    Kir  c                   st    R t ^ RIt^ RIHt ^ RIHt ^ RIHtHt ^ RI	H
t
 ^ RIHt ^ RIHt  ! R R	]
4      tR# )
zXenia Runner (Wine-based)N)gettext)settings)MissingExecutableErrorMissingGameExecutableError)wine)system)get_default_wine_versionc                   s  a  ] tR t^t o ]! R4      t]! R4      t]! R4      .tRtRt	Rt
RtR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R]! R4      R]! R4      R3.RRR]! R4      /.tR	RR
RR]! R 4      RR/.]P                  ,           tR	R!RR/.t]R" 4       t]R# 4       t]R$ 4       tR*R& ltR+R' ltR( tR)tV tR%# ),xeniaZXeniazXbox 360 EmulatorzMicrosoft Xbox 360TFzxenia/xenia_canary.exezghttps://github.com/xenia-canary/xenia-canary-releases/releases/latest/download/xenia_canary_windows.zip	main_fileZoptionZtypeZfileZlabelz	Game fileZhelpzPath to .xex or .iso fileZdefault_path	game_pathprefix	directoryzWine prefixz/Wine prefix for Xenia. Leave empty for default.ZarchZchoicezPrefix architectureZchoicesz64-bitwin64defaultz#Xenia requires a 64-bit Wine prefix
fullscreenZboolZ
FullscreenZdisable_runtimec                sr    \         P                  P                  \        P                  V P
                  4      # )z0Return path to the managed Xenia Windows binary.)ospathjoinr   Z
RUNNER_DIRrunner_executableself   &9/usr/lib/python3.14/site-packages/lutris/runners/xenia.pygame_exeZxenia.game_exe<   s%     ww||H//1G1GHH    c                s    V P                   P                  R4      pV'       d    \        P                  P	                  V4      # \        P                  P                  V P                  R4      # )zEReturn prefix path, defaulting to a location in the runner directory.r
   )game_configgetr   r   Z
expanduserr   r   )r   r
   s   & r   prefix_pathZxenia.prefix_pathA   sK     !!%%h/77%%f--ww||DNNH55r   c                s    R# )zXenia requires 64-bit.r    r   r   r   	wine_archZxenia.wine_archI   s     r   Nc                s   V P                   P                  V P                   P                  3 FC  pV P                  V9   g   K  W P                  ,          P	                  R4      pV'       g   KA  Vu # 	  V'       d   V# \        4       # )z<Read Wine version from config using the correct runner slug.version)ZconfigZ
game_levelZrunner_levelZnamer   r   )r   r   ZlevelZrunner_versions   &&  r   read_version_from_configZxenia.read_version_from_configN   sg    kk,,dkk.F.FGEyyE!!&yy!1!5!5i!@!>))	 H
 N'))r   c                sT    \         P                  P                  V P                  4      # )z'Check if the Xenia binary is installed.)r   r   Zisfiler   )r   Zflatpak_allowedr   Zfallbacks   &&&&r   is_installedZxenia.is_installedY   s    ww~~dmm,,r   c                s   RV P                  RR7      /pV P                  p\        P                  ! V4      '       g   \	        \        R4      V,          4      hV P                  4       pVP                  V4       V P                  P                  R4      '       d   VP                  R4       V P                  P                  R4      ;'       g    Rp\        P                  ! V4      '       g   \        VR	7      hVP                  V4       W1R
&   V# )z1Launch an Xbox 360 game through Xenia under Wine.ZenvF)Zos_envz"Xenia executable not found at '%s'r   z--fullscreenr   Z )Zfilenamecommand)Zget_envr   r   Zpath_existsr   _Zget_commandZappendZrunner_configr   r   r   )r   Zlaunch_infoZ	xenia_exer!   r	   s   &    r   playZ
xenia.play]   s    dll%l89MM	!!),,(+O)PS\)\]]""$y!!!,//NN>*$$((5;;	!!),,,i@@y!!(Ir   r   )N)TNT)Z__name__Z
__module__Z__qualname__Z__firstlineno__r"   Z
human_nameZdescriptionZ	platformsZrunnable_aloneZmultiple_versionsr   Zdownload_urlZentry_point_optionZgame_optionsr   Zrunner_optionsZsystem_options_overrideZpropertyr   r   r   r   r    r#   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      sw    7J'(K'()IN0q  % kFQ{^A12K	
 hKQ}%AGH		
 fHQ,-8g./wA;<	
L4 lFQ|_t		
 	N !)*;YMNI I 6 6  	*- r   r   )Z__doc__r   r    r"   Zlutrisr   Zlutris.exceptionsr   r   Zlutris.runners.winer   Zlutris.utilr   Zlutris.util.wine.winer   r   r   r   r   <module>r$      s+     	    P $  :dD dr   