summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apt/apt.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-08-30 15:26:38 +0200
committerGitHub <noreply@github.com>2016-08-30 15:26:38 +0200
commit7c934c51643741eb67c3f776049db2c80f2899d1 (patch)
tree15df873eca37b2ee14c9eb3e19c9e1bee3ea83cb /src/core/hle/service/apt/apt.cpp
parentMerge pull request #2029 from JayFoxRox/appveyor-cache (diff)
parentAuto-detect original shared_font.bin memory base (diff)
downloadyuzu-7c934c51643741eb67c3f776049db2c80f2899d1.tar
yuzu-7c934c51643741eb67c3f776049db2c80f2899d1.tar.gz
yuzu-7c934c51643741eb67c3f776049db2c80f2899d1.tar.bz2
yuzu-7c934c51643741eb67c3f776049db2c80f2899d1.tar.lz
yuzu-7c934c51643741eb67c3f776049db2c80f2899d1.tar.xz
yuzu-7c934c51643741eb67c3f776049db2c80f2899d1.tar.zst
yuzu-7c934c51643741eb67c3f776049db2c80f2899d1.zip
Diffstat (limited to 'src/core/hle/service/apt/apt.cpp')
-rw-r--r--src/core/hle/service/apt/apt.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp
index 5af0d49ba..4d2956638 100644
--- a/src/core/hle/service/apt/apt.cpp
+++ b/src/core/hle/service/apt/apt.cpp
@@ -81,13 +81,8 @@ void GetSharedFont(Service::Interface* self) {
// The shared font has to be relocated to the new address before being passed to the application.
VAddr target_address = Memory::PhysicalToVirtualAddress(shared_font_mem->linear_heap_phys_address);
- // The shared font dumped by 3dsutils (https://github.com/citra-emu/3dsutils) uses this address as base,
- // so we relocate it from there to our real address.
- // TODO(Subv): This address is wrong if the shared font is dumped from a n3DS,
- // we need a way to automatically calculate the original address of the font from the file.
- static const VAddr SHARED_FONT_VADDR = 0x18000000;
if (!shared_font_relocated) {
- BCFNT::RelocateSharedFont(shared_font_mem, SHARED_FONT_VADDR, target_address);
+ BCFNT::RelocateSharedFont(shared_font_mem, target_address);
shared_font_relocated = true;
}
cmd_buff[0] = IPC::MakeHeader(0x44, 2, 2);