forked from anixart-mod/patcher
Перенос resources и добавления assets в патч настроек
This commit is contained in:
+7
-18
@@ -17,31 +17,20 @@ from utils.public import insert_after_public
|
||||
# Patch
|
||||
def apply(config: dict) -> bool:
|
||||
# Mod first launch window
|
||||
shutil.copy("./resources/avatar.png", "./decompiled/assets/avatar.png")
|
||||
shutil.copy(
|
||||
"./resources/OpenSans-Regular.ttf",
|
||||
"./decompiled/assets/OpenSans-Regular.ttf",
|
||||
)
|
||||
shutil.copytree(
|
||||
"./patches/resources/smali_classes4/", "./decompiled/smali_classes4/"
|
||||
"./resources/smali_classes4/", "./decompiled/smali_classes4/"
|
||||
)
|
||||
|
||||
# Mod assets
|
||||
shutil.copy("./patches/resources/avatar.png", "./decompiled/assets/avatar.png")
|
||||
shutil.copy(
|
||||
"./patches/resources/OpenSans-Regular.ttf",
|
||||
"./decompiled/assets/OpenSans-Regular.ttf",
|
||||
)
|
||||
shutil.copy(
|
||||
"./patches/resources/ic_custom_crown.xml",
|
||||
"./decompiled/res/drawable/ic_custom_crown.xml",
|
||||
)
|
||||
shutil.copy(
|
||||
"./patches/resources/ic_custom_telegram.xml",
|
||||
"./decompiled/res/drawable/ic_custom_telegram.xml",
|
||||
)
|
||||
shutil.copy(
|
||||
"./patches/resources/ytsans_medium.ttf",
|
||||
"./resources/ytsans_medium.ttf",
|
||||
"./decompiled/res/font/ytsans_medium.ttf",
|
||||
)
|
||||
os.remove("./decompiled/res/font/ytsans_medium.otf")
|
||||
|
||||
insert_after_public("warning_error_counter_background", "ic_custom_telegram")
|
||||
insert_after_public("warning_error_counter_background", "ic_custom_crown")
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user