mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Change errorCode to an int type
This commit is contained in:
@@ -58,7 +58,7 @@ void Session::clStageStarting(int stage)
|
|||||||
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::clStageFailed(int stage, long errorCode)
|
void Session::clStageFailed(int stage, int errorCode)
|
||||||
{
|
{
|
||||||
// We know this is called on the same thread as LiStartConnection()
|
// We know this is called on the same thread as LiStartConnection()
|
||||||
// which happens to be the main thread, so it's cool to interact
|
// which happens to be the main thread, so it's cool to interact
|
||||||
@@ -67,7 +67,7 @@ void Session::clStageFailed(int stage, long errorCode)
|
|||||||
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::clConnectionTerminated(long errorCode)
|
void Session::clConnectionTerminated(int errorCode)
|
||||||
{
|
{
|
||||||
// Display the termination dialog if this was not intended
|
// Display the termination dialog if this was not intended
|
||||||
if (errorCode != 0) {
|
if (errorCode != 0) {
|
||||||
@@ -76,7 +76,7 @@ void Session::clConnectionTerminated(long errorCode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||||
"Connection terminated: %ld",
|
"Connection terminated: %d",
|
||||||
errorCode);
|
errorCode);
|
||||||
|
|
||||||
// Push a quit event to the main loop
|
// Push a quit event to the main loop
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void stageStarting(QString stage);
|
void stageStarting(QString stage);
|
||||||
|
|
||||||
void stageFailed(QString stage, long errorCode);
|
void stageFailed(QString stage, int errorCode);
|
||||||
|
|
||||||
void connectionStarted();
|
void connectionStarted();
|
||||||
|
|
||||||
@@ -93,10 +93,10 @@ private:
|
|||||||
void clStageStarting(int stage);
|
void clStageStarting(int stage);
|
||||||
|
|
||||||
static
|
static
|
||||||
void clStageFailed(int stage, long errorCode);
|
void clStageFailed(int stage, int errorCode);
|
||||||
|
|
||||||
static
|
static
|
||||||
void clConnectionTerminated(long errorCode);
|
void clConnectionTerminated(int errorCode);
|
||||||
|
|
||||||
static
|
static
|
||||||
void clLogMessage(const char* format, ...);
|
void clLogMessage(const char* format, ...);
|
||||||
|
|||||||
Submodule moonlight-common-c/moonlight-common-c updated: cfeb0ffd90...2fc278da00
Reference in New Issue
Block a user