@@ -14,16 +14,16 @@ pub fn init(api: &Api) {
1414
1515 let upsert = find_upsert_function ( api, api. text_base ( ) , api. text_size ( ) , api. game_base ( ) , api. game_size ( ) ) ;
1616 if upsert == 0 {
17- api. log_warn ( "智能成绩屏蔽初始化失败 : UpsertUserAll 未找到,autoplay 时成绩可能上传 " ) ;
17+ api. log_warn ( "score blocking init failed : UpsertUserAll not found, scores may upload during autoplay " ) ;
1818 return ;
1919 }
2020
2121 let Some ( trampoline) = api. hook_create ( upsert, hooked_upsert as * const ( ) as usize ) else {
22- api. log_warn ( "智能成绩屏蔽初始化失败 : UpsertUserAll hook 创建失败 " ) ;
22+ api. log_warn ( "score blocking init failed : UpsertUserAll hook creation failed " ) ;
2323 return ;
2424 } ;
2525 if !api. hook_enable ( upsert) {
26- api. log_warn ( "智能成绩屏蔽初始化失败 : UpsertUserAll hook 启用失败 " ) ;
26+ api. log_warn ( "score blocking init failed : UpsertUserAll hook enable failed " ) ;
2727 return ;
2828 }
2929
@@ -32,7 +32,7 @@ pub fn init(api: &Api) {
3232 ORIG_UPSERT = trampoline;
3333 }
3434 api. log_info ( & format ! (
35- "智能成绩屏蔽已启用 : UpsertUserAll @ 0x{upsert:08X},autoplay 开启时成绩不上传 "
35+ "score blocking enabled : UpsertUserAll @ 0x{upsert:08X}, scores blocked during autoplay "
3636 ) ) ;
3737}
3838
@@ -44,15 +44,15 @@ pub fn shutdown() {
4444 api. hook_remove ( UPSERT_ADDR ) ;
4545 UPSERT_ADDR = 0 ;
4646 }
47- api. log_info ( "智能成绩屏蔽已清理 " ) ;
47+ api. log_info ( "score blocking cleaned up " ) ;
4848 }
4949 }
5050}
5151
5252unsafe extern "C" fn hooked_upsert ( a : * mut c_void , b : * mut c_void , c : * mut c_void ) {
5353 if autoplay:: is_enabled ( ) || autoplay:: was_used ( ) {
5454 if let Some ( api) = API_HANDLE {
55- api. log_info ( "成绩屏蔽: 本次游玩使用过 autoplay,已阻止上传 " ) ;
55+ api. log_info ( "score blocking: autoplay was used, upload blocked " ) ;
5656 }
5757 autoplay:: reset_was_used ( ) ;
5858 return ;
0 commit comments