mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-24 03:50:14 +10:00
Support crash logging in CLI code
This commit is contained in:
@@ -52,6 +52,10 @@ class EntryPoint:
|
||||
patches = sys_patch_detect.DetectRootPatch(self.constants.computer.real_model, self.constants).detect_patch_set()
|
||||
|
||||
logging.info(f"Entry point set: {entry.__name__}")
|
||||
|
||||
# Normally set by main.py, but transitions from CLI mode may not have this set
|
||||
self.constants.gui_mode = True
|
||||
|
||||
self.frame: wx.Frame = entry(
|
||||
None,
|
||||
title=f"{self.constants.patcher_name} ({self.constants.patcher_version})",
|
||||
|
||||
@@ -52,6 +52,9 @@ class UpdateFrame(wx.Frame):
|
||||
version_label = dict[key]["Version"]
|
||||
url = dict[key]["Link"]
|
||||
break
|
||||
else:
|
||||
wx.MessageBox("Failed to get update info", "Critical Error")
|
||||
sys.exit(1)
|
||||
|
||||
self.version_label = version_label
|
||||
self.url = url
|
||||
|
||||
Reference in New Issue
Block a user