loader/gpu: port VICTORY_OUTPUT resolution patch, F1 output option, and ask_ahead kept early-out
This commit is contained in:
1 parent
c9067a7d3f
commit
84b4509fa3
6 files changed
+451
-6
No files matched your search
@@ -353,6 +353,13 @@ pub fn run(
|
||||
None => println!("frame rate: our clock {ms} ms; the title's own rate (30) left as it is"),
|
||||
}
|
||||
}
|
||||
// Optional output size override (VICTORY_OUTPUT=1280x720, 1664x936, etc.).
|
||||
#[cfg(windows)]
|
||||
if execute {
|
||||
let size = image.info().size_of_image as usize;
|
||||
// SAFETY: the image stays mapped and nothing of it has run yet.
|
||||
unsafe { victory_loader::resolution::apply_asked(image.base(), size) };
|
||||
}
|
||||
if !execute {
|
||||
println!("not executing (pass --execute to start the title)");
|
||||
return Ok(());
|
||||
|
||||
Reference in new issue
Block a user