progress definining core1 .data & .rodata sections
This commit is contained in:
@@ -26,7 +26,7 @@ u8 _gcbound_blue; //D_80380902
|
||||
void _gcbound_draw(Gfx** dl, s32 a, s32 r, s32 g, s32 b){
|
||||
gSPDisplayList((*dl)++, &D_803688E8);
|
||||
gDPSetFogColor((*dl)++, r, g, b, a);
|
||||
gSPTextureRectangle((*dl)++, 0, 0, (D_80276588-1)<<2, (D_8027658C-1)<<2, 0, 0, 0, 0x100, 0x100);
|
||||
gSPTextureRectangle((*dl)++, 0, 0, (framebuffer_width-1)<<2, (framebuffer_height-1)<<2, 0, 0, 0, 0x100, 0x100);
|
||||
}
|
||||
|
||||
void gcbound_draw(Gfx** dl){
|
||||
|
@@ -1280,7 +1280,7 @@ void gcpausemenu_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
|
||||
}
|
||||
|
||||
gcpausemenu_drawSprite(gfx, mtx, vtx, D_80383010.joystick_sprite, D_80383010.joystick_frame, 30.0f, 196.0f, 1, (s32) D_80383010.left_joystick_alpha);
|
||||
gcpausemenu_drawSprite(gfx, mtx, vtx, D_80383010.joystick_sprite, D_80383010.joystick_frame, (f32) (D_80276588 - 0x1E), 196.0f, 0, (s32) D_80383010.right_joystick_alpha);
|
||||
gcpausemenu_drawSprite(gfx, mtx, vtx, D_80383010.joystick_sprite, D_80383010.joystick_frame, (f32) (framebuffer_width - 0x1E), 196.0f, 0, (s32) D_80383010.right_joystick_alpha);
|
||||
var_a0 =((*((u32 *)&D_80383010.state) << 0x1c) >> 0x1f); //left_joystick_visible
|
||||
if ( var_a0 != 0) {
|
||||
if (D_80383010.left_joystick_alpha < 0xFF) {
|
||||
@@ -1303,7 +1303,7 @@ void gcpausemenu_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx) {
|
||||
D_80383010.right_joystick_alpha = (D_80383010.right_joystick_alpha - 0xC > 0) ? D_80383010.right_joystick_alpha - 0xC : 0;
|
||||
}
|
||||
}
|
||||
gcpausemenu_drawSprite(gfx, mtx, vtx, D_80383010.b_button_sprite, (s32) D_80383010.b_button_frame, D_80276588 * 0.5, 196.0f, 0, (s32) D_80383010.b_button_alpha);
|
||||
gcpausemenu_drawSprite(gfx, mtx, vtx, D_80383010.b_button_sprite, (s32) D_80383010.b_button_frame, framebuffer_width * 0.5, 196.0f, 0, (s32) D_80383010.b_button_alpha);
|
||||
var_a0 = ((*((u32 *)&D_80383010.state) << 0x1e) >> 0x1f);//b_button_visible
|
||||
if (var_a0 != 0) {
|
||||
if (D_80383010.b_button_alpha < 0xFF) {
|
||||
|
@@ -76,7 +76,7 @@ void sky_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){
|
||||
|
||||
func_8024CE60(5.0f, 15000.0f);
|
||||
if(gcSky.model_bins[0]){
|
||||
func_80254084(gfx, 0, 0, (s32)(f32) D_80276588, (s32)(f32)D_8027658C,0, 0, 0); //fill screen with black
|
||||
func_80254084(gfx, 0, 0, (s32)(f32) framebuffer_width, (s32)(f32)framebuffer_height,0, 0, 0); //fill screen with black
|
||||
func_8024C904(gfx, mtx);
|
||||
func_8024C5CC(position);
|
||||
for(i = 0; i < 3; i++){
|
||||
@@ -90,7 +90,7 @@ void sky_draw(Gfx **gfx, Mtx **mtx, Vtx **vtx){
|
||||
}
|
||||
}
|
||||
else{//L8030B200
|
||||
func_80254084(gfx, 0, 0, (s32)(f32) D_80276588, (s32)(f32)D_8027658C, 0, 0, 0);
|
||||
func_80254084(gfx, 0, 0, (s32)(f32) framebuffer_width, (s32)(f32)framebuffer_height, 0, 0, 0);
|
||||
}//L8030B254
|
||||
}
|
||||
|
||||
|
@@ -869,7 +869,7 @@ void func_803164B0(gczoombox_t *this, Gfx **gfx, Mtx **mtx, s32 arg3, s32 arg4,
|
||||
}
|
||||
sp2C[1] = this->unk172 + ((f32) arg4 * this->unk198);
|
||||
sp2C[2] = -10.0f;
|
||||
func_80252330((sp2C[0] * 4.0f) - ((f32)D_80276588 * 2), ((f32)D_8027658C * 2) - (sp2C[1] * 4.0f), sp2C[2]);
|
||||
func_80252330((sp2C[0] * 4.0f) - ((f32)framebuffer_width * 2), ((f32)framebuffer_height * 2) - (sp2C[1] * 4.0f), sp2C[2]);
|
||||
temp_f12 = (f32) ((f64) this->unk198 * 0.8);
|
||||
mlMtxScale_xyz(temp_f12, temp_f12, 1.0f);
|
||||
mlMtxApply(*mtx);
|
||||
@@ -1413,8 +1413,8 @@ gczoombox_t *gczoombox_new(s32 arg0, enum talk_pic_e portrait_id, s32 arg2, s32
|
||||
this->unk1A4_24 = arg3;
|
||||
if(this->unk1A4_24){
|
||||
this->unk16A = 45;
|
||||
this->unk174 = D_80276588 - 0x25;
|
||||
this->unk170 = D_80276588 + 0x66;
|
||||
this->unk174 = framebuffer_width - 0x25;
|
||||
this->unk170 = framebuffer_width + 0x66;
|
||||
}else{
|
||||
this->unk16A = 71;
|
||||
this->unk174 = 0x25;
|
||||
@@ -1610,9 +1610,9 @@ void func_80318640(gczoombox_t *this, s32 arg1, f32 arg2, f32 arg3, s32 arg4) {
|
||||
|
||||
if (this != NULL) {
|
||||
if (this->unk1A4_24) {
|
||||
this->unk174 = D_80276588 - arg1;
|
||||
this->unk174 = framebuffer_width - arg1;
|
||||
this->unk16A = arg1 + (8.0f * arg2);
|
||||
this->unk170 = (D_80276588 - arg1) + 0x8B;
|
||||
this->unk170 = (framebuffer_width - arg1) + 0x8B;
|
||||
} else {
|
||||
this->unk174 = arg1;
|
||||
phi_v0 = arg4 ? 0x28 : 0x22;
|
||||
|
Reference in New Issue
Block a user