Browse Source
Update patch.py
Signed-off-by: elseif <elseif@live.cn>
pull/118/head
elseif
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
patch.py
|
|
|
@ -283,12 +283,12 @@ def patch_kernel(data:bytes,key_dict): |
|
|
|
|
|
|
|
def patch_loader(loader_file): |
|
|
|
try: |
|
|
|
from loader import patch_loader |
|
|
|
from loader.patch_loader import patch_loader as do_patch_loader |
|
|
|
if 'ARCH' in os.environ and os.environ['ARCH'] == '-arm64': |
|
|
|
arch = 'arm64' |
|
|
|
else: |
|
|
|
arch = 'x86' |
|
|
|
patch_loader(loader_file,loader_file,arch) |
|
|
|
do_patch_loader(loader_file,loader_file,arch) |
|
|
|
except ImportError: |
|
|
|
print("loader module not found. cannot run patch_loader.py") |
|
|
|
|
|
|
|
|