123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- #include <arm_neon.h>
- #include <arm_acle.h>
- #include "FETU.h"
- #include "CFE.h"
- #include "CFEImages.h"
- #include "CFTTTextureCache.h"
- #include "CMyProfile.h"
- #include "FE2D.h"
- #include "SYSCORE.h"
- #include "CUITileManager.h"
- #include "CFTTTexLoadOptions.h"
- #include "CFTTTextureManager.h"
- #include "CFTTGraphicsDevice.h"
- #include "CFTTColour.h"
- #include "CGraphicsTexLoadOptions.h"
- #include "FEU.h"
- #include "CFTTColour.h"
- #include "FTT2D.h"
- float float_35408C = 0.0;
- float float_354090 = 0.0;
- //-------------------------------------------------------------------------------------------------
- //0014E0B0 //^_^
- bool GetAtlasData(TAtlasData *pAtlasData, char const *pName) {
- return true;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E008 //^_^ 单元测试通过
- void FETU_GetImage(TImage*a1, char const*a2, bool a3, EFTTTexFormat a4, bool a5, bool a6, bool a7)
- {
- srand(time(NULL));
- int ret = rand();
- printf("%x%x%s%x%x%x%x%x", ret, a1, a2, a3, a4, a5, a6, a7);
- return;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E0C6
- float FETU_GetWidth(CFTTAtlasTileData *pData) {
- return 0.0f;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E0D4
- float FETU_GetHeight(CFTTAtlasTileData *pData) {
- return 0.0f;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E0E2
- float FETU_GetWidth(CFTTTexture *pTexture) {
- return 0.0f;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E0F2
- float FETU_GetHeight(CFTTTexture *pTexture) {
- return 0.0f;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E102 //^_^ 经过单元测试,功能正常
- void FETU_GetStoryImage(TImage *pImage, EStoryImage e) {
- LOGI("FETU_GetStoryImage 0014E102 entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0014E124 //^_- 经过单元测试,功能正常
- const char *FETU_GetStoryImage(EStoryImage e, int i1) {
- LOGI("FETU_GetStoryImage 0014E124 %d", e);
- return 0;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E244
- TFLCache FETU_tFLCache[40];
- CFTTTexture *FETU_CheckFLCache(int a1, uint a2, uint a3, bool b4, EFTTTexFormat e, TFLCache **ppCache) {
- LOGI("FETU_CheckFLCache 0014E244 entry");
- return nullptr;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E2F0
- void FETU_DrawFlagCol(uint a1, uint a2, float f3, float f4, float f5, float f6) {
- }
- //-------------------------------------------------------------------------------------------------
- //0014E450
- TKitCache FETU_tKitCache[40];
- CFTTTexture *FETU_CheckKitCache(int a1, uint *pa2, TKitCache **ppKitCache) {
- LOGI("FETU_CheckKitCache 0014E450 entry");
- // memset(FETU_tKitCache, 0, 0x820u);
- return nullptr;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E4C4
- CFTTTexture *FETU_GetKit(int a1, uint *pa2) {
- LOGI("FETU_GetKit 0014E4C4 entey");
- return 0;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E508
- CFTTTexture *FETU_CreateKitIcon(int a1, uint *list_argb) {
- LOGI("FETU_CreateKitIcon 0014E508 entry");
- return 0;
- }
- //-------------------------------------------------------------------------------------------------
- //0014E7E0
- void FETU_BlitTextureCol(CFTTTexture *pTexture1, CFTTTexture *pTexture2,
- int a3, int a4, int a5, int a6,
- int a7, int a8, uint argb9) {
- LOGI("FETU_BlitTextureCol entry");
- // loc_14E96A
- }
- //-------------------------------------------------------------------------------------------------
- //0014E974
- CFTTTexture *FETU_CreateFlagTexture(int i0, uint u1, uint u2, EFTTTexFormat e3) {
- LOGI("FETU_CreateFlagTexture 0014E974 %d %d %d %d ", i0, u2, u2, e3);
- return nullptr;
- }
- //-------------------------------------------------------------------------------------------------
- //0014EA40
- CFTTTexture *FETU_GetFlag(int r0_ai, uint r1_ai, uint r2_au, bool r3_b, EFTTTexFormat eFormat) {
- //???
- LOGI("FETU_GetFlag 0014EA40 %d %d %d %d %d", r0_ai, r1_ai, r2_au, r3_b, eFormat);
- return nullptr;
- }
- //-------------------------------------------------------------------------------------------------
- //0014EB24
- CFTTTexture *FETU_GetFlag(CTeam *r0_pTeam, bool r1_b, EFTTTexFormat r2_efromat) {
- return FETU_GetFlag(r0_pTeam->sIndex_0, r0_pTeam->field_1C8, r0_pTeam->field_1CC, r1_b, r2_efromat);
- }
- //-------------------------------------------------------------------------------------------------
- //0014EB40
- void FETU_ClearKitCache() {
- LOGI("FETU_ClearKitCache 0014EB40 entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0014EB6C
- void FETU_ClearFlagCache() {
- LOGI("FETU_ClearFlagCache 0014EB6C entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0014EB94 //^_^
- void FETU_InitKitCache() {
- memset(FETU_tKitCache, 0, sizeof(TKitCache) * 40);
- }
- //-------------------------------------------------------------------------------------------------
- //0014EBAC //^_^
- void FETU_InitFlagCache() {
- memset(FETU_tFLCache, 0, sizeof(TFLCache) * 40);
- }
- //-------------------------------------------------------------------------------------------------
- //0014EBC4
- void FETU_DrawWoodBox(float f0, float f1, float f2, float f3, int d4, float f5, float f6, float f7) {
- LOGI("FETU_DrawWoodBox 0014EBC4 entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0014EE08
- void FETU_DrawButton(float f0, float f1, float f2, float f3, int d4, float f5, float f6, float f7) {
- //0014EE30
- LOGI("FETU_DrawButton 0014EE08 entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0014F06C
- void FETU_DrawBoxText(char const *pFileName, float f1, float f2, float f3, float f4, int d5, float f6, float f7, float f8) {
- LOGI("FETU_DrawBoxText 0014F06C %s", pFileName);
- }
- //-------------------------------------------------------------------------------------------------
- //0014F2B4
- void FETU_DrawBoxRed(float f0, float f1, float f2, float f3, int d4, float f5, float f6, float f7) {
- }
- //-------------------------------------------------------------------------------------------------
- //0014F2F0
- void FETU_DrawBoxBlue(float f0, float f1, float f2, float f3, int d4, float f5, float f6, float f7) {
- }
- //-------------------------------------------------------------------------------------------------
- //0014F32C
- void FETU_DrawBoxGreen(float f0, float f1, float f2, float f3, int d4, float f5, float f6, float f7) {
- }
- //-------------------------------------------------------------------------------------------------
- //0014F368 //^_- 经过单元测试,功能正常
- void FETU_DrawBoxRounded(float a1, float a2, float a3, float a4, int a5, float a6, float a7, float a8, int a9)
- {
- srand(time(NULL));
- int ret = rand();
- printf("%x%x%x%x%x%x%x%x%x%x", ret, a1, a2, a3, a4, a5, a6, a7, a8, a9);
- return;
- }
- //-------------------------------------------------------------------------------------------------
- //001500D8 //^_- 经过单元测试,功能正常
- void FETU_DrawBoxRoundedOutline(float a1, float a2, float a3, float a4, int a5,
- float a6, float a7, float a8, int a9) {
- srand(time(NULL));
- int ret = rand();
- printf("%x%x%x%x%x%x%x%x%x%x", ret, a1, a2, a3, a4, a5, a6, a7, a8, a9);
- return;
- }
- //-------------------------------------------------------------------------------------------------
- //001504F0
- void FETU_DrawLoadingArrow(float a1, float a2, float a3) {
- LOGI("FETU_DrawLoadingArrow 001504F0 entry");
- }
- //-------------------------------------------------------------------------------------------------
- //0015058C 经过单元测试,功能正常
- // 开始界面上下草坪图
- void FETU_RenderPitch(int i0, uint u1, int i2, bool b3) {
- LOGI("FETU_RenderPitch entry %d %x %d %d %d", i0, u1, i2, b3, SCR_WID);
- // ret_1511F0 return
- LOGI("FETU_RenderPitch end");
- }
- //-------------------------------------------------------------------------------------------------
- //0015124C
- void FETU_GetTeamLogo(CFTTTexture **ppTexture,
- int dPNGIndex,
- int a2_unuse,
- EFTTTexFormat eFormat3,
- CFTTTexLoadOptions const *pOption4) {
- LOGI("FETU_GetTeamLogo 0015124C entry");
- }
- //-------------------------------------------------------------------------------------------------
- //001512C4
- void FETU_GetTeamLogo(TImage *pImage, int a2) {
- }
- //-------------------------------------------------------------------------------------------------
- //00151314
- void FETU_DrawLevelNumberBackground(float f0, float f1, float f2, float f3,
- int a4, int a5,
- float f6, float f7, float f8,
- bool b9, uint a10, float f11) {
- }
- //-------------------------------------------------------------------------------------------------
- //00151324
- void FETU_DrawLevelNumber(float f0, float f1, float f2, float f3, int i4, int i5, float f6, float f7, float f8, bool b9, uint u10, TRect rect11) {
- LOGI("FETU_DrawLevelNumber %.2f %.2f %.2f %.2f %d %d %.2f %.2f %.2f %d %d %.2f %.2f %.2f %.2f",
- f0, f1, f2, f3,
- i4, i5,
- f6, f7, f8, b9,
- u10,
- rect11.fx_0, rect11.fy_4, rect11.fWidth_8, rect11.fHeight_C);
- }
- //-------------------------------------------------------------------------------------------------
- //00151770
- void FETU_DrawObjectiveBox(float f0, float f1, float f2, float f3, int i4, int i5, int *pi6, float f7, float f8, float f9, float f10, bool b11, EMedal_Type e11) {
- LOGI("FETU_DrawObjectiveBox 00151770 %.2f %.2f %.2f %.2f %d %d %p %.2f %.2f %.2f %.2f %d %d",
- f0, f1, f2, f3, i4, i5, pi6, f7, f8, f9, f10, b11, e11);
- }
- //-------------------------------------------------------------------------------------------------
- //00151E98
- void FETU_DrawSingleMedal(float f0, float f1, float f2, EMedal_Type e3, bool b4, bool b5, uint u6, int i7, float f8, bool b9) {
- LOGI("FETU_DrawSingleMedal 00151E98 %.2f %.2f %.2f %d %d %d %d %d %.2f %d",
- f0, f1, f2, e3, b4, b5, u6, i7, f8, b9);
- }
- //-------------------------------------------------------------------------------------------------
- //00152194
- void FETU_DrawClock(float f0, float f1, float f2, bool b3, bool b4) {
- LOGI("FETU_DrawClock %.2f %.2f %.2f", f0, f1, f2);
- }
- //-------------------------------------------------------------------------------------------------
- /*
- 19, 0x76655b94 in ?? () 0014EB94 FETU_InitKitCache()
- 20, 0x76655bac in ?? () 0014EBAC FETU_InitFlagCache()
- 1, 0x76655008 in ?? () 0014E008 FETU_GetImage(TImage *,char const*,bool,EFTTTexFormat,bool,bool,bool)
- 30, 0x7665758c in ?? () 0015058C FETU_RenderPitch(int,uint,int,bool)
- 0014e7e0 FETU_BlitTextureCo
- 0014e244 FETU_CheckFLCach
- 0014e450 FETU_CheckKitCach
- 0014eb6c FETU_ClearFlagCach
- 0014eb40 FETU_ClearKitCach
- 0014e974 FETU_CreateFlagTexture
- 0014e508 FETU_CreateKitIco
- 0014f368 FETU_DrawBoxRounded
- 001500d8 FETU_DrawBoxRoundedOutline
- 00152194 FETU_DrawClock
- 00151324 FETU_DrawLevelNumber
- 001504f0 FETU_DrawLoadingArro
- 00151770 FETU_DrawObjectiveBox
- 00151e98 FETU_DrawSingleMedal
- 0014ebc4 FETU_DrawWoodBo
- 0014ea40 FETU_GetFlag
- 0014e008 FETU_GetImag
- 0014e4c4 FETU_GetKi
- 0014e102 FETU_GetStoryImag
- 0014e124 FETU_GetStoryImage
- 0015124c FETU_GetTeamLog
- 0015058c FETU_RenderPitch
- 0014ebac FETU_InitFlagCach
- 0014eb94 FETU_InitKitCach
- */
|