mirror of
https://github.com/zeldaret/oot
synced 2026-06-19 15:59:56 -04:00
d1a5ea5110
* being code_800EC960 * wip * wip * more audio progress * migrate data in code_800E11F0 * wip * make ok * remove asm * wip * move some variables outside of gAudioContext to the AudioContext structure due to the size used in func_800E3094 * more progress * wip * wip * split code_800E11F0 * migrate rodata in code_800E11F0 * match functions that couldn't because of data issues * move code_800E4FE0 asm files * wip * more wip * fix global functions, and forward declarations * wip * wip * wip * ocarina wip * match a couple functions * some progress * separate some bss * match func_800EDA3C * some matching * more matches * migrate audio rodata * some matches * more matchess * start on synthesis * work on synthesis * fix function declaration * Merge branch 'master' into audio * match a few more functions * wip * wip * more matching, rename Audio_SetBGM to Audio_QueueSeqCmd * name several audio functions, and audiocontext members * more naming, rename code_800E11F0 to audio_load, code_800DAAC0 to audio_synthesis * audio wip * match a few more functions. * wip * add missing NON_MATCHING directive * wip * some matching, data reogranization * match cursed function * wip * wip * formatting * remove prefix from struct memebers * missed function rename * review Co-authored-by: fig02 <fig02srl@gmail.com>
47 lines
1.1 KiB
C
47 lines
1.1 KiB
C
#include "global.h"
|
|
#include "vt.h"
|
|
|
|
// this should probably go elsewhere but right now viconfig.o is the only object between idle and z_std_dma
|
|
OSPiHandle* gCartHandle = 0;
|
|
|
|
void ViConfig_UpdateVi(u32 mode) {
|
|
if (mode != 0) {
|
|
osSyncPrintf(VT_COL(YELLOW, BLACK) "osViSetYScale1(%f);\n" VT_RST, 1.0f);
|
|
|
|
if (osTvType == OS_TV_PAL) {
|
|
osViSetMode(&osViModePalLan1);
|
|
}
|
|
|
|
osViSetYScale(1.0f);
|
|
} else {
|
|
osViSetMode(&gViConfigMode);
|
|
|
|
if (gViConfigAdditionalScanLines != 0) {
|
|
osViExtendVStart(gViConfigAdditionalScanLines);
|
|
}
|
|
|
|
if (gViConfigFeatures != 0) {
|
|
osViSetSpecialFeatures(gViConfigFeatures);
|
|
}
|
|
|
|
if (gViConfigXScale != 1.0f) {
|
|
osViSetXScale(gViConfigXScale);
|
|
}
|
|
|
|
if (gViConfigYScale != 1.0f) {
|
|
osSyncPrintf(VT_COL(YELLOW, BLACK) "osViSetYScale3(%f);\n" VT_RST, gViConfigYScale);
|
|
osViSetYScale(gViConfigYScale);
|
|
}
|
|
}
|
|
|
|
gViConfigUseDefault = mode;
|
|
}
|
|
|
|
void ViConfig_UpdateBlack(void) {
|
|
if (gViConfigUseDefault != 0) {
|
|
osViBlack(1);
|
|
} else {
|
|
osViBlack(0);
|
|
}
|
|
}
|