summaryrefslogtreecommitdiffstats
path: root/src/core/loader
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-08 21:51:48 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-09 03:11:44 +0200
commit2af30d465fa4e9c3421f01b557141673eb0a2115 (patch)
treeebbbbee64f504163feddf312a6844a58c5c5052a /src/core/loader
parentCommon: Add BIT macro (diff)
downloadyuzu-2af30d465fa4e9c3421f01b557141673eb0a2115.tar
yuzu-2af30d465fa4e9c3421f01b557141673eb0a2115.tar.gz
yuzu-2af30d465fa4e9c3421f01b557141673eb0a2115.tar.bz2
yuzu-2af30d465fa4e9c3421f01b557141673eb0a2115.tar.lz
yuzu-2af30d465fa4e9c3421f01b557141673eb0a2115.tar.xz
yuzu-2af30d465fa4e9c3421f01b557141673eb0a2115.tar.zst
yuzu-2af30d465fa4e9c3421f01b557141673eb0a2115.zip
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/3dsx.cpp1
-rw-r--r--src/core/loader/elf.cpp1
-rw-r--r--src/core/loader/loader.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cpp
index 5aaeb53d8..a0266a4e0 100644
--- a/src/core/loader/3dsx.cpp
+++ b/src/core/loader/3dsx.cpp
@@ -231,6 +231,7 @@ ResultStatus AppLoader_THREEDSX::Load() {
return ResultStatus::Error;
Kernel::g_current_process = Kernel::Process::Create(filename, 0);
+ Kernel::g_current_process->svc_access_mask.set();
Kernel::g_current_process->static_address_mappings = default_address_mappings;
Load3DSXFile(*file, Memory::EXEFS_CODE_VADDR);
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp
index ac3f84d04..94d1c9fa4 100644
--- a/src/core/loader/elf.cpp
+++ b/src/core/loader/elf.cpp
@@ -351,6 +351,7 @@ ResultStatus AppLoader_ELF::Load() {
return ResultStatus::Error;
Kernel::g_current_process = Kernel::Process::Create(filename, 0);
+ Kernel::g_current_process->svc_access_mask.set();
Kernel::g_current_process->static_address_mappings = default_address_mappings;
ElfReader elf_reader(&buffer[0]);
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 2718e88c1..8976d0372 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -141,6 +141,7 @@ ResultStatus LoadFile(const std::string& filename) {
case FileType::BIN:
{
Kernel::g_current_process = Kernel::Process::Create(filename_filename, 0);
+ Kernel::g_current_process->svc_access_mask.set();
Kernel::g_current_process->static_address_mappings = default_address_mappings;
size_t size = (size_t)file->GetSize();