+
    Ki  c                   s     ^ RI t ^ RIHt R tR# )i    N)Gamec                sV  a  S P                  RVR,           R24       R V 3R llp\        VR,          4      pVP                  P                  V4       VP	                  4        VP                  W14       \        P                  P                  V4      pS P                  RV R24       R# )	zXOutput a script to a file.
The script is capable of launching a game without the client
zTry creating script for 'ZnameZ'c                s(    V ^8  d   QhR\         RR/# )i   errorZreturnN)ZBaseException)Zformats   "C/usr/lib/python3.14/site-packages/lutris/util/standalone_scripts.pyZ__annotate__Z%generate_script.<locals>.__annotate__   s     A A A$ A    c                 s,   < SP                  R V 4       R# )zUnable to generate script: %sN)Z	exception)r   loggers   &r   on_errorZ!generate_script.<locals>.on_error   s    8%@r   ZidzWrote script to: 'N)	Zinfor    Z
game_errorZregisterZreload_configZwrite_scriptosZpathZabspath)r   Zlaunch_ui_delegateZdb_gameZscript_pathr   ZgameZabsolutePaths   f&&&   r   generate_scriptr      s    
 KK+GFO+<A>?A A DOOX&k677??;/L
KK$\N!45r   )r   Zlutris.gamer    r   ) r   r   <module>r      s    	 6r   