diff options
author | bunnei <ericbunnie@gmail.com> | 2014-04-05 04:26:25 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-04-05 04:26:25 +0200 |
commit | c89f3a5c38be59c28dca54e0118b287023a2fada (patch) | |
tree | 72e51658129e70badfd2c39f5dacd1f94d10e4e1 /src/core | |
parent | - added an interface layer for ARM cores (diff) | |
download | yuzu-c89f3a5c38be59c28dca54e0118b287023a2fada.tar yuzu-c89f3a5c38be59c28dca54e0118b287023a2fada.tar.gz yuzu-c89f3a5c38be59c28dca54e0118b287023a2fada.tar.bz2 yuzu-c89f3a5c38be59c28dca54e0118b287023a2fada.tar.lz yuzu-c89f3a5c38be59c28dca54e0118b287023a2fada.tar.xz yuzu-c89f3a5c38be59c28dca54e0118b287023a2fada.tar.zst yuzu-c89f3a5c38be59c28dca54e0118b287023a2fada.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/src/loader.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/src/loader.cpp b/src/core/src/loader.cpp index 7e7eb9161..71ace20c4 100644 --- a/src/core/src/loader.cpp +++ b/src/core/src/loader.cpp @@ -25,6 +25,7 @@ #include "file_util.h" #include "loader.h" #include "system.h" +#include "core.h" #include "file_sys/directory_file_system.h" #include "elf/elf_reader.h" @@ -71,10 +72,11 @@ bool Load_ELF(std::string &filename) { elf_reader = new ElfReader(buffer); elf_reader->LoadInto(0x00100000); + Core::g_app_core->SetPC(elf_reader->GetEntryPoint()); + delete[] buffer; delete elf_reader; - } - else { + } else { return false; } f.Close(); |