diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-12-07 15:34:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-07 07:34:53 -0700 |
| commit | 02ad54ca72f5baf4614cb9b7c30f8dd780764d90 (patch) | |
| tree | bd2719a154830d4c538e0caf91eb845ddb45552d /src/engine/courses/DoubleDeck.cpp | |
| parent | eec7d650482134352b7cde4801b979ce1ed2044e (diff) | |
Refactor yaml and remove segment (#531)
* move yaml (still need to fix header path)
* fix header
* change kart to karts and add migration
* fix include
* Update migration.py
* fix common_texture_debug_font extraction
* Update torch
* update torch and header
* unduplicate texture for tumble
* Update torch
* Update migration.py
* put the sort by default
* fix replace_segmented_textures_with_o2r_textures
* Update torch
* fix yamls
* add manual_segments in data of course
* comment out replace_segmented_textures_with_o2r_textures and segment 3
* remove segment 5
* (wip) remove segment 6
still plenty of thing to do
* more vtx
* more change
* Update torch
* small fix
* Update BansheeBoardwalk.cpp
* fix blockFort
* Delete test.yaml
* fix bowser castle and simplify track sections
* fix choco mountain
* clean banshee
* fix dk jungle
* fix double deck
* fix macos
* fix error
* fix macos ci
* Update torch
* Update torch
* fix frappe snowland
* fix kalimari desert
* fix koopa troopa beach
* fix luigi raceway
* fix mario raceway and simplify thing
* fix moo moo farm
* fix rainbow road
* Update torch
* Update torch
* hopefully fix windows error
* fix a small error
* fix royal raceway (and podium in theory)
* fix sherbet_land
* fix skyscraper
* fix toads turnpike
* fix wario stadium
* fix yoshi valley
* update torch
* more clang tidy rules
* REMOVE totally SEGMENT (sorry for the PR)
* remove unused field in course and props and unused packed asset
* fix kart texture
* fix particle
* fix track section and transparency
* try fix mode extra
* fix macos build and render
* fix collision in extra
* small change and try fix windows error
* a little of clean
* more cleanup
* forget header and more clean up
* Update Makefile
* fix credits
* fix kart texture offset
* remove LoadTextures and add Unload
* fix definitevely mirror mode
* add unload but it's not perfect
* revert a bad fix
* clean no longer used python script
* fix crash with player
* being able to load the same course twice
* add a comment on DrawWater
* fix render of transparent object
* better hack
* add a proper migration instruction
* fix number
* add basic modsmanager
* add meta/mods.toml
* Update EditorMath.h
* Update ModsManager.cpp
* basic modManager (maybe I should rename it ModLoader)
* use range on dependencies
* add information about mods.toml
* fix coment
* some rename around
* Delete beta-to-v1.md
* Update migrations.md
* Update textures-pack.md
* Update modding.md
* Update modding.md
* clean yamls_old
* move to mods in engine
* rename ModsManger to ModManager
* move init and unload at the top
* rename ModsMetadata to ModMetadata
* fix header
* Update ModManager.cpp
* put core mods at top
Diffstat (limited to 'src/engine/courses/DoubleDeck.cpp')
| -rw-r--r-- | src/engine/courses/DoubleDeck.cpp | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/src/engine/courses/DoubleDeck.cpp b/src/engine/courses/DoubleDeck.cpp index e92bc22d8..ad7de5700 100644 --- a/src/engine/courses/DoubleDeck.cpp +++ b/src/engine/courses/DoubleDeck.cpp @@ -5,8 +5,10 @@ #include "DoubleDeck.h" #include "World.h" +#include "align_asset_macro.h" #include "engine/objects/BombKart.h" -#include "assets/double_deck_data.h" +#include "assets/models/tracks/double_deck/double_deck_data.h" +#include "assets/other/tracks/double_deck/double_deck_data.h" extern "C" { #include "main.h" @@ -22,27 +24,16 @@ extern "C" { #include "code_80005FD0.h" #include "spawn_players.h" #include "render_objects.h" - #include "assets/common_data.h" + #include "assets/models/common_data.h" #include "save.h" #include "replays.h" #include "actors.h" #include "collision.h" #include "memory.h" - extern const char *double_deck_dls[]; extern s16 currentScreenSection; } -const course_texture double_deck_textures[] = { - { gTextureGrayCobblestone, 0x010C, 0x0800, 0x0 }, - { gTexture642978, 0x010D, 0x0800, 0x0 }, - { 0x00000000, 0x0000, 0x0000, 0x0 }, -}; - DoubleDeck::DoubleDeck() { - this->vtx = d_course_double_deck_vertex; - this->gfx = d_course_double_deck_packed_dls; - this->gfxSize = 699; - Props.textures = double_deck_textures; Props.Minimap.Texture = minimap_double_deck; Props.Minimap.Width = ResourceGetTexWidthByName(Props.Minimap.Texture); Props.Minimap.Height = ResourceGetTexHeightByName(Props.Minimap.Texture); @@ -116,13 +107,15 @@ DoubleDeck::DoubleDeck() { void DoubleDeck::Load() { Course::Load(); - - generate_collision_mesh_with_default_section_id((Gfx*) segmented_gfx_to_virtual((void*)0x07000738), 1); + if (gIsMirrorMode != 0) { + InvertTriangleWindingByName(d_course_double_deck_packed_dl_738); + } + generate_collision_mesh_with_default_section_id((Gfx*) d_course_double_deck_packed_dl_738, 1); func_80295C6C(); Props.WaterLevel = gCourseMinY - 10.0f; } -void DoubleDeck::LoadTextures() { +void DoubleDeck::UnLoad() { } void DoubleDeck::BeginPlay() { @@ -154,7 +147,7 @@ void DoubleDeck::Render(struct UnkStruct_800DC5EC* arg0) { gSPClearGeometryMode(gDisplayListHead++, G_LIGHTING); gSPClearGeometryMode(gDisplayListHead++, G_CULL_BACK); // d_course_double_deck_packed_dl_738 - gSPDisplayList(gDisplayListHead++, (segmented_gfx_to_virtual((void*)0x07000738))); + gSPDisplayList(gDisplayListHead++, (Gfx*) d_course_double_deck_packed_dl_738); gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK); } |
