diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-08-27 10:04:26 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-08-27 10:04:26 +0200 |
commit | 1f7ec4be9bf86f26d57555f7fd6b43851557e47d (patch) | |
tree | ccd129bf4b6b8baef6d8779bc2d21eb14d212619 /src/core/hle/service/apt/bcfnt/bcfnt.h | |
parent | Merge pull request #2022 from MerryMage/issue-tpl (diff) | |
download | yuzu-1f7ec4be9bf86f26d57555f7fd6b43851557e47d.tar yuzu-1f7ec4be9bf86f26d57555f7fd6b43851557e47d.tar.gz yuzu-1f7ec4be9bf86f26d57555f7fd6b43851557e47d.tar.bz2 yuzu-1f7ec4be9bf86f26d57555f7fd6b43851557e47d.tar.lz yuzu-1f7ec4be9bf86f26d57555f7fd6b43851557e47d.tar.xz yuzu-1f7ec4be9bf86f26d57555f7fd6b43851557e47d.tar.zst yuzu-1f7ec4be9bf86f26d57555f7fd6b43851557e47d.zip |
Diffstat (limited to '')
-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 |