+
    Ki	  c                   s*   ^ RI t ^ 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IHt ^ R	IHt ]P&                  P)                  ]P&                  P+                  R
4      R4      t ! R R]4      t ! R R]
4      t ! R R]4      tR# )i    N)ConfigParser)gettext)settings)BaseService)ServiceGame)ServiceMedia)system)slugifyz~/.config/scummvmzscummvm.inic                   s@    ] tR t^tRtRtRtR.t]P                  t
RtR# )ScummvmBannerscummvmlocalz%s.png N)i`   i    )__name__
__module____qualname____firstlineno__serviceZsourceZsizeZfile_patternsr   Z	CACHE_DIRZ	dest_path__static_attributes__r       </usr/lib/python3.14/site-packages/lutris/services/scummvm.pyr   r      s#    GFDJM""Ir   r   c                   s\   a  ] tR t^t o RtRt]! R4      tRtR]	/t
R tR tR tR tR	tV tR
# )ScummvmServicer	   ScummVMTiconc                s$   \         P                  ! \        4      '       g   R # \        4       pVP	                  \        4       VP                  4       pV F  pVR8X  d   K  \        4       pW,          R,          Vn        \        \        P                  ! RVP                  4      ^ ,          4      Vn        W4n        RVn        VP                  Vn        \        P                   ! RW,          R,          /4      Vn        VP%                  4        K  	  R # )Nr	   Zdescriptionz \(.*\)$path)r   Zpath_existsSCUMMVM_CONFIG_FILEr    ZreadZsectionsScummvmGamenamer   reZsplitslugappidrunnerlutris_slugjsonZdumpsdetailsZsave)selfZconfigZconfig_sectionsZsectiongames   &    r   loadZScummvmService.load!   s    !!"566'( //+&G)#=D6DIdii @ CDDI J#DK#yyD::vvv/F&GHDLIIK 'r   c                s    \         P                  ! VR ,          4      pRVR,          RRRVR,          RV P                  V4      RV P                  V4      RRR	VR
,          RVR,          ///# )r!   r   Zversionr   r   Z	game_slugr   Zscriptr#   Zgame_idr   r   )r    Zloadsget_installed_slugget_installed_runner_name)r"   db_gamer!   s   && r   generate_installerZ!ScummvmService.generate_installer5   sy    **WY/0GFOyGFO009d44W=ww/GFO
 	
r   c                sX    VP                  R 4      ;'       g    \        VR,          4      # )r   r   )Zgetr   r"   r'      &&r   r%   Z!ScummvmService.get_installed_slugE   s"    {{=)EEWWV_-EEr   c                s    R # )r	   r   r)   r*   r   r&   Z(ScummvmService.get_installed_runner_nameH   s    r   r   N)r   r   r   r   Zidr   _r   r
   r   Zmediasr$   r(   r%   r&   r   Z__classdictcell__)Z__classdict__s   @r   r   r      sA     	BDY<DEm$F(
 F r   r   c                   s    ] tR t^LtRtRtRtR# )r   r	   r   N)r   r   r   r   r   r   r   r   r   r   r   r   L   s    GFr   r   )r    Zosr   Zconfigparserr    r   r+   Zlutrisr   Zlutris.services.baser   Zlutris.services.service_gamer   Zlutris.services.service_mediar   Zlutris.utilr   Zlutris.util.stringsr   r   ZjoinZ
expanduserr   r   r   r   r   r   r   <module>r,      sp     	 	 %    , 4 6  'ggll277#5#56I#JMZ #L #/[ /d+ r   