mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[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();
|
bool did_exist = try_open();
|
||||||
|
if (!GetHeader()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!did_exist) {
|
if (!did_exist) {
|
||||||
GetHeader()->version = CURRENT_INFOCACHE_VERSION;
|
GetHeader()->version = CURRENT_INFOCACHE_VERSION;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue