diff --git a/crates/xcl/src/hle/dstorage.rs b/crates/xcl/src/hle/dstorage.rs index 12c9035..4287601 100644 --- a/crates/xcl/src/hle/dstorage.rs +++ b/crates/xcl/src/hle/dstorage.rs @@ -170,6 +170,14 @@ unsafe fn query(p: *mut c_void, own: &GUID, riid: *const GUID, out: *mut *mut c_ return S_OK; } *out = std::ptr::null_mut(); + // a newer DirectStorage interface version a title asks for: named, so its assert has a cause + if !riid.is_null() { + let (r, o) = (&*riid, own); + crate::xlog_warn!( + "DirectStorage: QueryInterface({:08x}-{:04x}-{:04x}-{:02x?}) on the object of {:08x}-{:04x}-{:04x} refused (E_NOINTERFACE)", + r.data1, r.data2, r.data3, r.data4, o.data1, o.data2, o.data3 + ); + } E_NOINTERFACE } diff --git a/crates/xcl/src/hle/xgameruntime/api.rs b/crates/xcl/src/hle/xgameruntime/api.rs index 70c3468..26977b2 100644 --- a/crates/xcl/src/hle/xgameruntime/api.rs +++ b/crates/xcl/src/hle/xgameruntime/api.rs @@ -372,6 +372,8 @@ unsafe extern "system" fn query_interface(this: *const Obj, iid: *const Guid, ou return S_OK; } *out = std::ptr::null_mut(); + // a title asserting on this (a newer interface version of the class?) ends without a trace otherwise + crate::xlog_warn!("XGameRuntime: {} QueryInterface({}) refused (E_NOINTERFACE) – an interface version XCL's GDK table does not know?", f.name, *iid); E_NOINTERFACE }