ó
Ä‚Œ\c           @  sh   d  d l  m Z d  d l Z d  d l Z e a d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z d S(	   iÿÿÿÿ(   t   print_functionNc      	   K  s¤   z t  j j } t  j j t  j _ x- t  j j D] } t  j j ƒ  j j	 | ƒ q. Wt  j j
 |  d t | t  j j d d d d d t d t ƒ SWd  | t  j _ Xd  S(   Nt
   _transientt   mouset   screent   typet   suppress_overlayt   suppress_underlay(   t   renpyt   configt   quit_actiont   exportst   quitt   layerst   gamet   contextt   scene_listst   cleart   show_screent   Truet   uit   interact(   t   screen_namet   kwargst   old_quitt   i(    (    sl   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\display\error.pyt   call_exception_screen#   s    )c           C  s   t  j j d t ƒ d  S(   Nt   force(   R   R
   t   rollbackR   (    (    (    sl   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\display\error.pyt   rollback_action3   s    c           C  sˆ   t  j j j ƒ  t  j j d k	 r2 t  j j ƒ  n  t  j j sw t  j j	 j
 ƒ  j ƒ  t  j j ƒ  t  j j j j ƒ  n  t  j j ƒ  d S(   sB   
    The minimum amount of code required to init the display.
    N(   R   R   t   preferencest   checkR   t   init_system_stylest   Nonet	   interfacet   displayt   coret	   Interfacet   startt   loadert   index_archivest   imt   cachet   initR   t   reset(    (    (    sl   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\display\error.pyt   init_display7   s    c           C  s   t  j j t ƒ d S(   s:   
    Handles dumps in the case where an error occurs.
    N(   R   t   dumpR   (    (    (    sl   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\display\error.pyt
   error_dumpJ   s    c         C  sÒ  t  a t ƒ  t j j j d k r& t  Sd t j k r9 t  St j	 j
 d ƒ sO t  Sy t ƒ  Wn t  SXt j j d k r{ t  Sd } d } d } y… t j j ƒ  j sÕ t j j rÀ t j j j } n  t j	 j d ƒ } n t j	 j } t j j d ƒ j d k	 rt j j t ƒ } n  Wn n Xyi t j j t d d |  d | d | d	 | d
 | d | ƒt j j d k	 r„t j j j  t j j ƒ n  WnF t j j! k
 r¡‚  n- t j j" j# d ƒ t j j" j$ ƒ  ‚  n Xd S(   sß   
    Reports an exception to the user. Returns True if the exception should
    be raised by the normal reporting mechanisms. Otherwise, should raise
    the appropriate exception to cause a reload or quit or rollback.
    t   runt   RENPY_SIMPLE_EXCEPTIONSt
   _exceptiont   _save_reload_gameiÿÿÿÿt   shortt   fullR   t   reload_actiont   ignore_actiont   traceback_fns   While handling exception:N(%   R   t   error_handledR.   R   R   t   argst   commandt   ost   environR
   t
   has_screenR,   R"   t   drawR    R   t
   init_phaseR   t   rollback_enabledt   errorR   t   curried_call_in_new_contextt   utter_restartt	   next_nodeR   t   returnst   Falset   invoke_in_new_contextR   t   storet   _ignore_actiont   behaviorR/   t   CONTROL_EXCEPTIONSt   logt   writet	   exception(   R3   R4   R7   R6   R   R5   (    (    sl   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\display\error.pyt   report_exceptionR   sX    	 c      	   C  sØ   t  a t ƒ  t j j j d k r& t  Sd t j k r9 t  St j	 j
 d ƒ sO t  St ƒ  t j	 j } y) t j j t d d | d |  d | ƒWnF t j j k
 r§ ‚  n- t j j j d ƒ t j j j ƒ  ‚  n Xd S(	   s¹   
    Reports an exception to the user. Returns True if the exception should
    be raised by the normal reporting mechanisms. Otherwise, should raise
    the appropriate exception.
    R/   R0   t   _parse_errorsR5   t   errorst   error_fns   While handling exception:N(   R   R8   R.   R   R   R9   R:   R;   R<   R
   R=   R,   RC   RG   R   RK   R"   RL   RM   RN   (   RQ   RR   R5   (    (    sl   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\display\error.pyt   report_parse_errors›   s.    	(   t
   __future__R    t   renpy.displayR   R;   RF   R8   R   R   R,   R.   RO   RS   (    (    (    sl   C:\Users\romet\Desktop\TwistedScarlett Patreon Pack #13\FriendshipwithBenefits-0.1-pc\renpy\display\error.pyt   <module>   s   					I