Only changed dwords go back into title memory; cheap safe copies; title's own arguments; more shader forms

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 20:28:42 -06:00
1 parent 7913a98a3d
commit 66afb2b4cb
16 files changed
+973 -29

No files matched your search

+5 -2
View File
@@ -179,8 +179,11 @@ fn main() -> Result<()> {
strict,
execute,
console,
title_args: _,
} => run::run(&exe, unimplemented, strict, execute, console),
title_args,
} => {
victory_hle::runtime::set_title_args(title_args);
run::run(&exe, unimplemented, strict, execute, console)
}
Command::Config => show_config(),
}
}
+1 -1
View File
@@ -101,7 +101,7 @@ pub fn run(paths: Vec<PathBuf>, verbose: bool, disasm: bool) -> Result<()> {
};
found_here += 1;
t.containers += 1;
let dxil = container.part(FourCC::DXIL);
let dxil = container.part(FourCC::DXIL).or(container.part(FourCC::ACCC));
t.with_dxil_part += usize::from(dxil.is_some());
let program = dxil.and_then(|p| DxilProgram::parse(p.data).ok());
let mut listing = Vec::new();
+1 -1
View File
@@ -400,7 +400,7 @@ fn translate(
let Ok(container) = Container::parse(&bytes) else {
return t.fail("no DXIL part (SM5 or older)".into(), example);
};
let Some(dxil) = container.part(FourCC::DXIL).map(|p| p.data) else {
let Some(dxil) = container.part(FourCC::DXIL).or(container.part(FourCC::ACCC)).map(|p| p.data) else {
return t.fail("no DXIL part (SM5 or older)".into(), example);
};
// `~`: the hash of the code alone; containers that differ only around