Procházet zdrojové kódy

Merge pull request #3477 from FearlessTobi/webapplet-shit

core/web_browser: Allow WebApplet to exit gracefully when an error occurs
bunnei před 6 roky
rodič
revize
e731c4b991
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      src/core/hle/service/am/applets/web_browser.cpp

+ 6 - 0
src/core/hle/service/am/applets/web_browser.cpp

@@ -254,6 +254,12 @@ void WebBrowser::Execute() {
 
     if (status != RESULT_SUCCESS) {
         complete = true;
+
+        // This is a workaround in order not to softlock yuzu when an error happens during the
+        // webapplet init. In order to avoid an svcBreak, the status is set to RESULT_SUCCESS
+        Finalize();
+        status = RESULT_SUCCESS;
+
         return;
     }