Files
renpy/tutorial/game/01director_support.rpy
T
2017-08-14 00:58:59 -04:00

24 lines
470 B
Plaintext

# Disable the director until the director example enables it.
default director.enable = False
python early hide:
import shutil
fn1 = os.path.join(renpy.config.gamedir, "tutorial_director.rpym")
fn2 = os.path.join(renpy.config.gamedir, "tutorial_director.rpy")
try:
if not renpy.session.get("director", False):
shutil.copy(fn1, fn2)
store.director_readonly = False
except:
store.director_readonly = True