Commit 680bad87 authored by fangzongwu's avatar fangzongwu

[feat]: get from env

parent e1f2c0e6
...@@ -548,6 +548,8 @@ intercept(int argc, char **argv) ...@@ -548,6 +548,8 @@ intercept(int argc, char **argv)
patch_all_objs = (getenv("INTERCEPT_ALL_OBJS") != NULL); patch_all_objs = (getenv("INTERCEPT_ALL_OBJS") != NULL);
intercept_setup_log(getenv("INTERCEPT_LOG"), intercept_setup_log(getenv("INTERCEPT_LOG"),
getenv("INTERCEPT_LOG_TRUNC")); getenv("INTERCEPT_LOG_TRUNC"));
text_desc_save_file = getenv("INTERCEPT_TEXT_DESC_SAVE_FILE") != NULL;
text_desc_save_dir = getenv("INTERCEPT_TEXT_DESC_SAVE_DIR");
log_header(); log_header();
init_patcher(); init_patcher();
...@@ -566,6 +568,7 @@ intercept(int argc, char **argv) ...@@ -566,6 +568,7 @@ intercept(int argc, char **argv)
activate_patches(objs + i); activate_patches(objs + i);
} }
/* /*
* log_header - part of logging * log_header - part of logging
* This routine outputs some potentially useful information into the log * This routine outputs some potentially useful information into the log
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment