File: 01director_support.rpy

package info (click to toggle)
renpy 7.1.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 107,352 kB
  • sloc: python: 42,124; ansic: 4,781; makefile: 43; sh: 14
file content (23 lines) | stat: -rw-r--r-- 470 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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