From ee1256a676744da3257d5c2ad6fea5dd9b870bfd Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 2 Jan 2024 18:38:38 +0100 Subject: [RCFILE] Add a function to quickly get current process name --- src/tools/rcfile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/tools/rcfile.c') diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c index 53c426ff..97da98a2 100644 --- a/src/tools/rcfile.c +++ b/src/tools/rcfile.c @@ -464,11 +464,15 @@ void GatherDynarecExtensions(); void setupTraceInit(); void setupTrace(); #endif +static char old_name[256] = ""; +const char* GetLastApplyName() +{ + return old_name; +} void ApplyParams(const char* name) { if(!name || !params) return; - static char old_name[256] = ""; int new_cycle_log = cycle_log; int new_maxcpu = box64_maxcpu; if(!strcmp(name, old_name)) { -- cgit 1.4.1