1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-06 16:04:35 +00:00

Document HREG debugging system (#1351)

* progress

* progress

* change

* named most

* name prerender things

* fix and format

* play prefix

* address most comments (still a few more things to do)

* fix error

* reword input test comments

* some more

* rework env draw flags

* add hilite

* merge and format

* init to proper values

* rename env draw flag names

* 7 to 6

* more small changes
This commit is contained in:
fig02 2022-11-26 15:22:01 -05:00 committed by GitHub
parent 274743738b
commit eb0a82c513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 370 additions and 188 deletions

View file

@ -1649,11 +1649,13 @@ void (*sSceneDrawConfigs[SDC_MAX])(PlayState*) = {
};
void Scene_Draw(PlayState* play) {
if (HREG(80) == 17) {
if (HREG(95) != 17) {
HREG(95) = 17;
HREG(81) = 1;
HREG(82) = 1;
if (R_HREG_MODE == HREG_MODE_SCENE_CONFIG) {
if (R_SCENE_CONFIG_INIT != HREG_MODE_SCENE_CONFIG) {
R_SCENE_CONFIG_INIT = HREG_MODE_SCENE_CONFIG;
R_SCENE_CONFIG_DRAW_DEFAULT_DLIST = 1;
R_SCENE_CONFIG_DRAW_SCENE_CONFIG = 1;
// these regs are not used in this mode
HREG(83) = 0;
HREG(84) = 0;
HREG(85) = 0;
@ -1669,14 +1671,14 @@ void Scene_Draw(PlayState* play) {
OPEN_DISPS(play->state.gfxCtx, "../z_scene_table.c", 8104);
if (HREG(81) == 1) {
if (R_SCENE_CONFIG_DRAW_DEFAULT_DLIST == 1) {
gSPDisplayList(POLY_OPA_DISP++, sDefaultDisplayList);
gSPDisplayList(POLY_XLU_DISP++, sDefaultDisplayList);
}
CLOSE_DISPS(play->state.gfxCtx, "../z_scene_table.c", 8109);
if (HREG(82) == 1) {
if (R_SCENE_CONFIG_DRAW_SCENE_CONFIG == 1) {
sSceneDrawConfigs[play->sceneDrawConfig](play);
}
} else {