Skip to content

Commit c16732d

Browse files
AWSWCommunityAWSWCommunity
authored andcommitted
Add extra debug information
1 parent 3a53c8b commit c16732d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

modloader/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def get_mod_path():
2727
renpy.config.searchpath.append(resource_dir)
2828

2929
# Try importing the mod. If all goes well, the mod is imported through the Mod class
30+
print("Begin mod load: {}".format(mod))
3031
try:
3132
importlib.import_module(mod)
3233
except Exception, e:

modloader/modinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
modlist = []
12

23
def add_mod(mod_name, mod):
34
print("Adding mod {}".format(mod_name))

mods/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ def mod_load(self):
4747
def mod_complete(self):
4848
# This is called after all mods are loaded, preventing us from getting a partial list of mods (say, if core was loaded before myMod1).
4949
# Rpy python globals are stored in renpy.python.store_dicts["store"], so to access our data from the screen later, we need to put it in this dictionary.
50-
ml.setRGlobal('modsDesc', ', '.join(modinfo.modlist))
50+
ml.setRGlobal('modsDesc', ', '.join([mod_name for mod_name in modinfo.modlist]))

0 commit comments

Comments
 (0)