mirror of
https://github.com/Genymobile/scrcpy
synced 2025-04-11 03:51:30 +00:00
Move common instruction out of ifdef
Both ifdef-branches return server_path.
This commit is contained in:
parent
7229e3cce0
commit
156d958e77
@ -47,8 +47,6 @@ get_server_path(void) {
|
|||||||
LOGE("Could not allocate memory");
|
LOGE("Could not allocate memory");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
// the absolute path is hardcoded
|
|
||||||
return server_path;
|
|
||||||
#else
|
#else
|
||||||
char *server_path = get_local_file_path(SERVER_FILENAME);
|
char *server_path = get_local_file_path(SERVER_FILENAME);
|
||||||
if (!server_path) {
|
if (!server_path) {
|
||||||
@ -58,8 +56,9 @@ get_server_path(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LOGD("Using server (portable): %s", server_path);
|
LOGD("Using server (portable): %s", server_path);
|
||||||
return server_path;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return server_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
Loading…
Reference in New Issue
Block a user