diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-24 16:53:56 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-24 16:54:07 +0200 |
commit | 4cf2185e816d438691899a456a50636f6cedfa2d (patch) | |
tree | be91c7411cf99625c9fad20cda4a0e109b2bcb31 /src/core | |
parent | Merge pull request #798 from lioncash/const (diff) | |
download | yuzu-4cf2185e816d438691899a456a50636f6cedfa2d.tar yuzu-4cf2185e816d438691899a456a50636f6cedfa2d.tar.gz yuzu-4cf2185e816d438691899a456a50636f6cedfa2d.tar.bz2 yuzu-4cf2185e816d438691899a456a50636f6cedfa2d.tar.lz yuzu-4cf2185e816d438691899a456a50636f6cedfa2d.tar.xz yuzu-4cf2185e816d438691899a456a50636f6cedfa2d.tar.zst yuzu-4cf2185e816d438691899a456a50636f6cedfa2d.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/loader/deconstructed_rom_directory.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp index 18bd62a08..b0277a875 100644 --- a/src/core/loader/deconstructed_rom_directory.cpp +++ b/src/core/loader/deconstructed_rom_directory.cpp @@ -6,7 +6,6 @@ #include "common/common_funcs.h" #include "common/file_util.h" #include "common/logging/log.h" -#include "common/string_util.h" #include "core/file_sys/content_archive.h" #include "core/gdbstub/gdbstub.h" #include "core/hle/kernel/process.h" @@ -18,34 +17,6 @@ namespace Loader { -static std::string FindRomFS(const std::string& directory) { - std::string filepath_romfs; - const auto callback = [&filepath_romfs](u64*, const std::string& directory, - const std::string& virtual_name) -> bool { - const std::string physical_name = directory + virtual_name; - if (FileUtil::IsDirectory(physical_name)) { - // Skip directories - return true; - } - - // Verify extension - const std::string extension = physical_name.substr(physical_name.find_last_of(".") + 1); - if (Common::ToLower(extension) != "romfs") { - return true; - } - - // Found it - we are done - filepath_romfs = std::move(physical_name); - return false; - }; - - // Search the specified directory recursively, looking for the first .romfs file, which will - // be used for the RomFS - FileUtil::ForeachDirectoryEntry(nullptr, directory, callback); - - return filepath_romfs; -} - AppLoader_DeconstructedRomDirectory::AppLoader_DeconstructedRomDirectory(FileSys::VirtualFile file) : AppLoader(std::move(file)) {} |