chg: adding execute/home/current working directory functions to lua
This commit is contained in:
1 parent
23d754c85f
commit
966bcc0d28
5 files changed
+64
-24
No files matched your search
@@ -12,6 +12,7 @@
|
||||
#ifndef PROXMARK3_H__
|
||||
#define PROXMARK3_H__
|
||||
|
||||
#include <unistd.h>
|
||||
#include "common.h"
|
||||
|
||||
#define PROXPROMPT_MAX_SIZE 255
|
||||
@@ -36,6 +37,14 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Load all settings into memory (struct)
|
||||
#ifdef _WIN32
|
||||
#include <direct.h>
|
||||
#define GetCurrentDir _getcwd
|
||||
#else
|
||||
#define GetCurrentDir getcwd
|
||||
#endif
|
||||
|
||||
int push_cmdscriptfile(char *path, bool stayafter);
|
||||
const char *get_my_executable_path(void);
|
||||
const char *get_my_executable_directory(void);
|
||||
|
||||
Reference in new issue
Block a user