diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2024-05-30 23:30:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-30 23:30:05 -0400 |
| commit | 65870f3c075a62cbbb9bf68f120817fbfc195e68 (patch) | |
| tree | f1f0a2d2c9dbd7a776de295dcd4e97f716d73bf4 | |
| parent | 464c55fcbb5191694b5f9b402c1a2bc74e85192c (diff) | |
update to latest lus main (#614)
* update to latest lus main
* upstream otrexporter and zapdtr submodules
* upstream LUS submodule
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| m--------- | OTRExporter | 0 | ||||
| m--------- | ZAPDTR | 0 | ||||
| m--------- | libultraship | 0 | ||||
| -rw-r--r-- | mm/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | mm/include/gfx.h | 4 | ||||
| -rw-r--r-- | mm/src/code/stubs.c | 12 |
7 files changed, 14 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 646250c52..9238ed593 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,9 @@ endif() # Enable the Gfx debugger in LUS to use libgfxd from ZAPDTR set(GFX_DEBUG_DISASSEMBLER ON) +# Tell LUS we're using F3DEX_GBI_2 (in a way that doesn't break libgfxd) +set(USE_F3DEX2 ON) + ################################################################################ # Set target arch type if empty. Visual studio solution generator provides it. ################################################################################ diff --git a/OTRExporter b/OTRExporter -Subproject c2a891be8ba1d33e09ee39eb4bf1c95e3b753e0 +Subproject 287c79891882df5a0797cd9d39c0dcb97af9f00 diff --git a/ZAPDTR b/ZAPDTR -Subproject ce2d63d8dd594a8ebc35073868d071aa3625831 +Subproject b002f28757a7ff9f928a4d9dd1834137edb144b diff --git a/libultraship b/libultraship -Subproject 0c4b491125e86709400d7bae866159eecd079d3 +Subproject efeeaf34fee7bd7b21e9a9dbda84847e1601fd5 diff --git a/mm/CMakeLists.txt b/mm/CMakeLists.txt index 86e067161..b03c9ff59 100644 --- a/mm/CMakeLists.txt +++ b/mm/CMakeLists.txt @@ -423,6 +423,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Windows") #"$<$<BOOL:${BUILD_CROWD_CONTROL}>:ENABLE_CROWD_CONTROL>" "INCLUDE_GAME_PRINTF;" #"ENABLE_CROWD_CONTROL;" + "F3DEX_GBI_2" "UNICODE;" "_UNICODE" STORMLIB_NO_AUTO_LINK @@ -437,6 +438,7 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "CafeOS") "$<$<CONFIG:Release>:" "NDEBUG" ">" + "F3DEX_GBI_2" "SPDLOG_ACTIVE_LEVEL=3;" "SPDLOG_NO_THREAD_ID;" "SPDLOG_NO_TLS;" @@ -450,6 +452,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU|Clang|AppleClang") "$<$<CONFIG:Release>:" "NDEBUG" ">" + "F3DEX_GBI_2" # "$<$<BOOL:${BUILD_CROWD_CONTROL}>:ENABLE_CROWD_CONTROL>" "SPDLOG_ACTIVE_LEVEL=0;" "_CONSOLE;" diff --git a/mm/include/gfx.h b/mm/include/gfx.h index 85705ba2f..ab031b075 100644 --- a/mm/include/gfx.h +++ b/mm/include/gfx.h @@ -244,8 +244,8 @@ void func_8012D374(GraphicsContext* gfxCtx, u8 r, u8 g, u8 b); void func_8012D40C(f32* param_1, f32* param_2, s16* param_3); void gSPSegment(void* value, int segNum, uintptr_t target); void gSPSegmentLoadRes(void* value, int segNum, uintptr_t target); -void gDPSetTextureImage(Gfx* pkt, u32 format, u32 size, u32 width, uintptr_t i); -void gDPSetTextureImageFB(Gfx* pkt, u32 format, u32 size, u32 width, int fb); +// void gDPSetTextureImage(Gfx* pkt, u32 format, u32 size, u32 width, uintptr_t i); +// void gDPSetTextureImageFB(Gfx* pkt, u32 format, u32 size, u32 width, int fb); void gSPDisplayList(Gfx* pkt, Gfx* dl); void gSPDisplayListOffset(Gfx* pkt, Gfx* dl, int offset); void gSPVertex(Gfx* pkt, uintptr_t v, int n, int v0); diff --git a/mm/src/code/stubs.c b/mm/src/code/stubs.c index a40bb8e83..35de8a506 100644 --- a/mm/src/code/stubs.c +++ b/mm/src/code/stubs.c @@ -184,13 +184,13 @@ void gSPSegmentLoadRes(void* value, int segNum, uintptr_t target) { __gSPSegment(value, segNum, target); } -void gDPSetTextureImage(Gfx* pkt, u32 format, u32 size, u32 width, uintptr_t i) { - __gDPSetTextureImage(pkt, format, size, width, i); -} +// void gDPSetTextureImage(Gfx* pkt, u32 format, u32 size, u32 width, uintptr_t i) { +// __gDPSetTextureImage(pkt, format, size, width, i); +// } -void gDPSetTextureImageFB(Gfx* pkt, u32 format, u32 size, u32 width, int fb) { - __gDPSetTextureImageFB(pkt, format, size, width, fb); -} +// void gDPSetTextureImageFB(Gfx* pkt, u32 format, u32 size, u32 width, int fb) { +// __gDPSetTextureImageFB(pkt, format, size, width, fb); +// } void gSPDisplayList(Gfx* pkt, Gfx* dl) { char* imgData = (char*)dl; |
