+
    Ki  c                   sx    ^ RI t ^ RIHt ^ RIHt ^ RIHtHtHtH	t	 ^ RI
Ht ^ RIHt ^ RIHt  ! R R	]4      tR# )
i    N)gettext)settings)GameConfigErrorMisconfigurationErrorMissingExecutableErrorMissingGameExecutableError)Runner)system)loggerc                   sr  a a ] tR t^t o]! R4      t]! R4      t]! R4      ]! R4      ]! R4      ]! R4      ]! R4      ]! R4      .t. R5OtR
RRRR]! R4      R]! R4      /.t	R
RRRR]! R4      RR/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R]! R4      R]! R4      RR/R
R RR!R]! R4      R]! R"4      R#R6]! R%4      R&3.RR$/R
R'RRR]! R(4      RR/R
R)RR!R]! R*4      R#]RR	/.t
R+ tR7V3R, lR- lltR8V 3R. lltR7R/ lt]R0 4       t]R1 4       t]R2 4       tR3 tR4tVtV ;t# )9vicezCommodore EmulatorZVicezCommodore 64zCommodore 128zCommodore VIC20zCommodore PETzCommodore Plus/4zCommodore CBM IIc64Zoption	main_fileZtypeZfileZlabelzROM fileZhelpzThe game data, commonly called a ROM image.
Supported formats: X64, D64, G64, P64, D67, D71, D81, D80, D82, D1M, D2M, D4M, T46, P00 and CRT.joyZboolzUse joysticksZdefaultF
fullscreenZsectionZGraphicsZ
FullscreendoublezScale up display by 2Taspect_ratiozPreserve aspect ratiorendererchoicezGraphics rendererZchoicesopenglZSoftwareZsoftware
drivesoundz%Enable sound emulation of disk drivesmachineZMachinec                s    V P                   P                  R 4      pV'       dB   \        V P                  4       F(  w  r#V^,          V8X  g   K  V P                  V,          u # 	  V P                  ^ ,          # )r   )game_configgetZ	enumeratemachine_choices	platforms)selfr   Zindexr   s   &   8/usr/lib/python3.14/site-packages/lutris/runners/vice.pyget_platformZvice.get_platform\   s_    ""&&y1!*4+?+?!@!9'>>%00 "A ~~a      c                s&   < V ^8  d   QhRS[ RS[ /# )i   r   Zreturn)Zstr)format__classdict__s   "r   Z__annotate__Zvice.__annotate__d   s     R Rc RS Rr   c                s~   V'       g   R pR RRRRRRRRR	R
R/p W!,          p\         P                  P                  \        P                  RV,          4      p\         P                  P                  V4      '       g   \        \        R4      V,          4      hV#   \         d   p\        RT,          4      ThRp?ii ; i)r
   Zx64c128Zx128vic20ZxvicpetZxpetplus4Zxplus4cbmiiZxcbm2zvice/bin/%sz'The executable '%s' could not be found.zInvalid machine '%s'N)
ospathjoinr   
RUNNER_DIRZisfiler   _ZKeyErrorr   )r   r   ZexecutablesZ
executableZexeZexs   &&    r   get_executableZvice.get_executabled   s    G5FV6XW
	R$-J'',,x22MJ4NOC77>>#&&,Q/X-Y\_-_``J 	R'(>(HIrQ	Rs   A>B B<$B77B<c                s6   <a V3R  lp\         SV `  WV4       R# )c                  s  < \         P                  ! R 4      p\        P                  P	                  \
        P                  R4      p\         P                  ! V4      '       g/   \        P                  P	                  \
        P                  R4      p\         P                  ! V4      '       g   \        P                  ! R4       M\         P                  ! W!4       S'       d
   S! 4        R# R# )z~/.vicezvice/lib/vicezvice/lib64/vicez%Missing lib folder in the Vice runnerN)r   Zcreate_folderr$   r%   r&   r   r'   path_existsr   ZerrorZmerge_folders)argsZconfig_pathZlib_dircallbacks   *  r   on_runner_installedZ)vice.install.<locals>.on_runner_installedy   s     ..y9Kggll8#6#6HG%%g..'',,x':':<MN%%g..DE$$W:
 r   N)Zsuperinstall)r   Zinstall_ui_delegateZversionr,   r-   	__class__s   &&&f r   r.   Zvice.installx   s    
	 	+6IJr   c                s   V'       g   R pR RRRRRRRRR	R
