{"success":true,"data":{"ext":"thp","name":"Wii/GameCube videofile","description":"The THP format is a video file format used by Nintendo for GameCube and Wii software. It is used to store cinematic cutscenes, intro sequences, and other embedded video assets in games and related applications. As a legacy console format, it is generally safe to handle, though playback support is limited outside Nintendo-specific tools and emulators, and files from untrusted sources should still be treated with standard caution.","mime":[],"risk_level":"Safe","signatures":[{"hex":"54 48 50 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_thp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid THP by magic bytes.\"\"\"\n    signature = bytes([0x54, 0x48, 0x50, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isTHP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x54, 0x48, 0x50, 0x00]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsTHP(data []byte) bool {\n    signature := []byte{0x54, 0x48, 0x50, 0x00}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}