diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-01-02 18:38:38 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-01-02 18:38:38 +0100 |
| commit | ee1256a676744da3257d5c2ad6fea5dd9b870bfd (patch) | |
| tree | 8c7fed6fc01a2905000d33f92ab8e2072aa49aec /src/tools | |
| parent | a9837a3aaf83ecddb3d4dff788b2ba48c94e7e82 (diff) | |
| download | box64-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.c | 6 |
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)) { |