From 34da1682840c4da10222f3085f9fb29af4f2b7bb Mon Sep 17 00:00:00 2001 From: marko1616 Date: Wed, 8 Jan 2025 12:12:48 +0800 Subject: [PATCH] [XEX] Check if header exists during XexInfoCache init --- src/xenia/cpu/xex_module.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xenia/cpu/xex_module.cc b/src/xenia/cpu/xex_module.cc index 8b516618a..509d7c492 100644 --- a/src/xenia/cpu/xex_module.cc +++ b/src/xenia/cpu/xex_module.cc @@ -1397,6 +1397,10 @@ void XexInfoCache::Init(XexModule* xexmod) { }; bool did_exist = try_open(); + if (!GetHeader()) { + return; + } + if (!did_exist) { GetHeader()->version = CURRENT_INFOCACHE_VERSION;