R/p\         P                  P                  \         P                  P                  V P                  4       4      4      p\         P                  P	                  VRW!,          4      # )r
   C64r   C128r    ZVIC20r!   PETr"   ZPLUS4cmbiiCBM-IIz
lib64/vice)r$   r%   dirnamer)   r&   )r   r   ZpathsZroot_dir   &&  r   get_roms_pathZvice.get_roms_path   sr    G5FW5WX
 77??277??43F3F3H#IJww||HlENCCr   c                s.    R RRRRRRRRRR	R/pW,          # )
r
   ZVICIIr   r    ZVICr!   ZCRTCr"   ZTEDr3    )r   Zprefixes   & r   get_option_prefixZvice.get_option_prefix   s4     7GU6UV
   r   c                s.    R ^R^R^R^ R^R^ /pW,          # )r
   r   r    r!   r"   r3   r8   )r   Zjoydevsr9   r   get_joydevsZvice.get_joydevs   s*    !VQE1gq'STUr   c                s    . pVP                  R 4      '       d4   RRRRRRRRRR	R
R/pW0,          '       d   VP                  W0,          4       VP                  V4       V# )z.crtr
   z-cartcrtr   r    z-cartgenericr!   Nr"   z-cartr3   )Zendswithappend)r   romr+   Z
crt_optionr6   r   get_rom_argsZvice.get_rom_args   sf    <<z
tJ ""J/0Cr   c                sd   V P                   P                  R 4      pV P                  P                  R4      pV'       g   \        \	        R4      4      h\
        P                  ! V4      '       g   \        VR7      hV P                  V4      .p\        P                  P                  V4      pVP                  R4       VP                  V4       V P                  V4      pV P                   P                  R4      '       d!   VP                  RP                  V4      4       V P                   P                  R4      '       d!   VP                  RP                  V4      4       V P                   P                  R	4      '       d4   VP                  R
4       VP                  V P                   R	,          4       V P                   P                  RR4      '       g#   VP                  R4       VP                  R4       V P                   P                  R4      '       d   VP                  R4       V P                   P                  R4      '       dC   \        V P!                  V4      4       F$  pVRP                  V^,           4      R.,          pK&  	  VP#                  V P%                  W4      4       RV/# )r   r   zNo rom provided)Zfilenamez-chdirr   z-{}fullr   z-{}dsizer   z-sdl2rendererr   Tz-sdlaspectmodeZ0r   z-drivesoundr   z	-joydev{}Z4Zcommand)Zrunner_configr   r   r   r(   r   r*   r   r)   r$   r%   r5   r<   r:   r   Zranger;   Zextendr>   )r   r   r=   ZparamsZrom_dirZoption_prefixZdevs   &      r   playZ	vice.play   s	   $$((3"";/!!$5"677!!#&&,c::%%g./''//#&hg..w7!!,//MM)**=9:!!(++MM*++M:;!!*--MM/*MM$,,Z89!!%%nd;;MM*+MM#!!,//MM-(!!%((T--g67;--cAg6<< 8 	d''566""r   r8   ))r0   r
   )r1   r   )r    r    )r2   r!   )zPlus/4r"   )r4   r#   )ZOpenGLr   )N)NN)Z__name__Z
__module__Z__qualname__Z__firstlineno__r(   ZdescriptionZ
human_namer   r   Zgame_optionsZrunner_optionsr   r)   r.   r7   Zstaticmethodr:   r;   r>   r?   Z__static_attributes__Z__classdictcell__Z__classcell__)r/   r   s   @@r   r	   r	      s    ()K6J 	
.	/	
	/	
	
IO kFQz]A=			
L 
5&&'1_3EyRWXlFq}Q|_u	
 hFq}Q./t	
 nFq}Q./t	
 jHq}Q*+,q}j.IJx	
 lFQ>?u		
 iHQy\u	
K,N\!R R(KD 	! 	!      $%# %#r   r	   )r$   r    r(   Zlutrisr   Zlutris.exceptionsr   r   r   r   Zlutris.runners.runnerr   Zlutris.utilr   Zlutris.util.logr   r	   r8   r   r   <module>r@      s-    	    x x (  "Q#6 Q#r   