diff options
author | bunnei <bunneidev@gmail.com> | 2016-08-30 15:26:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 15:26:38 +0200 |
commit | 7c934c51643741eb67c3f776049db2c80f2899d1 (patch) | |
tree | 15df873eca37b2ee14c9eb3e19c9e1bee3ea83cb /src/core/hle/service/apt/bcfnt/bcfnt.h | |
parent | Merge pull request #2029 from JayFoxRox/appveyor-cache (diff) | |
parent | Auto-detect original shared_font.bin memory base (diff) | |
download | yuzu-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/bcfnt/bcfnt.h')
-rw-r--r-- | src/core/hle/service/apt/bcfnt/bcfnt.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/hle/service/apt/bcfnt/bcfnt.h b/src/core/hle/service/apt/bcfnt/bcfnt.h index 388c6bea0..8936dcf63 100644 --- a/src/core/hle/service/apt/bcfnt/bcfnt.h +++ b/src/core/hle/service/apt/bcfnt/bcfnt.h @@ -22,6 +22,11 @@ struct CFNT { u32_le num_blocks; }; +struct SectionHeader { + u8 magic[4]; + u32_le section_size; +}; + struct FINF { u8 magic[4]; u32_le section_size; @@ -75,12 +80,13 @@ struct CWDH { }; /** - * Relocates the internal addresses of the BCFNT Shared Font to the new base. + * Relocates the internal addresses of the BCFNT Shared Font to the new base. The current base will + * be auto-detected based on the file headers. + * * @param shared_font SharedMemory object that contains the Shared Font - * @param previous_address Previous address at which the offsets in the structure were based. * @param new_address New base for the offsets in the structure. */ -void RelocateSharedFont(Kernel::SharedPtr<Kernel::SharedMemory> shared_font, VAddr previous_address, VAddr new_address); +void RelocateSharedFont(Kernel::SharedPtr<Kernel::SharedMemory> shared_font, VAddr new_address); } // namespace BCFNT } // namespace APT |