mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-07 14:13:58 -04:00
More fixes
This commit is contained in:
+3
-2
@@ -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
@@ -17,7 +17,7 @@ nop
|
||||
.endif
|
||||
|
||||
.text
|
||||
gsymbol osTvType 0x80000300
|
||||
# gsymbol osTvType 0x80000300
|
||||
gsymbol osRomType 0x80000304
|
||||
gsymbol osRomBase 0x80000308
|
||||
gsymbol osResetType 0x8000030C
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef MK64_H
|
||||
#define MK64_H
|
||||
|
||||
#include <libultraship.h>
|
||||
|
||||
/**
|
||||
* @file mk64.h
|
||||
* Global header for mk64
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@
|
||||
extern u32 osTvType = OS_TV_NTSC;
|
||||
extern u32 osResetType;
|
||||
|
||||
extern u8 osAppNmiBuffer[64];
|
||||
extern u8 osAppNmiBuffer[64];
|
||||
|
||||
+4
-3
@@ -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
@@ -6,4 +6,4 @@
|
||||
u32 osTvType = OS_TV_NTSC;
|
||||
u32 osResetType;
|
||||
|
||||
u8 osAppNmiBuffer[64];
|
||||
u8 osAppNmiBuffer[64];
|
||||
|
||||
Reference in New Issue
Block a user