diff options
| author | 2018-08-09 19:22:06 -0400 | |
|---|---|---|
| committer | 2018-08-09 19:22:06 -0400 | |
| commit | 96ef22d3d0f7e75d1ad5d1351cd26db8c835f6ca (patch) | |
| tree | 4f18d020eb3de30a55053c3367cd0cc6049b31d6 /src/core/loader | |
| parent | Merge pull request #991 from bunnei/ignore-mac (diff) | |
| parent | vfs: Fix documentation (diff) | |
| download | yuzu-96ef22d3d0f7e75d1ad5d1351cd26db8c835f6ca.tar.gz yuzu-96ef22d3d0f7e75d1ad5d1351cd26db8c835f6ca.tar.xz yuzu-96ef22d3d0f7e75d1ad5d1351cd26db8c835f6ca.zip | |
Merge pull request #897 from DarkLordZach/vfs-accuracy-2
vfs: Add VfsFilesystem and fix RealVfs* implementations
Diffstat (limited to 'src/core/loader')
| -rw-r--r-- | src/core/loader/loader.cpp | 4 | ||||
| -rw-r--r-- | src/core/loader/loader.h | 8 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 0781fb8c1..a288654df 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -43,10 +43,6 @@ FileType IdentifyFile(FileSys::VirtualFile file) { | |||
| 43 | return FileType::Unknown; | 43 | return FileType::Unknown; |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | FileType IdentifyFile(const std::string& file_name) { | ||
| 47 | return IdentifyFile(std::make_shared<FileSys::RealVfsFile>(file_name)); | ||
| 48 | } | ||
| 49 | |||
| 50 | FileType GuessFromFilename(const std::string& name) { | 46 | FileType GuessFromFilename(const std::string& name) { |
| 51 | if (name == "main") | 47 | if (name == "main") |
| 52 | return FileType::DeconstructedRomDirectory; | 48 | return FileType::DeconstructedRomDirectory; |
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h index 7bd0adedb..6a9e5a68b 100644 --- a/src/core/loader/loader.h +++ b/src/core/loader/loader.h | |||
| @@ -43,14 +43,6 @@ enum class FileType { | |||
| 43 | FileType IdentifyFile(FileSys::VirtualFile file); | 43 | FileType IdentifyFile(FileSys::VirtualFile file); |
| 44 | 44 | ||
| 45 | /** | 45 | /** |
| 46 | * Identifies the type of a bootable file based on the magic value in its header. | ||
| 47 | * @param file_name path to file | ||
| 48 | * @return FileType of file. Note: this will return FileType::Unknown if it is unable to determine | ||
| 49 | * a filetype, and will never return FileType::Error. | ||
| 50 | */ | ||
| 51 | FileType IdentifyFile(const std::string& file_name); | ||
| 52 | |||
| 53 | /** | ||
| 54 | * Guess the type of a bootable file from its name | 46 | * Guess the type of a bootable file from its name |
| 55 | * @param name String name of bootable file | 47 | * @param name String name of bootable file |
| 56 | * @return FileType of file. Note: this will return FileType::Unknown if it is unable to determine | 48 | * @return FileType of file. Note: this will return FileType::Unknown if it is unable to determine |