Package: renpy / 7.3.5+dfsg-1

03_checkdir.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Date: Tue, 12 Jan 2016 18:15:44 +0100
Subject: _checkdir

---
 renpy/main.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/renpy/main.py b/renpy/main.py
index 9dca2b9..fd8aff8 100644
--- a/renpy/main.py
+++ b/renpy/main.py
@@ -254,6 +254,10 @@ def main():
 
     log_clock("Early init")
 
+    # Check if the game directory exists and is a directory
+    if not os.path.isdir(renpy.config.gamedir):
+        raise Exception("The game directory '%s' doesn't exist" % renpy.config.gamedir)
+
     # Note the game directory.
     game.basepath = renpy.config.gamedir
     renpy.config.searchpath = [ renpy.config.gamedir ]