From 3e216f0553263cfe9de2df51ef11ac3930d73f81 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Sat, 26 May 2018 21:19:34 -0500 Subject: [PATCH] [VFS] Panic when fed a GoD container --- src/xenia/vfs/devices/stfs_container_device.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xenia/vfs/devices/stfs_container_device.cc b/src/xenia/vfs/devices/stfs_container_device.cc index 6e8867809..addcbab04 100644 --- a/src/xenia/vfs/devices/stfs_container_device.cc +++ b/src/xenia/vfs/devices/stfs_container_device.cc @@ -117,6 +117,15 @@ bool StfsContainerDevice::Initialize() { return false; } + if (header_.content_type == StfsContentType::kGamesOnDemand) { + // Special format. This is just GDF packed into a STFS container. + // We can't deal with this at runtime. Ask the user to extract it. + XELOGE( + "GoD containers are unsupported natively! Use a tool to extract the " + "archive."); + return false; + } + result = ReadAllEntries(map_ptr); if (result != Error::kSuccess) { XELOGE("STFS entry reading failed: %d", result);