File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff 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).
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments