More fixes

This commit is contained in:
MegaMech
2024-05-02 17:21:29 -06:00
parent e3774dc377
commit e5c9616a64
6 changed files with 12 additions and 8 deletions
+3 -2
View File
@@ -91,13 +91,12 @@ include_directories(
)
# Collect source files to build the executable
file(GLOB ALL_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
file(GLOB ALL_FILES_ROOT RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"src/*.c"
"src/*.h"
)
file(GLOB_RECURSE ALL_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"src/*"
"src/buffers/*.c"
"src/buffers/*.h"
"src/data/*.c"
@@ -116,6 +115,8 @@ file(GLOB_RECURSE ALL_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
"assets/code"
)
list(APPEND ALL_FILES ${ALL_FILES_ROOT})
# Exclude specific files from the ALL_FILES list
list(FILTER ALL_FILES EXCLUDE REGEX ".*.inc.c")
list(FILTER ALL_FILES EXCLUDE REGEX "./src/debug/crash_screen_enhancement.c")
+1 -1
View File
@@ -17,7 +17,7 @@ nop
.endif
.text
gsymbol osTvType 0x80000300
# gsymbol osTvType 0x80000300
gsymbol osRomType 0x80000304
gsymbol osRomBase 0x80000308
gsymbol osResetType 0x8000030C
+2
View File
@@ -1,6 +1,8 @@
#ifndef MK64_H
#define MK64_H
#include <libultraship.h>
/**
* @file mk64.h
* Global header for mk64
+1 -1
View File
@@ -4,4 +4,4 @@
extern u32 osTvType = OS_TV_NTSC;
extern u32 osResetType;
extern u8 osAppNmiBuffer[64];
extern u8 osAppNmiBuffer[64];
+4 -3
View File
@@ -3,6 +3,7 @@
#endif
#include <libultraship.h>
#include <libultra/vi.h>
#include <libultra/os.h>
#include <macros.h>
#include <decode.h>
#include <mk64.h>
@@ -248,9 +249,9 @@ void setup_mesg_queues(void) {
osCreateMesgQueue(&gDmaMesgQueue, gDmaMesgBuf, ARRAY_COUNT(gDmaMesgBuf));
osCreateMesgQueue(&gSPTaskMesgQueue, gSPTaskMesgBuf, ARRAY_COUNT(gSPTaskMesgBuf));
osCreateMesgQueue(&gIntrMesgQueue, gIntrMesgBuf, ARRAY_COUNT(gIntrMesgBuf));
osViSetEvent(&gIntrMesgQueue, MESG_VI_VBLANK, 1);
osSetEventMesg(OS_EVENT_SP, &gIntrMesgQueue, (OSMesg) MESG_SP_COMPLETE);
osSetEventMesg(OS_EVENT_DP, &gIntrMesgQueue, (OSMesg) MESG_DP_COMPLETE);
osViSetEvent(&gIntrMesgQueue, OS_MESG_32(MESG_VI_VBLANK), 1);
osSetEventMesg(OS_EVENT_SP, &gIntrMesgQueue, OS_MESG_32(MESG_SP_COMPLETE));
osSetEventMesg(OS_EVENT_DP, &gIntrMesgQueue, OS_MESG_32(MESG_DP_COMPLETE));
}
void start_sptask(s32 taskType) {
+1 -1
View File
@@ -6,4 +6,4 @@
u32 osTvType = OS_TV_NTSC;
u32 osResetType;
u8 osAppNmiBuffer[64];
u8 osAppNmiBuffer[64];