mirror of
https://github.com/DoubleGhosty/cool_fox.git
synced 2026-12-06 08:38:35 +00:00
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:
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -655,6 +655,7 @@ dependencies = [
|
||||
"blake3",
|
||||
"clap",
|
||||
"memchr",
|
||||
"tracing",
|
||||
"victory-core",
|
||||
"victory-game",
|
||||
"victory-hle",
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user