ó
26ic           @   s  d  d l  Z d Z g  Z d Z d Z g  Z d Z e	 Z
 d Z d Z d Z i  Z d Z d Z e	 Z g  Z e	 Z e	 Z e	 Z e	 Z d Z d Z d e f d     YZ d e f d     YZ d e f d	     YZ d
 e f d     YZ d e f d     YZ d e f d     YZ  d e f d     YZ! d e f d     YZ" d e f d     YZ# d e f d     YZ$ d e f d     YZ% e e e e e  e! e" e# e$ e% e& f Z' d  d  Z( d   Z) d   Z* i  d  Z+ e	 re j j,   Z e j- j. j/   Z e j0 j1   Z e j j2   Z n  d S(   i˙˙˙˙Nt    i    t   ExceptionInfoc           B   s)   e  Z d  Z d   Z d   Z d   Z RS(   sÂ   
    Context manager that sets exception_info iff an exception occurs.

    `s`
        A percent-format string to use.
    `args`
        The arguments that are percent-formatted with `s`.
    c         C   s   | |  _  | |  _ d  S(   N(   t   st   args(   t   selfR   R   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt   __init__k   s    	c         C   s   d  S(   N(    (   R   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt	   __enter__o   s    c         C   s#   | r |  j  |  j t j _ n  t S(   N(   R   R   t   renpyt   gamet   exception_infot   False(   R   t   exc_typet   exc_valt   exc_tb(    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt   __exit__r   s    (   t   __name__t
   __module__t   __doc__R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR   a   s   		t   RestartContextc           B   s   e  Z d  Z d   Z RS(   sk   
    Restarts the current context. If `label` is given, calls that label
    in the restarted context.
    c         C   s   | |  _  d  S(   N(   t   label(   R   R   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR      s    (   R   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR   y   s   t   RestartTopContextc           B   s   e  Z d  Z d   Z RS(   sg   
    Restarts the top context. If `label` is given, calls that label
    in the restarted context.
    c         C   s   | |  _  d  S(   N(   R   (   R   R   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR      s    (   R   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR      s   t   FullRestartExceptionc           B   s   e  Z d  Z d d  Z RS(   st   
    An exception of this type forces a hard restart, completely
    destroying the store and config and so on.
    t   end_gamec         C   s   | |  _  d  S(   N(   t   reason(   R   R   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR      s    (   R   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR      s   t   UtterRestartExceptionc           B   s   e  Z d  Z RS(   st   
    An exception of this type forces an even harder restart, causing
    Ren'Py and the script to be reloaded.
    (   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR      s   t   QuitExceptionc           B   s   e  Z d  Z e d d  Z RS(   s'  
    An exception of this class will let us force a safe quit, from
    anywhere in the program.

    `relaunch`
        If given, the program will run another copy of itself, with the
        same arguments.

    `status`
        The status code Ren'Py will return to the operating system.
    i    c         C   s#   t  j |   | |  _ | |  _ d  S(   N(   t	   ExceptionR   t   relauncht   status(   R   R   R   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR   Ť   s    	(   R   R   R   R
   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR      s   t   JumpExceptionc           B   s   e  Z d  Z RS(   sŽ   
    This should be raised with a label as the only argument. This causes
    the current statement to terminate, and execution to be transferred
    to the named label.
    (   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR   ą   s   t   JumpOutExceptionc           B   s   e  Z d  Z RS(   s   
    This should be raised with a label as the only argument. This exits
    the current context, and then raises a JumpException.
    (   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR   š   s   t   CallExceptionc           B   s    e  Z d  Z d   Z d   Z RS(   s   
    Raise this exception to cause the current statement to terminate,
    and control to be transferred to the named label.
    c         C   s,   t  j |   | |  _ | |  _ | |  _ d  S(   N(   R   R   R   R   t   kwargs(   R   R   R   R    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR   Ć   s    		c         C   s   t  |  j |  j |  j f f S(   N(   R   R   R   R    (   R   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt
   __reduce__Í   s    (   R   R   R   R   R!   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR   Ŕ   s   	t	   EndReplayc           B   s   e  Z d  Z RS(   s_   
    Raise this exception to end the current replay (the current call to
    call_replay).
    (   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR"   Ń   s   t   ParseErrorExceptionc           B   s   e  Z d  Z RS(   s_   
    This is raised when a parse error occurs, after it has been
    reported to the user.
    (   R   R   R   (    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyR#   Ř   s   c         C   s   t  |  S(   sj   
    Return the current execution context, or the context at the
    given index if one is specified.
    (   t   contexts(   t   index(    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt   contextď   s    c         O   sú   t  j j t t d d t } t j |  t  j j d k	 rQ t  j j j
   n  zW y |  | |   SWn? t  j j k
 rŚ } t t d _ t  j j | j d   n XWd | j   t j   t d j   t rő t j rő t rő d t d j _ n  Xd S(   s   
    :doc: label

    This pushes the current context, and invokes the given python
    function in a new context. When that function returns or raises an
    exception, it removes the new context, and restores the current
    context.

    Additional arguments and keyword arguments are passed to the
    callable.

    Please note that the context so created cannot execute renpy
    code. So exceptions that change the flow of renpy code (like
    the one created by renpy.jump) cause this context to terminate,
    and are handled by the next higher context.

    If you want to execute renpy code from the function, you can call
    it with renpy.call_in_new_context.

    Use this to begin a second interaction with the user while
    inside an interaction.
    i˙˙˙˙t   cleariţ˙˙˙i    N(   R   t	   executiont   ContextR
   R$   t   Truet   appendt   displayt	   interfacet   Nonet   enter_contextR   R   t   force_checkpointR   R   t   pop_all_dynamict   popt   do_deferred_rollbackt   restart_interactiont   scene_listst   focused(   t   callableR   R    R&   t   e(    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt   invoke_in_new_contextř   s     !

c         O   sN  t  j j t t d d t } t j |  t  j j d k	 rQ t  j j j
   n  | rf | t  j _ n d t  j _ | r t  j j |  t  j _ n d t  j _ zg y! | j |   t  j j t  SWn? t  j j k
 r} t t d _ t  j j | j d   n XWd t j   t d j   t rIt j rIt rId t d j _ n  Xd S(   sF  
    :doc: label

    This code creates a new context, and starts executing code from
    that label in the new context. Rollback is disabled in the
    new context. (Actually, it will just bring you back to the
    real context.)

    Use this to begin a second interaction with the user while
    inside an interaction.
    i˙˙˙˙R'   iţ˙˙˙i    N(   R   R(   R)   R
   R$   R*   R+   R,   R-   R.   R/   t   storet   _argst   pythont   RevertableDictt   _kwargst
   goto_labelt   run_contextR   R   R0   R   R   R2   R3   R4   R5   R6   (   R   R   R    R&   R8   (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt   call_in_new_context*  s*     !
c         C   sž  t  j j j   t  j j } t  j j   t  j _ t  j j   } t  j j   t  j j	 t
  } t j |  t  j j d k	 r t  j j j   n  x3 t  j j j   D] \ } } t t  j | |  q¤ Wx- | j   D] \ } } t t  j | |  qÔ W|  t  j _ z9 y! | j d  t  j j t  Wn t k
 r:n XWd | j   t j   | t  j _ | j   t rt j rt rd t d j _  n  d t  j _! Xt  j j" rşt  j j"   n  d S(   s   
    :doc: replay

    Calls a label as a memory.

    Keyword arguments are used to set the initial values of variables in the
    memory context.
    t   _start_replayNi˙˙˙˙(#   R   R   t   logt   completeR<   t   RollbackLogt   StoreBackupt   clean_storesR(   R)   R*   R$   R+   R,   R-   R.   R/   t   configt   replay_scopet	   iteritemst   setattrR:   t
   _in_replayR?   R@   R
   R"   R1   R2   t   restoreR4   R5   R6   t   skippingt   after_replay_callback(   R   t   scopet   old_logt   sbR&   t   kt   v(    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt   call_replayY  s:    
 


(3   t   renpy.displayR   R.   t   basepatht
   searchpathR   t   scriptR$   R-   R
   t   lintRC   R	   t   stylet   seen_sessiont   seen_translates_countt   new_translates_countt   after_rollbackt	   post_initt   less_memoryt   less_updatest
   less_mouset   less_imagedissolvet
   persistentt   preferencest   objectR   R   R   R   R   R   R   R   R   R   R"   R#   t   KeyboardInterruptt   CONTROL_EXCEPTIONSR&   R9   RA   RU   t   ScriptR,   t   coret	   InterfaceR<   RE   t   Preferences(    (    (    sY   Z:\home\souce\.local\share\Steam\steamapps\common\Doki Doki Literature Club\renpy\game.pyt   <module>   sh   


				2	/9