Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CPUFriendFriend.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import os, sys, plistlib, zipfile, tempfile, binascii, shutil
from warnings import warn
from Scripts import *

class CPUFF:
Expand Down Expand Up @@ -43,7 +44,7 @@ def check_iasl(self,try_downloading=True):
try:
self._download_and_extract(temp,self.iasl_url)
except Exception as e:
print("An error occurred :(\n - {}".format(e))
warn("An error occurred :(\n - {}".format(e))
shutil.rmtree(temp, ignore_errors=True)
# Check again after downloading
return self.check_iasl(try_downloading=False)
Expand Down Expand Up @@ -336,8 +337,12 @@ def main(self):
out = self.r.run({"args":[self.iasl,x]})
if out[2] != 0:
print(out[1])
else:
warn("iasl not found, SSDT not compiled. Network issue?")
os.chdir(cwd)
self.r.run({"args":["open",self.out]})
else:
warn("ResourceConverter not found, Kext not compiled. Network issue?")
print("")
print("Done.")
exit()
Expand Down