³ò
~×YKc        	   @   s•   d  d k  Z  d  d k i Z d  d k Z d  d k Z d  d k Z d  d k Z d  d k l Z l	 Z	 d  d k
 Z
 d „  Z d „  Z d „  Z d „  Z d S(   iÿÿÿÿN(   t   loadst   dumpsc          C   sh   yF t  t i i d d ƒ }  |  i t t i ƒ i d ƒ ƒ |  i	 ƒ  Wn t i i
 o ‚  qd n Xd  S(   Ns   /persistentt   wbt   zlib(   t   filet   renpyt   configt   savedirt   writeR   t   gamet
   persistentt   encodet   closet   debug(   t   f(    (    s2   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\main.pyt   save_persistent   s    c         C   sú  t  i i } | i ƒ  | i t  i i ƒ t  i i ƒ  t _	 t  i
 i t ƒ g t _ t i i d ƒ o
 d } n d } t i ƒ  i | ƒ t  i i i o‚ t  i i t  i i i ƒ } d t  i i _ | p t d ƒ ‚ n t i ƒ  i | ƒ t i i d ƒ o t i ƒ  i d ƒ qn xØ t oÐ t  i i	 d t i ƒ  ƒ t  i i	 d ƒ |  t  i _ d }  y% t i ƒ  i ƒ  t i ƒ  i ƒ  PWqt i j
 oY } | i t  i _ | i } | o. t i i | ƒ o t i ƒ  i | ƒ qéqqqXqWd S(   sp   
    This is called during a single run of the script. Restarting the script
    will cause this to change.
    t   _startt   starts   Could not find line to warp to.t
   after_warps   --- t    N(   R   t   storet   __dict__t   cleart   updateR	   t   clean_storet   pythont   RollbackLogt   logt	   executiont   Contextt   Truet   contextst   scriptt	   has_labelt   contextt
   goto_labelt   optionst   warpt   Nonet	   Exceptiont   callt   exportst   timet   ctimet   _restartt   runt   pop_all_dynamict   RestartExceptiont   label(   t   restartR   t   start_labelR0   t   e(    (    s2   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\main.pyR-   *   sB    


	c         B   sJ   e  i |  ƒ } | i d ƒ } | i ƒ  e i i d |  ƒ | e ƒ  Ud  S(   Ns
   autorun.pyi    (   t   zipfilet   ZipFilet   readR   t   syst   patht   insertt   dict(   t   fnt   zfnt   autorun(    (    s2   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\main.pyt   load_rpeq   s
    
c    
   !   C   s`  d t  i _ t  i i ƒ  t  i i t _ t  i i g t  i _ t i	 t  i i
 ƒ }  t i i |  ƒ o# t  i i i |  ƒ |  t  i _ n d  t  i _ xZ t  i i D]L } xC t i | ƒ D]2 } | i ƒ  i d ƒ o t | d | ƒ q· q· Wq¡ WxQ t i t  i i ƒ D]: } | i d ƒ p qn | d  } t  i i i | ƒ qWt  i i i o t t  i _ n t  i i ƒ  t  i i ƒ  t _ t  i t  i _ d t  i _ t  i i  ƒ  t _ t  i! i" ƒ  o t  i i# ƒ  ‚ n d t  i _ t  i i$ d  j o t i% t  i i ƒ t  i _$ n t  i i i$ o t  i i i$ t  i _$ n y t i& t  i i$ ƒ Wn n Xt  i i i' o- y t i( t  i i$ d ƒ Wn n Xd  Sn yK t) t  i i$ d d	 ƒ } | i* ƒ  i+ d
 ƒ } | i, ƒ  t- | ƒ t _. Wn t i/ ƒ  t _. n Xt i. i0 p h  t i. _0 n t i. i0 t _1 t i. i2 p h  t i. _2 n t i. i3 p h  t i. _3 n t i. i4 p h  t i. _4 n h  t _5 t i. i6 p t i7 ƒ  t i. _6 n t i. i6 t _8 t i. t  i _. t i8 t  i _6 t  i9 i: ƒ  t  i9 i; ƒ  t _9 t i9 t  i _9 d t  i _ t  i< i= t> ƒ g t _? t t _@ x- t i iA D] \ } } t iB ƒ  iC | ƒ qAWt> t _@ d t  i _ t  i i iD ƒ  x t  i iE D] } | ƒ  q–Wt  i9 iF ƒ  t  i i ƒ  t  i iG iH ƒ  t _I d t iJ j t  i _K d t iJ j t  i _L d t iJ j t  i _M t  i i iN o d  Sn t  i i iO o& y t  iO iO ƒ  d  SWqc‚  qcXn d  t i _P t iQ p t  iR iS iT ƒ  t _Q n d  } d t  i _ x¥ t o zr y2 z tC | ƒ Wd  t  i iU d d f } tV ƒ  XWn9 t iW j
 o
 }	 Pn" t iX j
 o }	 |	 iY } n XWd  t  iR iS iZ i[ ƒ  t  i\ i] i^ ƒ  Xq§Wt  iR i_ i` ƒ  d  S(   Ns   Before loading the script.s   .rpet   /s   .rpaiüÿÿÿs   While loading the script.s   After loading the script.s   /persistentt   rbR   s   While executing init code:s,   After initialization, but before game start.t   RENPY_LESS_MEMORYt   RENPY_LESS_MOUSEt   RENPY_LESS_UPDATESs   While running game code:t   _invoke_main_menut
   _main_menu(a   R   R	   t   exception_infoR   t   initt   gamedirt   basepatht
   searchpatht   __main__t   path_to_commont
   renpy_baset   osR8   t   isdirt   appendt	   commondirR&   t   listdirt   lowert   endswithR>   t   archivesR$   t   profileR   t   loadert   index_archivesR   R   R   R   R    t   load_scriptt   parsert   report_parse_errorst   ParseErrorExceptionR   t   path_to_savest   makedirst   rmpersistentt   unlinkR   R6   t   decodeR   R    R
   t
   Persistentt
   _seen_evert	   seen_evert   _seen_imagest   _chosent   _seen_audiot   seen_sessiont   _preferencest   Preferencest   preferencest   stylet   resett   StyleManagerR   R   t   FalseR   t
   init_phaset   initcodeR"   R-   t   save_bytecodet	   post_initt   build_stylesR   t   copyR   t   environt   less_memoryt
   less_mouset   less_updatest   compilet   lintt	   all_stmtst	   interfacet   displayt   coret	   Interfacet   end_game_transitionR   t   QuitExceptiont   FullRestartExceptiont   reasont   cpu_idlet   sett   loadsavet   autosave_not_runningt   waitt   rendert   check_at_shutdown(
   RQ   t   dirR;   t   iR   t   st   priot   nodeR1   R3   (    (    s2   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\main.pyt   mainz   sä       

		 	 

(   R   t
   renpy.gameR	   RN   R7   R*   R4   t   cPickleR    R   RK   R   R-   R>   R‘   (    (    (    s2   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\main.pys   <module>   s   		G		