Disable the encoders that are not compiled in the dashboard
This commit is contained in:
@@ -20,3 +20,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#cmakedefine01 WIVRN_CHECK_CAPSYSNICE
|
#cmakedefine01 WIVRN_CHECK_CAPSYSNICE
|
||||||
|
|
||||||
|
#cmakedefine01 WIVRN_USE_NVENC
|
||||||
|
#cmakedefine01 WIVRN_USE_VAAPI
|
||||||
|
#cmakedefine01 WIVRN_USE_VULKAN_ENCODE
|
||||||
|
#cmakedefine01 WIVRN_USE_X264
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
#include "escape_string.h"
|
#include "escape_string.h"
|
||||||
|
#include "gui_config.h"
|
||||||
#include "rectangle_partitionner.h"
|
#include "rectangle_partitionner.h"
|
||||||
#include "steam_app.h"
|
#include "steam_app.h"
|
||||||
#include "ui_settings.h"
|
#include "ui_settings.h"
|
||||||
@@ -153,6 +154,20 @@ settings::settings(wivrn_server * server_interface) :
|
|||||||
fill_steam_games_list();
|
fill_steam_games_list();
|
||||||
load_settings();
|
load_settings();
|
||||||
|
|
||||||
|
auto encoders = qobject_cast<QStandardItemModel *>(ui->encoder->model());
|
||||||
|
#if !WIVRN_USE_NVENC
|
||||||
|
encoders->item(1)->setEnabled(false);
|
||||||
|
#endif
|
||||||
|
#if !WIVRN_USE_VAAPI
|
||||||
|
encoders->item(2)->setEnabled(false);
|
||||||
|
#endif
|
||||||
|
#if !WIVRN_USE_X264
|
||||||
|
encoders->item(3)->setEnabled(false);
|
||||||
|
#endif
|
||||||
|
#if !WIVRN_USE_VULKAN_ENCODE
|
||||||
|
encoders->item(4)->setEnabled(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
ui->partitionner->set_paint([&](QPainter & painter, QRect rect, const QVariant & data, int index, bool selected) {
|
ui->partitionner->set_paint([&](QPainter & painter, QRect rect, const QVariant & data, int index, bool selected) {
|
||||||
QPalette palette = QApplication::palette();
|
QPalette palette = QApplication::palette();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user