[feat] use CROSSDESK_DEBUG compile-time variable to control config file path

This commit is contained in:
dijunkun
2025-10-31 17:31:50 +08:00
parent 2c622bc76e
commit 43db021326
6 changed files with 12 additions and 4 deletions

View File

@@ -145,6 +145,10 @@ int Render::ConnectTo(const std::string& remote_id, const char* password,
memcpy(&props->params_, &params_, sizeof(Params));
props->params_.user_id = props->local_id_.c_str();
props->peer_ = CreatePeer(&props->params_);
for (auto& display_info : display_info_list_) {
AddVideoStream(peer_, display_info.name.c_str());
}
AddAudioStream(props->peer_, props->audio_label_.c_str());
AddDataStream(props->peer_, props->data_label_.c_str());

View File

@@ -6,7 +6,7 @@
#define NV12_BUFFER_SIZE 1280 * 720 * 3 / 2
#ifdef DESK_PORT_DEBUG
#ifdef CROSSDESK_DEBUG
#else
#define MOUSE_CONTROL 1
#endif