#!/usr/bin/env python3 """Verify that CPS game output carries both MSVC and GCC/Clang startup hooks. Usage: python test_msvc_cps_codegen.py [--recompiler ] """ import argparse import os import struct import subprocess import sys import tempfile LOAD = 0x80010000 def make_exe(): header = bytearray(2048) header[0:8] = b"PS-X EXE" struct.pack_into("