victory replay, larger tests of it

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 20:09:57 -06:00
1 parent 1deaf0ebee
commit d7ecfd2bba
9 files changed
+938 -52

No files matched your search

+8 -1
View File
@@ -1303,7 +1303,14 @@ fn timing() -> bool {
pub(crate) fn name(object: &impl Interface, text: impl FnOnce() -> String) {
#[cfg(feature = "diagnostics")]
if crate::replay::record::on() {
crate::replay::record::name(object, &text());
let text = text();
crate::replay::record::name(object, &text);
if dred_on()
&& let Ok(object) = object.cast::<ID3D12Object>()
{
// SAFETY: a plain call on a live object.
let _ = unsafe { object.SetName(&windows::core::HSTRING::from(text)) };
}
return;
}
if dred_on()