mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-07 07:58:58 +00:00
fix: error log open file failed
This commit is contained in:
parent
cfc17759eb
commit
6a2b0eeb1c
1 changed files with 4 additions and 0 deletions
|
@ -233,6 +233,10 @@ void Dialog::delayMs(int ms)
|
||||||
|
|
||||||
QString Dialog::getGameScript(const QString &fileName)
|
QString Dialog::getGameScript(const QString &fileName)
|
||||||
{
|
{
|
||||||
|
if (fileName.isEmpty()) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
QFile loadFile(getKeyMapPath() + "/" + fileName);
|
QFile loadFile(getKeyMapPath() + "/" + fileName);
|
||||||
if (!loadFile.open(QIODevice::ReadOnly)) {
|
if (!loadFile.open(QIODevice::ReadOnly)) {
|
||||||
outLog("open file failed:" + fileName, true);
|
outLog("open file failed:" + fileName, true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue