mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add an abstracted interface around android-specific handling
* This makes it easier to use the same kind of interface to manage other kinds of devices.
This commit is contained in:
@@ -678,7 +678,8 @@ void CaptureDialog::on_exePathBrowse_clicked()
|
||||
{
|
||||
SetExecutableFilename(filename);
|
||||
|
||||
if(m_Ctx.Replay().CurrentRemote().IsADB())
|
||||
if(m_Ctx.Replay().CurrentRemote().Protocol() &&
|
||||
m_Ctx.Replay().CurrentRemote().Protocol()->GetProtocolName() == "adb")
|
||||
{
|
||||
CheckAndroidSetup(filename);
|
||||
}
|
||||
@@ -1122,7 +1123,8 @@ void CaptureDialog::UpdateGlobalHook()
|
||||
|
||||
void CaptureDialog::UpdateRemoteHost()
|
||||
{
|
||||
if(m_Ctx.Replay().CurrentRemote().IsADB())
|
||||
if(m_Ctx.Replay().CurrentRemote().Protocol() &&
|
||||
m_Ctx.Replay().CurrentRemote().Protocol()->GetProtocolName() == "adb")
|
||||
ui->cmdLineLabel->setText(tr("Intent Arguments"));
|
||||
else
|
||||
ui->cmdLineLabel->setText(tr("Command-line Arguments"));
|
||||
|
||||
Reference in New Issue
Block a user