Merge branch 'master' of https://github.com/benvanik/xenia
This commit is contained in:
commit
f306db970d
|
@ -42,8 +42,9 @@ bool STFSHeader::Read(const uint8_t* p) {
|
||||||
content_type = (STFSContentType)XEGETUINT32BE(p + 0x344);
|
content_type = (STFSContentType)XEGETUINT32BE(p + 0x344);
|
||||||
metadata_version = XEGETUINT32BE(p + 0x348);
|
metadata_version = XEGETUINT32BE(p + 0x348);
|
||||||
if (metadata_version > 1) {
|
if (metadata_version > 1) {
|
||||||
XELOGE("STFSContainer doesn't support version %d yet", metadata_version);
|
// This is a variant of thumbnail data/etc.
|
||||||
return false;
|
// Can just ignore it for now (until we parse thumbnails).
|
||||||
|
XELOGW("STFSContainer doesn't support version %d yet", metadata_version);
|
||||||
}
|
}
|
||||||
content_size = XEGETUINT32BE(p + 0x34C);
|
content_size = XEGETUINT32BE(p + 0x34C);
|
||||||
media_id = XEGETUINT32BE(p + 0x354);
|
media_id = XEGETUINT32BE(p + 0x354);
|
||||||
|
|
|
@ -63,7 +63,11 @@ KernelState* KernelState::shared() {
|
||||||
}
|
}
|
||||||
|
|
||||||
XModule* KernelState::GetModule(const char* name) {
|
XModule* KernelState::GetModule(const char* name) {
|
||||||
if (xestrcasecmpa(name, "xam.xex") == 0) {
|
if (!name) {
|
||||||
|
// NULL name = self.
|
||||||
|
// TODO(benvanik): lookup module from caller address.
|
||||||
|
return GetExecutableModule();
|
||||||
|
} else if (xestrcasecmpa(name, "xam.xex") == 0) {
|
||||||
auto module = emulator_->xam();
|
auto module = emulator_->xam();
|
||||||
module->Retain();
|
module->Retain();
|
||||||
return module;
|
return module;
|
||||||
|
|
Loading…
Reference in New Issue