File: 01director_support.rpy

package info (click to toggle)
renpy 8.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 81,768 kB
  • sloc: python: 44,587; ansic: 13,708; javascript: 308; makefile: 41; sh: 13
file content (21 lines) | stat: -rw-r--r-- 478 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
# 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 Exception:

        store.director_readonly = True