mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-19 14:41:42 +00:00
@@ -1731,6 +1731,18 @@ void Session::start()
|
||||
thread->start();
|
||||
}
|
||||
|
||||
void Session::interrupt()
|
||||
{
|
||||
// Stop any connection in progress
|
||||
LiInterruptConnection();
|
||||
|
||||
// Inject a quit event to our SDL event loop
|
||||
SDL_Event event;
|
||||
event.type = SDL_QUIT;
|
||||
event.quit.timestamp = SDL_GetTicks();
|
||||
SDL_PushEvent(&event);
|
||||
}
|
||||
|
||||
void Session::exec()
|
||||
{
|
||||
// If the connection failed, clean up and abort the connection.
|
||||
|
||||
@@ -103,6 +103,7 @@ public:
|
||||
|
||||
Q_INVOKABLE bool initialize(QQuickWindow* qtWindow);
|
||||
Q_INVOKABLE void start();
|
||||
Q_INVOKABLE void interrupt();
|
||||
Q_PROPERTY(QStringList launchWarnings MEMBER m_LaunchWarnings NOTIFY launchWarningsChanged);
|
||||
|
||||
static
|
||||
|
||||
Reference in New Issue
Block a user