mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 14:18:45 +00:00
fix: config path bug on mac
This commit is contained in:
parent
fc2929e2b9
commit
b37cfb66bc
2 changed files with 3 additions and 2 deletions
|
@ -44,6 +44,7 @@ int main(int argc, char *argv[])
|
||||||
g_msgType = covertLogLevel(Config::getInstance().getLogLevel());
|
g_msgType = covertLogLevel(Config::getInstance().getLogLevel());
|
||||||
|
|
||||||
// set on QApplication before
|
// set on QApplication before
|
||||||
|
// bug: config path is error on mac
|
||||||
int opengl = Config::getInstance().getDesktopOpenGL();
|
int opengl = Config::getInstance().getDesktopOpenGL();
|
||||||
if (0 == opengl) {
|
if (0 == opengl) {
|
||||||
QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
|
QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#define COMMON_PUSHFILE_DEF "/sdcard/"
|
#define COMMON_PUSHFILE_DEF "/sdcard/"
|
||||||
|
|
||||||
#define COMMON_SERVER_VERSION_KEY "ServerVersion"
|
#define COMMON_SERVER_VERSION_KEY "ServerVersion"
|
||||||
#define COMMON_SERVER_VERSION_DEF "1.12.1"
|
#define COMMON_SERVER_VERSION_DEF "1.14"
|
||||||
|
|
||||||
#define COMMON_SERVER_PATH_KEY "ServerPath"
|
#define COMMON_SERVER_PATH_KEY "ServerPath"
|
||||||
#define COMMON_SERVER_PATH_DEF "/data/local/tmp/scrcpy-server.jar"
|
#define COMMON_SERVER_PATH_DEF "/data/local/tmp/scrcpy-server.jar"
|
||||||
|
@ -77,7 +77,7 @@ Config &Config::getInstance()
|
||||||
static Config config;
|
static Config config;
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
#include <QDebug>
|
|
||||||
const QString &Config::getConfigPath()
|
const QString &Config::getConfigPath()
|
||||||
{
|
{
|
||||||
if (s_configPath.isEmpty()) {
|
if (s_configPath.isEmpty()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue