summaryrefslogtreecommitdiffstats
path: root/src/core/loader/elf.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-12 00:16:33 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-07-14 01:00:56 +0200
commit2d7299a86fdc4ba2485042f950d864e063be5e97 (patch)
tree26c15a7b8fe0563dc39dd80564c30405d458bfe7 /src/core/loader/elf.cpp
parentFS: Stream RomFS from file instead of loading all of it to memory (diff)
downloadyuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar
yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.gz
yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.bz2
yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.lz
yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.xz
yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.tar.zst
yuzu-2d7299a86fdc4ba2485042f950d864e063be5e97.zip
Diffstat (limited to '')
-rw-r--r--src/core/loader/elf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp
index ca3c18a9f..09a2275a1 100644
--- a/src/core/loader/elf.cpp
+++ b/src/core/loader/elf.cpp
@@ -392,15 +392,15 @@ ResultStatus AppLoader_ELF::Load() {
if (is_loaded)
return ResultStatus::ErrorAlreadyLoaded;
- if (!file->IsOpen())
+ if (!file.IsOpen())
return ResultStatus::Error;
// Reset read pointer in case this file has been read before.
- file->Seek(0, SEEK_SET);
+ file.Seek(0, SEEK_SET);
- u32 size = static_cast<u32>(file->GetSize());
+ u32 size = static_cast<u32>(file.GetSize());
std::unique_ptr<u8[]> buffer(new u8[size]);
- if (file->ReadBytes(&buffer[0], size) != size)
+ if (file.ReadBytes(&buffer[0], size) != size)
return ResultStatus::Error;
ElfReader elf_reader(&buffer[0]);