Skip to content

Commit

Permalink
fix: moonlight switch client quirks
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Jun 16, 2024
1 parent 17acc2c commit 3afdfea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/moonlight-server/rest/endpoints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void serverinfo(const std::shared_ptr<typename SimpleWeb::Server<T>::Response> &

auto session = get_session_by_ip(state->running_sessions->load(), get_client_ip<T>(request));
bool is_busy = session.has_value();
int app_id = session.has_value() ? std::stoi(session->app->base.id) : -1;
int app_id = session.has_value() ? std::stoi(session->app->base.id) : 0;

auto local_ip = get_host_ip<T>(request, state);

Expand Down
2 changes: 1 addition & 1 deletion src/moonlight-server/wolf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ auto load_config(std::string_view config_file, const std::shared_ptr<dp::event_b
* @brief Get the Display Modes
*/
immer::array<moonlight::DisplayMode> getDisplayModes() {
return {{1920, 1080, 60}, {1024, 768, 30}};
return {{1920, 1080, 60}, {1280, 720, 60}, {1024, 768, 30}, {800, 600, 30}};
}

/**
Expand Down

0 comments on commit 3afdfea

Please sign in to comment.