mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Follow naming conventions.
This commit is contained in:
parent
1a90fa90d6
commit
e9d06e0ec5
1 changed files with 6 additions and 6 deletions
|
@ -45,23 +45,23 @@ int push_cmdscriptfile(char *path, bool stayafter) {
|
|||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
static char *my_executable_path = NULL;
|
||||
static char *my_executable_directory = NULL;
|
||||
static char *g_android_my_executable_path = NULL;
|
||||
static char *g_android_my_executable_directory = NULL;
|
||||
|
||||
const char *get_my_executable_path(void) {
|
||||
return my_executable_path;
|
||||
return g_android_my_executable_path;
|
||||
}
|
||||
|
||||
const char *get_my_executable_directory(void) {
|
||||
if (my_executable_directory != NULL) free(my_executable_directory);
|
||||
if (g_android_my_executable_directory != NULL) free(g_android_my_executable_directory);
|
||||
char buf[1024];
|
||||
// get current work directory
|
||||
getcwd(buf, sizeof(buf));
|
||||
// add / to end.
|
||||
sprintf(buf, "%s%s", buf, PATHSEP);
|
||||
// create on global
|
||||
my_executable_directory = strdup(buf);
|
||||
return my_executable_directory;
|
||||
g_android_my_executable_directory = strdup(buf);
|
||||
return g_android_my_executable_directory;
|
||||
}
|
||||
|
||||
static void set_my_executable_path(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue