- option to auto-attach ISO to VMs #20

- added splash screen (ASCII ART) option to skip #21
- Implemented disk options as variables from config #19
- Related changes in config creation / editing menus
This commit is contained in:
OVERLORD7F
2025-09-15 17:44:55 +03:00
parent 1a92e86704
commit 0f6e17a73c
5 changed files with 196 additions and 21 deletions

View File

@@ -7,7 +7,21 @@ from rich.progress import Progress, SpinnerColumn, TextColumn
console = Console()
def show_startup_logo(SVMU_ver):
def get_skip_startup_splash(config_path):
"""Read only skip_startup_splash from config file."""
try:
with open(config_path, "r", encoding="utf-8") as f:
for line in f:
if line.strip().startswith("skip_startup_splash"):
# Example: skip_startup_splash = yes
return line.split("=")[-1].strip().lower()
except Exception:
pass
return "no" # Default if not found
def show_startup_logo(skip_startup_splash, SVMU_ver):
if skip_startup_splash == "yes":
return
splash_file = os.path.join(os.path.dirname(__file__), "splash-screens.txt")
if not os.path.exists(splash_file):
console.print("[bold red]Splash screens file not found![/bold red]")
@@ -43,5 +57,4 @@ def show_startup_logo(SVMU_ver):
os.system('cls' if os.name=='nt' else 'clear') #clears screen before returning
# Example usage:
# show_startup_logo()