Skip to content

Commit 45d80e4

Browse files
committed
chore: 移除入口调试日志
删除 entry_bootstrap 中无条件写入 bootstrap_diag.log 的调试代码,避免每次启动都在游戏目录产生额外文件。 入口恢复、崩溃处理、mod 加载与 D3D 初始化顺序保持不变。
1 parent b165735 commit 45d80e4

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/proxy/mod.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -181,18 +181,6 @@ unsafe fn build_entry_stub(entry: *mut u8) -> Option<*mut u8> {
181181
}
182182

183183
unsafe extern "system" fn entry_bootstrap() {
184-
{
185-
use std::io::Write;
186-
if let Ok(mut f) = std::fs::OpenOptions::new()
187-
.create(true)
188-
.append(true)
189-
.open("bootstrap_diag.log")
190-
{
191-
let installed = ptr::addr_of!(HIJACK.installed).read();
192-
let _ = writeln!(f, "entry_bootstrap called, hijack.installed={}", installed);
193-
}
194-
}
195-
196184
if HIJACK.installed {
197185
restore_entry_point();
198186
}

0 commit comments

Comments
 (0)