mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-04-02 02:19:57 +08:00
searchFile: search also implicit relative path
This commit is contained in:
parent
8c26e07ceb
commit
4b95be1b39
1 changed files with 6 additions and 0 deletions
|
@ -677,6 +677,12 @@ char *searchFile(const char *pm3dir, const char *suffix, const char *preferredNa
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
// else
|
// else
|
||||||
|
|
||||||
|
// try implicit relative path
|
||||||
|
{
|
||||||
|
if (fileExists(filename))
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
// try pm3 dirs in current workdir (dev mode)
|
// try pm3 dirs in current workdir (dev mode)
|
||||||
const char *exec_path = get_my_executable_directory();
|
const char *exec_path = get_my_executable_directory();
|
||||||
if (exec_path != NULL) {
|
if (exec_path != NULL) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue