mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 16:21:48 -05:00
fix issue where not running as root caused crash
This commit is contained in:
parent
65081d42e6
commit
e5c276fbc5
1 changed files with 7 additions and 3 deletions
|
@ -249,10 +249,14 @@ void BackendPipe::receivedData()
|
|||
QByteArray a = m_process->readLine().trimmed();
|
||||
// Their out is our in which is why these are flipped
|
||||
if (m_pipeOutFilename.isEmpty()) {
|
||||
m_pipeOutFilename = a;
|
||||
if (QFile::exists(a)) {
|
||||
m_pipeOutFilename = a;
|
||||
}
|
||||
} else if (m_pipeInFilename.isEmpty()) {
|
||||
m_pipeInFilename = a;
|
||||
emit pipesAvailable(m_pipeInFilename, m_pipeOutFilename);
|
||||
if (QFile::exists(a)) {
|
||||
m_pipeInFilename = a;
|
||||
emit pipesAvailable(m_pipeInFilename, m_pipeOutFilename);
|
||||
}
|
||||
} else {
|
||||
printf("%s\n", a.constData());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue