run: say in the log whether VICTORY_POKE writes into this title build

Nothing in a run's log told whether the launchers' watchdog poke was
applied, so a crash at the watchdog's address could not be told apart
from a run without it (#161). Said at warn, which the launchers log: the
bytes written, or that the list names nothing for this build.
This commit is contained in:
DoubleGhosty
2026-11-29 06:12:12 +01:00
parent 79b07f2166
commit 7a1dadf0ab
3 changed files with 8 additions and 0 deletions

1
Cargo.lock generated
View File

@ -655,6 +655,7 @@ dependencies = [
"blake3",
"clap",
"memchr",
"tracing",
"victory-core",
"victory-game",
"victory-hle",

View File

@ -19,6 +19,7 @@ blake3.workspace = true
memchr.workspace = true
clap.workspace = true
walkdir.workspace = true
tracing.workspace = true
[features]
# Exports D3D12SDKVersion/D3D12SDKPath for the D3D12 Agility SDK (Windows 10;

View File

@ -343,9 +343,15 @@ fn poke(title: &str, base: usize, size: usize) {
return;
};
let pokes = pokes_for(&list, title, size);
// Said at warn, which the launchers log: whether a run had the
// watchdog's flag held is otherwise not in its log (#161).
if pokes.is_empty() {
if !list.trim().eq_ignore_ascii_case("off") {
tracing::warn!(list = %list, title, "VICTORY_POKE: nothing for this title build, nothing written");
}
return;
}
tracing::warn!(?pokes, title, "VICTORY_POKE: these title bytes are written twice a second");
std::thread::spawn(move || {
loop {
for &(rva, byte) in &pokes {