summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/NANDContentLoader.cpp
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/NANDContentLoader.cpp
parent12f6d0b56b3c0eac7fd023de91f2e1f12a6f80af (diff)
parent5ca3aee00ac3ac1a906de68c216907a7b41825fe (diff)
Merge pull request #5720 from JosJuice/file-metadata
FileUtil: Redesign Exists/IsDirectory/GetSize
Diffstat (limited to 'Source/Core/DiscIO/NANDContentLoader.cpp')
-rw-r--r--Source/Core/DiscIO/NANDContentLoader.cpp2
1 files changed, 1 insertions, 1 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));