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:
1 parent
d9a31188be
commit
7fa012814f
16 files changed
+973
-29
No files matched your search
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user