"""Analysis stays outside source, pins tools and never mutates original game code.""" import importlib.util import json import os from pathlib import Path import struct import shlex import sys import tempfile import unittest from unittest.mock import patch sys.path.insert(0,str(Path(__file__).resolve().parents[1])) import analyze_game def nso(): header=bytearray(0x100);header[:4]=b'NSO0' for i in range(3):struct.pack_into('