Skip to content

Commit

Permalink
fix[patcher]: Re-enable the chat, *hiresnobg, and *hiressnap in shop …
Browse files Browse the repository at this point in the history
…mode
  • Loading branch information
dhkatz committed May 18, 2024
1 parent 008528d commit 671886b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ requests==2.27.1
xdis
uncompyle6
typing==3.10.0.0
python-dotenv==0.18.0
2 changes: 2 additions & 0 deletions t5de/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import sys
import dotenv

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


if __name__ == '__main__':
dotenv.load_dotenv()
sys.exit(main())
15 changes: 15 additions & 0 deletions t5de/patches/python/EnablePhotoModePatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ def __init__(self):
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':
Expand All @@ -14,3 +17,15 @@ def patch(self, context):
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)

0 comments on commit 671886b

Please sign in to comment.