[XEX] Check if header exists during XexInfoCache init
This commit is contained in:
parent
762145687b
commit
34da168284
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue