summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-24 21:49:40 +0200
committerGitHub <noreply@github.com>2018-07-24 21:49:40 +0200
commit933c9ee853f1c8da8c38875c5e0b7abe271d5914 (patch)
treebe91c7411cf99625c9fad20cda4a0e109b2bcb31
parentMerge pull request #798 from lioncash/const (diff)
parentdeconstructed_rom_directory: Remove unused FindRomFS() function (diff)
downloadyuzu-933c9ee853f1c8da8c38875c5e0b7abe271d5914.tar
yuzu-933c9ee853f1c8da8c38875c5e0b7abe271d5914.tar.gz
yuzu-933c9ee853f1c8da8c38875c5e0b7abe271d5914.tar.bz2
yuzu-933c9ee853f1c8da8c38875c5e0b7abe271d5914.tar.lz
yuzu-933c9ee853f1c8da8c38875c5e0b7abe271d5914.tar.xz
yuzu-933c9ee853f1c8da8c38875c5e0b7abe271d5914.tar.zst
yuzu-933c9ee853f1c8da8c38875c5e0b7abe271d5914.zip
-rw-r--r--src/core/loader/deconstructed_rom_directory.cpp29
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)) {}