mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Remove the need for a preceeding / on android (Allow empty root path)
This commit is contained in:
@@ -83,7 +83,7 @@ public:
|
||||
FSNode *node = new FSNode();
|
||||
node->parent = NULL;
|
||||
node->parentIndex = 0;
|
||||
node->file.filename = "/";
|
||||
node->file.filename = homeDir.isEmpty() ? "" : "/";
|
||||
node->file.flags = PathProperty::Directory;
|
||||
roots.push_back(node);
|
||||
|
||||
|
||||
@@ -358,7 +358,8 @@ void MainWindow::OnCaptureTrigger(const QString &exe, const QString &workingDir,
|
||||
th->wait(500);
|
||||
if(th->isRunning())
|
||||
{
|
||||
ShowProgressDialog(this, tr("Launching %1, please wait...").arg(exe),
|
||||
QString filename = QFileInfo(exe).fileName();
|
||||
ShowProgressDialog(this, tr("Launching %1, please wait...").arg(filename),
|
||||
[th]() { return !th->isRunning(); });
|
||||
}
|
||||
th->deleteLater();
|
||||
|
||||
@@ -1079,7 +1079,7 @@ public:
|
||||
rdcstr GetHomeFolder()
|
||||
{
|
||||
if(Android::IsHostADB(m_hostname.c_str()))
|
||||
return "/";
|
||||
return "";
|
||||
|
||||
{
|
||||
WRITE_DATA_SCOPE();
|
||||
|
||||
Reference in New Issue
Block a user