mirror of
https://github.com/open-goal/jak-project
synced 2026-08-11 11:33:51 -04:00
[graphics] tie generic (#1341)
* [gtie] tie inst and proto functions * first chain input to generic ee looks good * m * works * ugh * add tie generic * rm debug print * rm generic ties from fr3
This commit is contained in:
@@ -108,16 +108,25 @@ void Generic2::determine_draw_modes() {
|
||||
|
||||
u64 bonus_adgif_data[4];
|
||||
memcpy(bonus_adgif_data, frag.header + (5 * 16), 4 * sizeof(u64));
|
||||
// ADGIF 5
|
||||
ASSERT((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::TEST_1));
|
||||
u64 final_test = bonus_adgif_data[0];
|
||||
|
||||
// ADGIF 6
|
||||
if ((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::ALPHA_1)) {
|
||||
final_alpha = bonus_adgif_data[2];
|
||||
} else {
|
||||
u64 final_test;
|
||||
if ((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::ALPHA_1)) {
|
||||
ASSERT((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::ALPHA_1));
|
||||
final_alpha = bonus_adgif_data[0];
|
||||
ASSERT((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::TEST_1));
|
||||
final_test = bonus_adgif_data[2];
|
||||
} else {
|
||||
// ADGIF 5
|
||||
ASSERT((u8)bonus_adgif_data[1] == (u8)(GsRegisterAddress::TEST_1));
|
||||
final_test = bonus_adgif_data[0];
|
||||
|
||||
// ADGIF 6
|
||||
if ((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::ALPHA_1)) {
|
||||
final_alpha = bonus_adgif_data[2];
|
||||
} else {
|
||||
ASSERT((u8)bonus_adgif_data[3] == (u8)(GsRegisterAddress::TEST_1));
|
||||
final_test = bonus_adgif_data[2];
|
||||
}
|
||||
}
|
||||
|
||||
if (final_alpha) {
|
||||
|
||||
Reference in New Issue
Block a user