summaryrefslogtreecommitdiffstats
path: root/src/core/loader/3dsx.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-01-06 23:47:43 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-01-15 22:23:07 +0100
commit04622a859cc748745cbbeb0b332f930085438077 (patch)
tree3aaf5244552971eb47bbbc8319f06fe4834f1460 /src/core/loader/3dsx.cpp
parentLoader: Keep a reference to the file and pass it to the correct AppLoader, instead of loading it multiple times. (diff)
downloadyuzu-04622a859cc748745cbbeb0b332f930085438077.tar
yuzu-04622a859cc748745cbbeb0b332f930085438077.tar.gz
yuzu-04622a859cc748745cbbeb0b332f930085438077.tar.bz2
yuzu-04622a859cc748745cbbeb0b332f930085438077.tar.lz
yuzu-04622a859cc748745cbbeb0b332f930085438077.tar.xz
yuzu-04622a859cc748745cbbeb0b332f930085438077.tar.zst
yuzu-04622a859cc748745cbbeb0b332f930085438077.zip
Diffstat (limited to 'src/core/loader/3dsx.cpp')
-rw-r--r--src/core/loader/3dsx.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cpp
index 873ee8b25..e239808f3 100644
--- a/src/core/loader/3dsx.cpp
+++ b/src/core/loader/3dsx.cpp
@@ -100,6 +100,9 @@ static THREEDSX_Error Load3DSXFile(FileUtil::IOFile& file, u32 base_addr)
if (!file.IsOpen())
return ERROR_FILE;
+ // Reset read pointer in case this file has been read before.
+ file.Seek(0, SEEK_SET);
+
THREEDSX_Header hdr;
if (file.ReadBytes(&hdr, sizeof(hdr)) != sizeof(hdr))
return ERROR_READ;