Skip to content

Commit 38f948e

Browse files
committed
Added an NSFW toggler
Credits to yoshisman8
1 parent dca5955 commit 38f948e

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

mods/core/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ def mod_load(self):
5151

5252
modast.get_slscreen('main_menu').children.append(target_display)
5353

54+
# Append the NSFW selection each game
55+
# Credits to yoshisman8 for the code
56+
toggler = modast.find_label("lewdtoggler")
57+
bootup = modast.find_label("nameentry")
58+
modast.call_hook(bootup, toggler)
59+
60+
5461
def mod_complete(self):
5562
# This is called after all mods are loaded, preventing us from getting a partial list of
5663
# mods (say, if core was loaded before myMod1).

mods/core/nsfw.rpy

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
label lewdtoggler
2+
3+
$ nsfwtoggle = False
4+
5+
play sound "fx/system.wav"
6+
7+
s "You have installed mods that may contain NSFW scenes in them."
8+
9+
s "Would you like to have these scenes enabled?"
10+
11+
menu:
12+
"Yes.":
13+
14+
s "You have chosen to enable NSFW scenes."
15+
16+
$ nsfwtoggle = True
17+
18+
"No.":
19+
20+
s "You have chosen to not see the NSFW scenes."
21+
22+
$ nsfwtoggle = False
23+
return

0 commit comments

Comments
 (0)