diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/web_service/web_backend.cpp | 4 | ||||
| -rw-r--r-- | src/yuzu/CMakeLists.txt | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 95f8b5d4a..378d8128d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -395,6 +395,7 @@ create_target_directory_groups(core) | |||
| 395 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) | 395 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) |
| 396 | target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt lz4_static mbedtls opus unicorn open_source_archives) | 396 | target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt lz4_static mbedtls opus unicorn open_source_archives) |
| 397 | if (ENABLE_WEB_SERVICE) | 397 | if (ENABLE_WEB_SERVICE) |
| 398 | add_definitions(-DENABLE_WEB_SERVICE) | ||
| 398 | target_link_libraries(core PUBLIC json-headers web_service) | 399 | target_link_libraries(core PUBLIC json-headers web_service) |
| 399 | endif() | 400 | endif() |
| 400 | 401 | ||
diff --git a/src/web_service/web_backend.cpp b/src/web_service/web_backend.cpp index 5df4df5eb..787b0fbcb 100644 --- a/src/web_service/web_backend.cpp +++ b/src/web_service/web_backend.cpp | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | namespace WebService { | 14 | namespace WebService { |
| 15 | 15 | ||
| 16 | constexpr char API_VERSION[]{"1"}; | 16 | constexpr std::array<const char, 1> API_VERSION{'1'}; |
| 17 | 17 | ||
| 18 | constexpr u32 HTTP_PORT = 80; | 18 | constexpr u32 HTTP_PORT = 80; |
| 19 | constexpr u32 HTTPS_PORT = 443; | 19 | constexpr u32 HTTPS_PORT = 443; |
| @@ -70,7 +70,7 @@ Common::WebResult Client::GenericJson(const std::string& method, const std::stri | |||
| 70 | }; | 70 | }; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | params.emplace(std::string("api-version"), std::string(API_VERSION)); | 73 | params.emplace(std::string("api-version"), std::string(API_VERSION.begin(), API_VERSION.end())); |
| 74 | if (method != "GET") { | 74 | if (method != "GET") { |
| 75 | params.emplace(std::string("Content-Type"), std::string("application/json")); | 75 | params.emplace(std::string("Content-Type"), std::string("application/json")); |
| 76 | }; | 76 | }; |
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index f93ba2569..04464ad5e 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt | |||
| @@ -120,6 +120,10 @@ target_link_libraries(yuzu PRIVATE common core input_common video_core) | |||
| 120 | target_link_libraries(yuzu PRIVATE Boost::boost glad Qt5::OpenGL Qt5::Widgets) | 120 | target_link_libraries(yuzu PRIVATE Boost::boost glad Qt5::OpenGL Qt5::Widgets) |
| 121 | target_link_libraries(yuzu PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) | 121 | target_link_libraries(yuzu PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) |
| 122 | 122 | ||
| 123 | if (YUZU_ENABLE_COMPATIBILITY_REPORTING) | ||
| 124 | add_definitions(-DYUZU_ENABLE_COMPATIBILITY_REPORTING) | ||
| 125 | endif() | ||
| 126 | |||
| 123 | if (USE_DISCORD_PRESENCE) | 127 | if (USE_DISCORD_PRESENCE) |
| 124 | target_sources(yuzu PUBLIC | 128 | target_sources(yuzu PUBLIC |
| 125 | discord_impl.cpp | 129 | discord_impl.cpp |