diff options
| author | Mat M <mathew1800@gmail.com> | 2017-03-31 00:21:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-31 00:21:49 -0400 |
| commit | 006381bb478d26baa3ec498be34420bfcdf0a8a7 (patch) | |
| tree | 3a7dafc6efd355ae2bcc3ad47ccd460baae465ef /Source/Core/Common/NandPaths.cpp | |
| parent | 6a595aabe97f0045d703e01f05d39312a0d19350 (diff) | |
| parent | e1020cb67487554c6dae0d7fc37ef37fed81f494 (diff) | |
Merge pull request #5184 from leoetlino/dead-code
Common: Remove dead code in NandPaths
Diffstat (limited to 'Source/Core/Common/NandPaths.cpp')
| -rw-r--r-- | Source/Core/Common/NandPaths.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Source/Core/Common/NandPaths.cpp b/Source/Core/Common/NandPaths.cpp index 9206fbe4e6..5ab7c2afdd 100644 --- a/Source/Core/Common/NandPaths.cpp +++ b/Source/Core/Common/NandPaths.cpp @@ -52,38 +52,6 @@ std::string GetTitleContentPath(u64 _titleID, FromWhichRoot from) (u32)(_titleID >> 32), (u32)_titleID); } -bool CheckTitleTMD(u64 _titleID, FromWhichRoot from) -{ - const std::string TitlePath = GetTMDFileName(_titleID, from); - if (File::Exists(TitlePath)) - { - File::IOFile pTMDFile(TitlePath, "rb"); - u64 TitleID = 0; - pTMDFile.Seek(0x18C, SEEK_SET); - if (pTMDFile.ReadArray(&TitleID, 1) && _titleID == Common::swap64(TitleID)) - return true; - } - INFO_LOG(DISCIO, "Invalid or no tmd for title %08x %08x", (u32)(_titleID >> 32), - (u32)(_titleID & 0xFFFFFFFF)); - return false; -} - -bool CheckTitleTIK(u64 _titleID, FromWhichRoot from) -{ - const std::string ticketFileName = Common::GetTicketFileName(_titleID, from); - if (File::Exists(ticketFileName)) - { - File::IOFile pTIKFile(ticketFileName, "rb"); - u64 TitleID = 0; - pTIKFile.Seek(0x1dC, SEEK_SET); - if (pTIKFile.ReadArray(&TitleID, 1) && _titleID == Common::swap64(TitleID)) - return true; - } - INFO_LOG(DISCIO, "Invalid or no tik for title %08x %08x", (u32)(_titleID >> 32), - (u32)(_titleID & 0xFFFFFFFF)); - return false; -} - std::string EscapeFileName(const std::string& filename) { // Prevent paths from containing special names like ., .., ..., ...., and so on |
