Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX committed Dec 11, 2024
1 parent 4595b61 commit 25f9f3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${EXTERN_PATH}/cmake")
project(Moonlight)
set(VERSION_MAJOR "1")
set(VERSION_MINOR "2")
set(VERSION_ALTER "2")
set(VERSION_ALTER "3")
set(VERSION_BUILD "1")
set(PACKAGE_NAME "ru.xitrix.Moonlight")
set(PSN_TITLE_ID "MNTL00000")
Expand Down
12 changes: 7 additions & 5 deletions app/src/streaming/GameStreamClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,17 @@ void GameStreamClient::wake_up_host(const Host& host,

void GameStreamClient::connect(const std::string& address,
ServerCallback<SERVER_DATA>& callback) {
m_server_data[address] = SERVER_DATA();

brls::async([this, address, callback] {
SERVER_DATA server_data;
int status = gs_init(&server_data, address);
int status = gs_init(&m_server_data[address], address);

brls::sync([this, address, callback, status, server_data] {
brls::sync([this, address, callback, status] {
if (status == GS_OK) {
m_server_data[address] = server_data;
callback(GSResult<SERVER_DATA>::success(server_data));
callback(
GSResult<SERVER_DATA>::success(m_server_data[address]));
} else {
m_server_data.erase(address);
callback(GSResult<SERVER_DATA>::failure(gs_error()));
}
});
Expand Down

0 comments on commit 25f9f3d

Please sign in to comment.