mirror of
https://github.com/n64decomp/mk64
synced 2026-08-19 05:22:09 -04:00
the big code_80091750.c rename (#684)
* some rename
* type menu
* continue rename and place const
* Renames and doc
* more
* buffer vars
* clang format
* continue rename
* some rename and get it compile (but don't match for obscure reason)
* get it match again and fix some warning
* fix all warning
* Match 6 functions
* continue rename
* load img renames and first step or label menu items
* MenuItem struct names and some rename
* rename around
* rename code_80091750 to menu_item
* clean up a little
* Update menu_item.h
* document waypoint and more
* Revert "document waypoint and more"
This reverts commit 5e6eb4fbcc.
* apply review
* Update menu_item.c
* fix some review
* rename func_8009E620 to clear_menus
* do a rename
* apply review
* finish rename normally
* more small rename
* few fix of name
* few more fix
* minor fix
* Update menus.c
* last rename normally
* Update render_menus.s
* Update menu_items.c
* Renames seg2 textures.c
* MENU_ITEMtype --> MENU_ITEM_TYPE
* remove a useless parameter
* func_80099110 --> clear_menu_textures
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Co-authored-by: AloXado320 <david.albujar.s.30@gmail.com>
This commit is contained in:
+10
-6
@@ -22,7 +22,7 @@
|
||||
#include "menus.h"
|
||||
#include "data/other_textures.h"
|
||||
#include "render_objects.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "src/data/some_data.h"
|
||||
#include "effects.h"
|
||||
|
||||
@@ -111,7 +111,10 @@ void clear_object_list() {
|
||||
objectListSize = -1;
|
||||
}
|
||||
|
||||
u8* func_8006ED94(u8* devAddr, u8* baseAddress, u32 size, u32 offset) {
|
||||
/**
|
||||
* Dma's mario kart 64 logo and course outline textures.
|
||||
*/
|
||||
u8* dma_copy_base_misc_textures(u8* devAddr, u8* baseAddress, u32 size, u32 offset) {
|
||||
u8** tempAddress;
|
||||
u8* address;
|
||||
address = baseAddress + offset;
|
||||
@@ -126,8 +129,9 @@ u8* func_8006ED94(u8* devAddr, u8* baseAddress, u32 size, u32 offset) {
|
||||
return baseAddress;
|
||||
}
|
||||
|
||||
void func_8006EE44(void) {
|
||||
D_8018D1E0 = func_8006ED94((u8*) &gTextureLogoMarioKart64, (u8*) D_8018D9B0, 0x79E1, 0x20000);
|
||||
void load_mario_kart_64_logo(void) {
|
||||
gGameLogoAddress =
|
||||
dma_copy_base_misc_textures((u8*) &gTextureLogoMarioKart64, (u8*) gMenuTextureBuffer, 0x79E1, 0x20000);
|
||||
}
|
||||
|
||||
// Some kind of initalization for the Item Window part of the HUD
|
||||
@@ -161,10 +165,10 @@ void func_8006EF60(void) {
|
||||
s16 huh;
|
||||
u8* wut;
|
||||
|
||||
wut = D_8018D9B4 + 0xFFFF0000;
|
||||
wut = gMenuCompressedBuffer + 0xFFFF0000;
|
||||
// clang-format off
|
||||
// God forgive me for my sins...
|
||||
huh = 0x14; if (0) {} for (i = 0; i < huh; i++) { D_8018D248[i] = func_8006ED94(gCourseOutlineTextures[i], wut, D_800E5520[i], D_800E5520[i]); wut += D_800E5520[i]; }
|
||||
huh = 0x14; if (0) {} for (i = 0; i < huh; i++) { D_8018D248[i] = dma_copy_base_misc_textures(gCourseOutlineTextures[i], wut, D_800E5520[i], D_800E5520[i]); wut += D_800E5520[i]; }
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user