summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-07 00:39:34 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-25 02:05:11 +0200
commit73dcb13619fc6603be628a7eea275ea02818c1ce (patch)
tree8812635bfd61575c5827ac18ed5f4b8b12b30f64
parentweb_browser: Take ECommerce applet frontend optionally in constructor (diff)
downloadyuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar
yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.gz
yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.bz2
yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.lz
yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.xz
yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.tar.zst
yuzu-73dcb13619fc6603be628a7eea275ea02818c1ce.zip
-rw-r--r--src/core/hle/service/am/applets/web_browser.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/web_browser.cpp b/src/core/hle/service/am/applets/web_browser.cpp
index 58efebf06..3c3af476c 100644
--- a/src/core/hle/service/am/applets/web_browser.cpp
+++ b/src/core/hle/service/am/applets/web_browser.cpp
@@ -285,7 +285,9 @@ void WebBrowser::Finalize() {
broker.PushNormalDataFromApplet(IStorage{data});
broker.SignalStateChanged();
- FileUtil::DeleteDirRecursively(temporary_dir);
+ if (!temporary_dir.empty() && FileUtil::IsDirectory(temporary_dir)) {
+ FileUtil::DeleteDirRecursively(temporary_dir);
+ }
}
void WebBrowser::InitializeInternal() {