mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-28 23:15:32 -04:00
d_a_obj_kznkarm OK (#2678)
* d_a_obj_kznkarm OK * d_a_title GZ2P01 Matching * More GZ2P01 Matches * d_s_name matching for PAL * d_msg_scrn_light Matching for PAL * d_menu_fishing Matches on PAL * d_file_sel_info Matches on PAL * d_a_npc_cd Matching on PAL * d_error_msg Matches on PAL * d_cam_param matches as is on PAL * Fix PAL JSystem and Z2AudioLib splits/symbols * Aligning the rest of TUs to compile on all GC versions
This commit is contained in:
@@ -137,10 +137,25 @@ bool dMenu_Fishing_c::isSync() {
|
||||
|
||||
/* 801C522C-801C52E4 1BFB6C 00B8+00 1/1 0/0 0/0 .text init__15dMenu_Fishing_cFv */
|
||||
void dMenu_Fishing_c::init() {
|
||||
#if VERSION == VERSION_GCN_PAL
|
||||
BOOL isEnglish = FALSE;
|
||||
if (dComIfGs_getPalLanguage() == dSv_player_config_c::LANGAUGE_ENGLISH) {
|
||||
isEnglish = TRUE;
|
||||
}
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < MAX_FINDABLE_FISHES; i++) {
|
||||
if (dComIfGs_getFishNum(i) != 0) {
|
||||
// Fish has been caught once, display it along with it's params
|
||||
#if VERSION == VERSION_GCN_PAL
|
||||
if (isEnglish) {
|
||||
setFishParam(i, dComIfGs_getFishNum(i), dComIfGs_getFishSize(i) / 2.54f);
|
||||
} else {
|
||||
setFishParam(i, dComIfGs_getFishNum(i), dComIfGs_getFishSize(i));
|
||||
}
|
||||
#else
|
||||
setFishParam(i, dComIfGs_getFishNum(i), dComIfGs_getFishSize(i));
|
||||
#endif
|
||||
mpFishParent[i]->show();
|
||||
} else {
|
||||
// Fish hasn't been caught yet, don't display it and also hide params
|
||||
|
||||
Reference in New Issue
Block a user