summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorAlejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com>2024-08-24 19:36:53 -0300
committerGitHub <noreply@github.com>2024-08-24 19:36:53 -0300
commite82019fa2bd527bca3a9dad48175a6b8f2a1fee7 (patch)
treeda9bba80666743402ec29c7219c53f526a98a01a /src/sys
parent669fff8759859306d6ca8ae71f40073a934a188f (diff)
Actor Docs (#270)
* Docs * actor timer_04C -> work_04C * Actor & Boss unk_04A -> work_04A * actor & boss unk_048 -> work_048 * actor & boss unk_046 -> work_046 * boss unk_044 -> work_044 * actor event docs * ActorEvent docs * name all Event Actor IDs * EVID names in EventActorInfo comments * refactor EVC_PASSED_ALL_RINGS by @inspectredc * clarification comment * some option docs * audio enums and macros * some audio renamings
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index b3527876..8feb1455 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -105,6 +105,7 @@ void Audio_ThreadEntry(void* arg0) {
AudioLoad_Init();
Audio_InitSounds();
+
task = AudioThread_CreateTask();
if (task != NULL) {
task->mesgQueue = &gAudioTaskMesgQueue;
@@ -112,6 +113,7 @@ void Audio_ThreadEntry(void* arg0) {
osWritebackDCacheAll();
osSendMesg(&gTaskMesgQueue, task, OS_MESG_NOBLOCK);
}
+
while (true) {
task = AudioThread_CreateTask();
if (task != NULL) {
@@ -120,6 +122,7 @@ void Audio_ThreadEntry(void* arg0) {
osWritebackDCacheAll();
}
MQ_GET_MESG(&gAudioTaskMesgQueue, NULL);
+
if (task != NULL) {
osSendMesg(&gTaskMesgQueue, task, OS_MESG_NOBLOCK);
}
@@ -176,6 +179,7 @@ void Main_SetVIMode(void) {
(gControllerHold[3].button & R_TRIG) && (gControllerHold[3].button & Z_TRIG)) {
sGammaMode = 1 - sGammaMode;
}
+
switch (osTvType) {
case OS_TV_PAL:
osViSetMode(&osViModePalLan1);
@@ -188,6 +192,7 @@ void Main_SetVIMode(void) {
osViSetMode(&osViModeNtscLan1);
break;
}
+
if (sGammaMode != 0) {
osViSetSpecialFeatures(OS_VI_DITHER_FILTER_ON | OS_VI_DIVOT_OFF | OS_VI_GAMMA_ON | OS_VI_GAMMA_DITHER_ON);
} else {