fix[patcher]: Re-enable the chat, *hiresnobg, and *hiressnap in shop mode

This commit is contained in:
2024-05-17 23:28:10 -07:00
parent 60dc9100d5
commit 2299e387b0
3 changed files with 18 additions and 0 deletions

View File

@ -3,3 +3,4 @@ requests==2.27.1
xdis
uncompyle6
typing==3.10.0.0
python-dotenv==0.18.0

View File

@ -2,6 +2,7 @@
import os
import sys
import dotenv
from .patchers import InterfacePatcher, PythonPatcher, ChecksumPatcher
from . import Client
@ -21,4 +22,5 @@ def main():
if __name__ == '__main__':
dotenv.load_dotenv()
sys.exit(main())

View File

@ -6,6 +6,9 @@ class EnablePhotoModePatch(PythonPatch):
super(EnablePhotoModePatch, self).__init__()
self.register('ENABLE_PHOTO_MODE', 'imvu/mode/ShopMode.py', 'def addChatTool')
self.register('ENABLE_CHAT_TOOL', 'imvu/mode/ShopMode.py', 'def addChatTool')
self.register('ENABLE_IN_SHOP_1', 'imvu/client/sessionwindow.py', 'def __hiResSnapshot')
self.register('ENABLE_IN_SHOP_2', 'imvu/client/sessionwindow.py', 'def __hiResSnapshotNoBg')
def patch(self, context):
if context.pattern == 'ENABLE_PHOTO_MODE':
@ -14,3 +17,15 @@ class EnablePhotoModePatch(PythonPatch):
context.write('return [\'invite-friend\']\n', indent=2)
context.write(context.line)
elif context.pattern == 'ENABLE_CHAT_TOOL':
context.write(context.line)
context.skip(1)
context.write('self.addChatToolNoCheck()', indent=2)
context.write(context.line)
elif context.pattern == 'ENABLE_IN_SHOP_1':
context.write(context.line)
context.skip(2)
elif context.pattern == 'ENABLE_IN_SHOP_2':
context.write(context.line)
context.skip(2)