add wivrn+tcp scheme

This commit is contained in:
galister
2024-09-18 18:18:00 +02:00
committed by xytovl
parent 9a39f24541
commit 801bc5bd65
9 changed files with 28 additions and 11 deletions
+6
View File
@@ -959,6 +959,12 @@ application::application(application_info info) :
server_address = data_string.substr(strlen("wivrn://"));
}
if (data_string.starts_with("wivrn+tcp://"))
{
server_address = data_string.substr(strlen("wivrn+tcp://"));
server_tcp_only = true;
}
auto files_dir = ctx.call<jni::object<"java/io/File">>("getFilesDir");
if (auto files_dir_path = files_dir.call<jni::string>("getAbsolutePath"))
{