From f902cbd71a2019ba5f5dabbf61ca8575c712394a Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Wed, 25 Nov 2015 22:53:23 -0800 Subject: [PATCH] [Common] Return error from ScanDirectoryTreeAndCallback for missing dir This fixes a regression introduced in #1095 that prevented Fire Emblem: Awakening from getting past its "Extdata needs to be recreated" screen. However, this is very likely just a bad workaround, and other things in the FS emulation need to be fixed for this to work as intended. (Such as DeleteExtSaveData returning an error instead of "nothing happened" if the data does not exist as in this case. The extdata doesn't even get created, which is what causes this prompt to appear in the first place.) --- src/common/file_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 1e0d33313..ce8fcc34f 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -432,7 +432,7 @@ int ScanDirectoryTreeAndCallback(const std::string &directory, std::function