From a915d9b24a284040278a5c819476f1315d3c3718 Mon Sep 17 00:00:00 2001 From: Barry <870709864@qq.com> Date: Sat, 24 Nov 2018 09:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QtScrcpy/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/QtScrcpy/main.cpp b/QtScrcpy/main.cpp index e43ebec..825b1ec 100644 --- a/QtScrcpy/main.cpp +++ b/QtScrcpy/main.cpp @@ -15,8 +15,10 @@ int main(int argc, char *argv[]) Decoder::init(); QApplication a(argc, argv); - //qputenv("QTSCRCPY_ADB_PATH", "G:\\mygitcode\\QtScrcpy\\src\\adb.exe"); - //qputenv("QTSCRCPY_SERVER_PATH", "G:\\mygitcode\\QtScrcpy\\src\\scrcpy-server.jar"); +#ifdef Q_OS_WIN32 + qputenv("QTSCRCPY_ADB_PATH", "..\\..\\..\\third_party\\adb\\adb.exe"); + qputenv("QTSCRCPY_SERVER_PATH", "..\\..\\..\\third_party\\scrcpy-server.jar"); +#endif //加载样式表 QFile file(":/res/psblack.css");