30 lines
586 B
Python
30 lines
586 B
Python
"""
|
|
Вставляет новые файлы в проект
|
|
|
|
"insert_new": {
|
|
"enabled": true
|
|
}
|
|
"""
|
|
|
|
priority = 0
|
|
|
|
# imports
|
|
import os
|
|
import shutil
|
|
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(
|
|
"./resources/smali_classes4/", "./decompiled/smali_classes4/"
|
|
)
|
|
|
|
return True
|