mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Allow configured adb path to be empty, look for adb in shipped path
* On windows we ship adb.exe under android/ so that there's no configure needed. Look for that file if there isn't an override path.
This commit is contained in:
@@ -186,9 +186,6 @@ void PersistantConfig::AddAndroidHosts()
|
||||
// Set the config setting as it will be reused when we start the remoteserver etc.
|
||||
SetConfigSetting(lit("adbExePath"), adbExePath);
|
||||
|
||||
if(adbExePath.isEmpty())
|
||||
return; // adb path must be non-empty in the Options dialog.
|
||||
|
||||
SetConfigSetting(lit("MaxConnectTimeout"), QString::number(Android_MaxConnectTimeout));
|
||||
|
||||
rdctype::str androidHosts;
|
||||
|
||||
@@ -347,7 +347,10 @@ void SettingsDialog::on_browseAdbPath_clicked()
|
||||
QFileInfo(m_Ctx.Config().Android_AdbExecutablePath).absoluteDir().path());
|
||||
|
||||
if(!adb.isEmpty())
|
||||
{
|
||||
ui->Android_AdbExecutablePath->setText(adb);
|
||||
m_Ctx.Config().Android_AdbExecutablePath = adb;
|
||||
}
|
||||
|
||||
m_Ctx.Config().Save();
|
||||
}
|
||||
@@ -361,7 +364,7 @@ void SettingsDialog::on_Android_MaxConnectTimeout_valueChanged(double timeout)
|
||||
|
||||
void SettingsDialog::on_Android_AdbExecutablePath_textEdited(const QString &adb)
|
||||
{
|
||||
if(QFileInfo::exists(adb))
|
||||
if(QFileInfo::exists(adb) || adb.isEmpty())
|
||||
m_Ctx.Config().Android_AdbExecutablePath = adb;
|
||||
|
||||
m_Ctx.Config().Save();
|
||||
|
||||
Reference in New Issue
Block a user