示例#1
0
std::string
ArchFileUnix::getPluginDirectory()
{
#if WINAPI_XWINDOWS
	return getProfileDirectory().append("/plugins");
#else
	return getProfileDirectory().append("/Plugins");
#endif
}
示例#2
0
void SettingsManager::Init(std::weak_ptr<LR_IPC_OUT>&& lr_ipc_out,
  std::weak_ptr<ProfileManager>&& profile_manager) {
  lr_ipc_out_ = std::move(lr_ipc_out);

  if (const auto ptr = lr_ipc_out_.lock()) {
      // add ourselves as a listener to LR_IPC_OUT so that we can send plugin
      // settings on connection
    ptr->addListener(this);
  }

  profile_manager_ = std::move(profile_manager);

  if (const auto ptr = profile_manager_.lock()) {
      // set the profile directory
    ptr->setProfileDirectory(getProfileDirectory());
  }
}
void SettingsManager::Init(std::shared_ptr<LR_IPC_OUT>& lr_ipc_out,
  std::shared_ptr<ProfileManager>& profile_manager) {
  lr_ipc_out_ = lr_ipc_out;

  if (lr_ipc_out_) {
      // add ourselves as a listener to LR_IPC_OUT so that we can send plugin
      // settings on connection
    lr_ipc_out_->addListener(this);
  }

  profile_manager_ = profile_manager;

  if (profile_manager_) {
      // set the profile directory
    File profile_directory{getProfileDirectory()};
    profile_manager->setProfileDirectory(profile_directory);
  }
}
示例#4
0
void SettingsManager::Init(LR_IPC_OUT *lr_IPC_OUT, ProfileManager *profileManager)
{
	m_lr_IPC_OUT = lr_IPC_OUT;

	if (m_lr_IPC_OUT)
	{
		// add ourselves as a listener to LR_IPC_OUT so that we can send plugin settings on connection
		m_lr_IPC_OUT->addListener(this);
	}

	m_profileManager = profileManager;

	if (m_profileManager)
	{
		// set the profile directory
		File profileDir(getProfileDirectory());
		profileManager->setProfileDirectory(profileDir);
	}

}