Skip to content

Commit

Permalink
Properly handle title disam. diag cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
oblivioncth committed Nov 27, 2023
1 parent ec6ff16 commit 1bae49d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/command/c-play.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ Qx::Error CPlay::perform()
else if(Qx::Error ide = getTitleId(titleId); ide.isValid())
return ide;

// Bail if ID is missing (user cancel)
if(titleId.isNull())
return CPlayError();

logEvent(LOG_EVENT_HANDLING_AUTO);

Expand Down
2 changes: 2 additions & 0 deletions app/src/kernel/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ void Driver::cleanup()

void Driver::finish()
{
logEvent(LOG_EVENT_FINISH);

// Clear update cache
if(CUpdate::isUpdateCacheClearable())
{
Expand Down
1 change: 1 addition & 0 deletions app/src/kernel/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Driver : public QObject
static inline const QString LOG_EVENT_QUIT_REQUEST_REDUNDANT = u"Received redundant quit request"_s;
static inline const QString LOG_EVENT_CLEARED_UPDATE_CACHE = u"Cleared stale update cache."_s;
static inline const QString LOG_EVENT_CORE_ABORT = u"Core abort signaled, quitting now."_s;
static inline const QString LOG_EVENT_FINISH = u"Finishing run..."_s;

// Meta
static inline const QString NAME = u"driver"_s;
Expand Down

0 comments on commit 1bae49d

Please sign in to comment.