#!/bin/sh
# ZapOS Classic — boots the original ZapOS (32-bit x86 kernel by ZapGaming) in a VM window.
ISO=/usr/share/zapos/zapos.iso
[ -f "$ISO" ] || { notify-send "ZapOS Classic" "ZapOS image is missing"; exit 1; }
exec qemu-system-i386 -name "ZapOS Classic" -m 256 -smp 1 \
  -cdrom "$ISO" -boot d -vga std -display gtk,zoom-to-fit=on,show-menubar=off \
  -netdev user,id=n0 -device rtl8139,netdev=n0 -audiodev pipewire,id=snd0 -machine pcspk-audiodev=snd0 \
  -no-reboot
