summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-07-11 00:28:34 +0200
committerGitHub <noreply@github.com>2017-07-11 00:28:34 +0200
commitb6c3479bb43f84da5cb3c4be6885f76b485b2147 (patch)
treec6f8fbe5ff05fdf67c238e165a197cbe2783c48e /Source/Core/DiscIO
parent12f6d0b56b3c0eac7fd023de91f2e1f12a6f80af (diff)
parent5ca3aee00ac3ac1a906de68c216907a7b41825fe (diff)
Merge pull request #5720 from JosJuice/file-metadata
FileUtil: Redesign Exists/IsDirectory/GetSize
Diffstat (limited to 'Source/Core/DiscIO')
-rw-r--r--Source/Core/DiscIO/NANDContentLoader.cpp2
-rw-r--r--Source/Core/DiscIO/WiiWad.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp
index 0178c3c14e..47ea26c81a 100644
--- a/Source/Core/DiscIO/NANDContentLoader.cpp
+++ b/Source/Core/DiscIO/NANDContentLoader.cpp
@@ -163,7 +163,7 @@ bool NANDContentLoader::Initialize(const std::string& name)
return false;
}
- std::vector<u8> bytes(File::GetSize(tmd_filename));
+ std::vector<u8> bytes(tmd_file.GetSize());
tmd_file.ReadBytes(bytes.data(), bytes.size());
m_tmd.SetBytes(std::move(bytes));
diff --git a/Source/Core/DiscIO/WiiWad.cpp b/Source/Core/DiscIO/WiiWad.cpp
index 8bd0164cab..1b04f3e68d 100644
--- a/Source/Core/DiscIO/WiiWad.cpp
+++ b/Source/Core/DiscIO/WiiWad.cpp
@@ -46,7 +46,7 @@ bool IsWiiWAD(BlobReader& reader)
WiiWAD::WiiWAD(const std::string& name) : m_reader(CreateBlobReader(name))
{
- if (m_reader == nullptr || File::IsDirectory(name))
+ if (m_reader == nullptr)
{
m_valid = false;
return;