mirror of
https://github.com/n64decomp/perfect_dark.git
synced 2024-11-23 22:09:54 +00:00
Decompile func0f0bc3f0
This commit is contained in:
parent
266302a760
commit
1505dcacfb
@ -66,12 +66,12 @@ u32 var800705b8 = 0x00000000;
|
|||||||
u32 var800705bc = 0x00000000;
|
u32 var800705bc = 0x00000000;
|
||||||
|
|
||||||
struct var800705c0 var800705c0[] = {
|
struct var800705c0 var800705c0[] = {
|
||||||
{ 0x0000, 0x0140, 0x0000, 0x00dc, 0x00000140, 0x3f800000, 0x00000001, 0x000000dc, 0x00000000, 0x000000b4, 0x00000014, 0x00000088, 0x0000002a },
|
{ 0x0000, 0x0140, 0x00dc, 0x00000140, 0x3f800000, 0x00000001, 0x000000dc, 0x00000000, 0x000000b4, 0x00000014, 0x00000088, 0x0000002a },
|
||||||
{ 0x0000, 0x0280, 0x0000, 0x00dc, 0x00000280, 0x3f000000, 0x00000001, 0x000000dc, 0x00000000, 0x000000b4, 0x00000014, 0x00000088, 0x0000002a },
|
{ 0x0000, 0x0280, 0x00dc, 0x00000280, 0x3f000000, 0x00000001, 0x000000dc, 0x00000000, 0x000000b4, 0x00000014, 0x00000088, 0x0000002a },
|
||||||
{ 0x0000, 0x0140, 0x0000, 0x01e0, 0x00000140, 0x40000000, 0x00000002, 0x000001b8, 0x00000014, 0x00000168, 0x0000003c, 0x00000110, 0x00000068 },
|
{ 0x0000, 0x0140, 0x01e0, 0x00000140, 0x40000000, 0x00000002, 0x000001b8, 0x00000014, 0x00000168, 0x0000003c, 0x00000110, 0x00000068 },
|
||||||
{ 0x0000, 0x01b8, 0x0000, 0x014a, 0x000001b8, 0x3f800000, 0x00000001, 0x0000014a, 0x00000000, 0x0000014a, 0x00000000, 0x0000014a, 0x00000000 },
|
{ 0x0000, 0x01b8, 0x014a, 0x000001b8, 0x3f800000, 0x00000001, 0x0000014a, 0x00000000, 0x0000014a, 0x00000000, 0x0000014a, 0x00000000 },
|
||||||
{ 0x0000, 0x01b8, 0x0000, 0x00f0, 0x000001b8, 0x3f3a2e8c, 0x00000001, 0x000000dc, 0x00000000, 0x000000b4, 0x00000000, 0x00000088, 0x00000000 },
|
{ 0x0000, 0x01b8, 0x00f0, 0x000001b8, 0x3f3a2e8c, 0x00000001, 0x000000dc, 0x00000000, 0x000000b4, 0x00000000, 0x00000088, 0x00000000 },
|
||||||
{ 0x0000, 0x0190, 0x0000, 0x012c, 0x00000190, 0x3f800000, 0x00000002, 0x0000012c, 0x00000000, 0x0000012c, 0x00000000, 0x0000012c, 0x00000000 },
|
{ 0x0000, 0x0190, 0x012c, 0x00000190, 0x3f800000, 0x00000002, 0x0000012c, 0x00000000, 0x0000012c, 0x00000000, 0x0000012c, 0x00000000 },
|
||||||
};
|
};
|
||||||
|
|
||||||
s32 g_HiResActive = 0;
|
s32 g_HiResActive = 0;
|
||||||
|
@ -5912,30 +5912,18 @@ glabel func0f0bc120
|
|||||||
/* f0bc3ec: 00000000 */ nop
|
/* f0bc3ec: 00000000 */ nop
|
||||||
);
|
);
|
||||||
|
|
||||||
GLOBAL_ASM(
|
void func0f0bc3f0(void)
|
||||||
glabel func0f0bc3f0
|
{
|
||||||
/* f0bc3f0: 3c0e8009 */ lui $t6,%hi(g_Is4Mb)
|
if (IS4MB()) {
|
||||||
/* f0bc3f4: 91ce0af0 */ lbu $t6,%lo(g_Is4Mb)($t6)
|
var800705c0[0].unk04 = 220;
|
||||||
/* f0bc3f8: 24010001 */ addiu $at,$zero,0x1
|
var800705c0[0].unk18 = 0;
|
||||||
/* f0bc3fc: 3c028007 */ lui $v0,%hi(var800705c0)
|
var800705c0[0].unk14 = 220;
|
||||||
/* f0bc400: 15c1000d */ bne $t6,$at,.L0f0bc438
|
var800705c0[0].unk1c = 180;
|
||||||
/* f0bc404: 244205c0 */ addiu $v0,$v0,%lo(var800705c0)
|
var800705c0[0].unk20 = 20;
|
||||||
/* f0bc408: 240300dc */ addiu $v1,$zero,0xdc
|
var800705c0[0].unk24 = 136;
|
||||||
/* f0bc40c: 240f00b4 */ addiu $t7,$zero,0xb4
|
var800705c0[0].unk28 = 42;
|
||||||
/* f0bc410: 24180014 */ addiu $t8,$zero,0x14
|
}
|
||||||
/* f0bc414: 24190088 */ addiu $t9,$zero,0x88
|
}
|
||||||
/* f0bc418: 2408002a */ addiu $t0,$zero,0x2a
|
|
||||||
/* f0bc41c: ac430004 */ sw $v1,0x4($v0)
|
|
||||||
/* f0bc420: ac400018 */ sw $zero,0x18($v0)
|
|
||||||
/* f0bc424: ac430014 */ sw $v1,0x14($v0)
|
|
||||||
/* f0bc428: ac4f001c */ sw $t7,0x1c($v0)
|
|
||||||
/* f0bc42c: ac580020 */ sw $t8,0x20($v0)
|
|
||||||
/* f0bc430: ac590024 */ sw $t9,0x24($v0)
|
|
||||||
/* f0bc434: ac480028 */ sw $t0,0x28($v0)
|
|
||||||
.L0f0bc438:
|
|
||||||
/* f0bc438: 03e00008 */ jr $ra
|
|
||||||
/* f0bc43c: 00000000 */ nop
|
|
||||||
);
|
|
||||||
|
|
||||||
void optionsSetHiRes(bool enable)
|
void optionsSetHiRes(bool enable)
|
||||||
{
|
{
|
||||||
@ -5950,7 +5938,7 @@ s16 func0f0bc44c(void)
|
|||||||
|
|
||||||
s16 func0f0bc478(void)
|
s16 func0f0bc478(void)
|
||||||
{
|
{
|
||||||
s16 value = var800705c0[g_HiResActive].unk06;
|
s16 value = var800705c0[g_HiResActive].unk04;
|
||||||
|
|
||||||
if (g_Vars.unk0004e0) {
|
if (g_Vars.unk0004e0) {
|
||||||
value = value >> 1;
|
value = value >> 1;
|
||||||
|
@ -5032,8 +5032,7 @@ struct var80075c00 {
|
|||||||
struct var800705c0 {
|
struct var800705c0 {
|
||||||
u16 unk00;
|
u16 unk00;
|
||||||
s16 unk02;
|
s16 unk02;
|
||||||
u16 unk04;
|
u32 unk04;
|
||||||
s16 unk06;
|
|
||||||
u32 unk08;
|
u32 unk08;
|
||||||
u32 unk0c;
|
u32 unk0c;
|
||||||
u32 unk10;
|
u32 unk10;
|
||||||
|
Loading…
Reference in New Issue
Block a user