123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- #include "CFEImages.h"
- #include "CFTTTexLoadOptions.h"
- #include "SYSCORE.h"
- #include "CFTTTextureCache.h"
- #include "CGraphicsTexLoadOptions.h"
- #include "str_conv.h"
- #include "memctrl.h"
- uchar CFEImages::s_tLoadScreenTextures[1088];
- CFEImages *CFEImages::s_pInst = nullptr;
- bool CFEImages::s_bScaleLoadedTexture;
- //-------------------------------------------------------------------------------------------------
- struct AtlasFileType {
- const char *pFile;
- int dType;
- };
- //-------------------------------------------------------------------------------------------------
- AtlasFileType list_322C28[] = {
- {"Data/FE/UI/common.atlas", 1},
- {"Data/env/adimages/adimages.atlas", 0},
- {"Data/FE/hud/hud.atlas", 0},
- {"Data/FE/hero/hero.atlas", 0},
- {"Data/FE/customise/customise.atlas", 0},
- {"Data/FE/flags/flags.atlas", 0},
- {"Data/FE/keyboard/keyboard.atlas", 0},
- };
- //-------------------------------------------------------------------------------------------------
- //0014C6F8 //^_^
- CFEImages::CFEImages() {
- }
- //-------------------------------------------------------------------------------------------------
- //0014C734 //^_^
- CFEImages::~CFEImages() {
- // empty
- }
- //-------------------------------------------------------------------------------------------------
- //0014C71C //^_^
- void CFEImages::ClearCache() {
- }
- //-------------------------------------------------------------------------------------------------
- //0014C738 //^_^
- void CFEImages::Free() {
- }
- //-------------------------------------------------------------------------------------------------
- //0014C758
- void CFEImages::FreeAtlases() {
- }
- //-------------------------------------------------------------------------------------------------
- //0014C7D0 //^_^ 经过单元测试,功能正常
- CFEImages *CFEImages::GetInstance() {
- // loc_14C800
- return s_pInst;
- }
- //-------------------------------------------------------------------------------------------------
- //0014C80C ^_- 经过单元测试,功能正常 有栈保护
- // CFEImages::GetTexture("PKG:/Data/fe/mag/magbg_1.jpg", a3, eFormat, a5, a6, a7);
- // FETU_GetImage(&image, "PKG:/Data/fe/splash/ftg_logo.ftc", false, EFTTTexFormat_19, false, false, true);
- CFTTTexture *CFEImages::GetTexture(char const *pFileName,
- bool b,
- EFTTTexFormat e,
- bool b1,
- bool b2,
- bool b3) {
- // loc_14C8BE
- //00222D20 CFTTTextureCache::GetTexture(char const*,CFTTTexLoadOptions const&,uint)
- return nullptr;
- }
- //-------------------------------------------------------------------------------------------------
- //0014C8E8
- void CFEImages::HighToLowResProcess(CFTTTexture **) {
- //没有调用到
- LOGI("CFEImages::HighToLowResProcess: Entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0014CC84
- void CFEImages::CacheFree() {
- //没有调用到
- LOGI("CFEImages::CacheFree: Entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0014CCBC -_- 经过单元测试,功能正常
- void CFEImages::LoadAtlasData() {
- }
- //-------------------------------------------------------------------------------------------------
- //0014CE24 //^_^ 经过单元测试,功能正常
- void CFEImages::ReorderAtlases() {
- // locret_14CE5C
- }
- //-------------------------------------------------------------------------------------------------
- //0014CE5E
- void CFEImages::SwapAtlasPositions(ushort a1, ushort a2) {
- }
- //-------------------------------------------------------------------------------------------------
- //0014CE9A //^_- 经过单元测试,功能正常
- void CFEImages::FreeAtlasCache(bool b) {
- }
- //-------------------------------------------------------------------------------------------------
- //0014CEEE
- void CFEImages::FreeAtlasCacheByTimestamp() {
- //没有调用到
- }
- //-------------------------------------------------------------------------------------------------
- //0014CF60 //^_- 经过单元测试,功能正常
- //有栈保护, 单元测试已跑过所有分支
- bool CFEImages::FindAndOpenAtlas(TAtlasData *pAtlasData, char const *pName) {
- return false;
- }
- //-------------------------------------------------------------------------------------------------
|