mirror of
https://git.citron-emu.org/citron/emulator
synced 2026-01-08 10:47:56 +00:00
feat: Add lobby API URL configuration and migrate from web_api_url
- Replace web_api_url references with lobby_api_url - Add lobby API URL field to network configuration UI with restore default - Add ReadNetworkValues/SaveNetworkValues to QtConfig for network settings - Fix signed/unsigned comparison in lobby filter Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -101,7 +101,7 @@ std::unique_ptr<Network::VerifyUser::Backend> HostRoomWindow::CreateVerifyBacken
|
||||
if (use_validation) {
|
||||
#ifdef ENABLE_WEB_SERVICE
|
||||
verify_backend =
|
||||
std::make_unique<WebService::VerifyUserJWT>(Settings::values.web_api_url.GetValue());
|
||||
std::make_unique<WebService::VerifyUserJWT>(Settings::values.lobby_api_url.GetValue());
|
||||
#else
|
||||
verify_backend = std::make_unique<Network::VerifyUser::NullBackend>();
|
||||
#endif
|
||||
@@ -209,7 +209,7 @@ void HostRoomWindow::Host() {
|
||||
std::string token;
|
||||
#ifdef ENABLE_WEB_SERVICE
|
||||
if (is_public) {
|
||||
WebService::Client client(Settings::values.web_api_url.GetValue(),
|
||||
WebService::Client client(Settings::values.lobby_api_url.GetValue(),
|
||||
Settings::values.citron_username.GetValue(),
|
||||
Settings::values.citron_token.GetValue());
|
||||
if (auto room = room_network.GetRoom().lock()) {
|
||||
|
||||
Reference in New Issue
Block a user