diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-06-29 19:03:40 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-06-29 19:03:40 +0200 |
commit | f8a584aef10a252460f2cd161826f44afdc3324b (patch) | |
tree | a0cc6ebbcffcc0632b118d01a5875bd1f40f200a /src/qt | |
parent | d0b5c9238acc63ec6def1fd16c47f06f8c682f2e (diff) | |
download | OFQT-f8a584aef10a252460f2cd161826f44afdc3324b.tar.gz OFQT-f8a584aef10a252460f2cd161826f44afdc3324b.zip |
add source sdk path fetching, directly launch OF via sdk executable
- guard Flatpak logic for non Linux UNIX systems
- add /proc check on FreeBSD
- allow arguments when launching OF
- update README
- add alternative launch options to CMakeLists.txt
- add CFLAGS to all libraries and executables
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/qt/workers.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt index 56d16c4..3702ad5 100644 --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -32,6 +32,7 @@ set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) add_executable(${FRONTEND_NAME} WIN32 ${QT_SOURCES}) +target_compile_options(${FRONTEND_NAME} PUBLIC ${CFLAGS}) target_link_libraries(${FRONTEND_NAME} PRIVATE tvn) target_link_libraries(${FRONTEND_NAME} PRIVATE Threads::Threads) target_link_libraries(${FRONTEND_NAME} PRIVATE Qt${QT_VERSION_MAJOR}::Widgets) diff --git a/src/qt/workers.cpp b/src/qt/workers.cpp index 8eb26df..41e8994 100644 --- a/src/qt/workers.cpp +++ b/src/qt/workers.cpp @@ -291,7 +291,7 @@ void Worker::doWork(const enum Worker::Tasks_t ¶meter) { case TASK_RUN: result = getSteamPID() > -1 ? RESULT_EXIT : RESULT_NO_STEAM; - if (result == RESULT_EXIT) runOpenFortress(); + if (result == RESULT_EXIT) runOpenFortress(NULL, 0); break; } |