about summary refs log tree commit diff stats
path: root/src/tools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-01-02 18:38:38 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-01-02 18:38:38 +0100
commitee1256a676744da3257d5c2ad6fea5dd9b870bfd (patch)
tree8c7fed6fc01a2905000d33f92ab8e2072aa49aec /src/tools
parenta9837a3aaf83ecddb3d4dff788b2ba48c94e7e82 (diff)
downloadbox64-ee1256a676744da3257d5c2ad6fea5dd9b870bfd.tar.gz
box64-ee1256a676744da3257d5c2ad6fea5dd9b870bfd.zip
[RCFILE] Add a function to quickly get current process name
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/rcfile.c6
1 files changed, 5 insertions, 1 deletions
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)) {