mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
(Android) Removed support for using the SAF to list directory contents
This commit is contained in:
parent
d934cfb48f
commit
83ff89acb2
|
@ -70,28 +70,6 @@ namespace Utils
|
||||||
if (!isDirectory(genericPath))
|
if (!isDirectory(genericPath))
|
||||||
return contentList;
|
return contentList;
|
||||||
|
|
||||||
#if defined(__ANDROID__)
|
|
||||||
if (path.substr(0, FileSystemVariables::sAppDataDirectory.length()) ==
|
|
||||||
FileSystemVariables::sAppDataDirectory) {
|
|
||||||
Utils::Platform::Android::getDirContent(
|
|
||||||
path.substr(FileSystemVariables::sAppDataDirectory.length() + 1),
|
|
||||||
FileSystemVariables::sAppDataDirectory, AndroidVariables::sAppDataPathID,
|
|
||||||
recursive, contentList);
|
|
||||||
contentList.sort();
|
|
||||||
return contentList;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (path.substr(0, AndroidVariables::sROMDirectory.length()) ==
|
|
||||||
AndroidVariables::sROMDirectory) {
|
|
||||||
Utils::Platform::Android::getDirContent(
|
|
||||||
path.substr(AndroidVariables::sROMDirectory.length()),
|
|
||||||
AndroidVariables::sROMDirectory, AndroidVariables::sRomPathID, recursive,
|
|
||||||
contentList);
|
|
||||||
contentList.sort();
|
|
||||||
return contentList;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (recursive) {
|
if (recursive) {
|
||||||
#if defined(_WIN64)
|
#if defined(_WIN64)
|
||||||
for (auto& entry : std::filesystem::recursive_directory_iterator(
|
for (auto& entry : std::filesystem::recursive_directory_iterator(
|
||||||
|
|
Loading…
Reference in a new issue