mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
fix ressource path problem on windows
This commit is contained in:
parent
be8f50574d
commit
39c6814242
1 changed files with 2 additions and 0 deletions
|
|
@ -196,6 +196,7 @@ int main (int argc, char *argv[])
|
|||
|
||||
liblinphone_tester_init(NULL);
|
||||
|
||||
#ifndef WIN32 /*this hack doesn't work for argv[0]="c:\blablab\"*/
|
||||
// this allows to launch tester from outside of tester directory
|
||||
if (strstr(argv[0], ".libs")) {
|
||||
int prefix_length = strstr(argv[0], ".libs") - argv[0] + 1;
|
||||
|
|
@ -205,6 +206,7 @@ int main (int argc, char *argv[])
|
|||
bc_tester_set_writable_dir_prefix(prefix);
|
||||
ms_free(prefix);
|
||||
}
|
||||
#endif
|
||||
|
||||
for(i = 1; i < argc; ++i) {
|
||||
if (strcmp(argv[i], "--verbose") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue