-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small refinements and start work on VBIOS dumper
- Loading branch information
Showing
7 changed files
with
552 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/usr/bin/env python3 | ||
# pylint: disable=C0301,C0116,C0103,R0903 | ||
|
||
""" | ||
This script was created by Coopydood as part of the ultimate-macOS-KVM project. | ||
https://github.com/user/Coopydood | ||
https://github.com/Coopydood/ultimate-macOS-KVM | ||
Signature: 4CD28348A3DD016F | ||
""" | ||
|
||
# This script should NOT be run directly, but instead from the main "main.py" script. | ||
|
||
|
||
import os | ||
import time | ||
import subprocess | ||
import re | ||
import json | ||
import sys | ||
import argparse | ||
|
||
sys.path.insert(0, 'scripts') | ||
|
||
detectChoice = 1 | ||
latestOSName = "Ventura" | ||
latestOSVer = "13" | ||
runs = 0 | ||
|
||
class color: | ||
PURPLE = '\033[95m' | ||
CYAN = '\033[96m' | ||
DARKCYAN = '\033[36m' | ||
BLUE = '\033[94m' | ||
GREEN = '\033[92m' | ||
YELLOW = '\033[93m' | ||
RED = '\033[91m' | ||
BOLD = '\033[1m' | ||
UNDERLINE = '\033[4m' | ||
END = '\033[0m' | ||
|
||
def startup(): | ||
global detectChoice | ||
print("\n\n Welcome to"+color.BOLD+color.YELLOW,"Dump VBIOS Tool"+color.END,"") | ||
print(" Created by",color.BOLD+"Coopydood\n"+color.END) | ||
print(" This script will attempt to guide you through the process\n of dumping your GPU's VBIOS into a generated ROM file that\n can be used with OVMF.\n") | ||
#print(color.BOLD+"\n"+"Profile:"+color.END,"https://github.com/Coopydood") | ||
#print(color.BOLD+" Repo:"+color.END,"https://github.com/Coopydood/ultimate-macOS-KVM") | ||
print(" Select an option to continue.") | ||
print(color.BOLD+"\n 1. Auto-detect (Recommended)") | ||
print(color.END+" Detects installed GPUs and lets you select one\n") | ||
print(color.END+" 2. Enter VFIO-PCI ID manually...") | ||
print(color.END+" B. Back...") | ||
print(color.END+" Q. Exit\n") | ||
detectChoice = str(input(color.BOLD+"Select> "+color.END)) | ||
|
||
|
||
|
||
|
||
def clear(): print("\n" * 150) | ||
|
||
clear() | ||
startup() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.