Skip to content

Commit 671886b

Browse files
committed
fix[patcher]: Re-enable the chat, *hiresnobg, and *hiressnap in shop mode
1 parent 008528d commit 671886b

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ requests==2.27.1
33
xdis
44
uncompyle6
55
typing==3.10.0.0
6+
python-dotenv==0.18.0

t5de/__main__.py

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import sys
5+
import dotenv
56

67
from .patchers import InterfacePatcher, PythonPatcher, ChecksumPatcher
78
from . import Client
@@ -21,4 +22,5 @@ def main():
2122

2223

2324
if __name__ == '__main__':
25+
dotenv.load_dotenv()
2426
sys.exit(main())

t5de/patches/python/EnablePhotoModePatch.py

+15
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ def __init__(self):
66
super(EnablePhotoModePatch, self).__init__()
77

88
self.register('ENABLE_PHOTO_MODE', 'imvu/mode/ShopMode.py', 'def addChatTool')
9+
self.register('ENABLE_CHAT_TOOL', 'imvu/mode/ShopMode.py', 'def addChatTool')
10+
self.register('ENABLE_IN_SHOP_1', 'imvu/client/sessionwindow.py', 'def __hiResSnapshot')
11+
self.register('ENABLE_IN_SHOP_2', 'imvu/client/sessionwindow.py', 'def __hiResSnapshotNoBg')
912

1013
def patch(self, context):
1114
if context.pattern == 'ENABLE_PHOTO_MODE':
@@ -14,3 +17,15 @@ def patch(self, context):
1417
context.write('return [\'invite-friend\']\n', indent=2)
1518

1619
context.write(context.line)
20+
elif context.pattern == 'ENABLE_CHAT_TOOL':
21+
context.write(context.line)
22+
context.skip(1)
23+
context.write('self.addChatToolNoCheck()', indent=2)
24+
25+
context.write(context.line)
26+
elif context.pattern == 'ENABLE_IN_SHOP_1':
27+
context.write(context.line)
28+
context.skip(2)
29+
elif context.pattern == 'ENABLE_IN_SHOP_2':
30+
context.write(context.line)
31+
context.skip(2)

0 commit comments

Comments
 (0)