diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-02-14 20:10:32 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-02-14 20:10:32 +0100 |
| commit | c74c9bd693df180f2f9fb021d3ffddaa8e34f975 (patch) | |
| tree | 556db4993d1272836349ba8613240ef1b0ce7f08 /src/tools | |
| parent | 1daf15c525fbe982fdde7f35e6e9a900943fe3dc (diff) | |
| download | box64-c74c9bd693df180f2f9fb021d3ffddaa8e34f975.tar.gz box64-c74c9bd693df180f2f9fb021d3ffddaa8e34f975.zip | |
Refactored trace to file system, to be more resiliant
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/rcfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c index ec083b5c..ebae7a68 100644 --- a/src/tools/rcfile.c +++ b/src/tools/rcfile.c @@ -392,6 +392,8 @@ void DeleteParams() } extern int ftrace_has_pid; +extern FILE* ftrace; +extern char* ftrace_name; void openFTrace(const char* newtrace); #ifdef DYNAREC void GatherDynarecExtensions(); @@ -457,7 +459,7 @@ void ApplyParams(const char* name) if(param->is_box64_path_present) AppendList(&my_context->box64_path, param->box64_path, 1); if(param->is_trace_file_present) { // open a new ftrace... - if(ftrace_has_pid) { + if(ftrace_name) { fclose(ftrace); } openFTrace(param->trace_file); |