mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
663e4549d8
* Proof of concept for loading rom assets at runtime * Added skybox textures * Adjusted format * Load all texture assets from rom * Adjusted rom asset loading * Load all Vtx lists from rom * clean up toad, wario and his cap conflicts * Load sound samples from rom * fix toad sounds * Loaded sequences from rom * Load collisions from rom * Object animations are now loaded from the rom * Load player animations from rom * Load goddard anims from rom * whoops * fix some compile errors * drag and drop rom checker, everything works now. * fix errors due to merge conflicts * fix compile errors on windows, switch to md5 * fix vertex colors during load Co-Authored-By: Agent X <44549182+agent-11@users.noreply.github.com> * Load dialogs from rom * Loaded course/act names from rom * Loaded ingame text from rom * rerun autogen & blacklist smlua_text_utils_init * fix ttc_seg7_vertex_0700B238 colors --------- Co-authored-by: MysterD <myster@d> Co-authored-by: Agent X <44549182+agent-11@users.noreply.github.com>
135 lines
4.6 KiB
C
135 lines
4.6 KiB
C
#include "pc/rom_assets.h"
|
|
#include <ultra64.h>
|
|
#include "sm64.h"
|
|
|
|
#include "make_const_nonconst.h"
|
|
|
|
// 0x0A000000 - 0x0A000100
|
|
ROM_ASSET_LOAD_VTX(title_screen_bg_vertex_0A000000, 0x002708c0, 12510, 0x00000000, 256);
|
|
|
|
// 0x0A000100 - 0x0A000118
|
|
const Gfx title_screen_bg_dl_0A000100[] = {
|
|
gsDPSetCombineMode(G_CC_DECALRGB, G_CC_DECALRGB),
|
|
gsDPSetRenderMode(G_RM_AA_OPA_SURF, G_RM_AA_OPA_SURF2),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0A000118 - 0x0A000130
|
|
const Gfx title_screen_bg_dl_0A000118[] = {
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsSPVertex(title_screen_bg_vertex_0A000000, 16, 0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0A000130 - 0x0A000148
|
|
const Gfx title_screen_bg_dl_0A000130[] = {
|
|
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0A000148 - 0x0A000160
|
|
const Gfx title_screen_bg_dl_0A000148[] = {
|
|
gsSP2Triangles( 4, 5, 6, 0x0, 4, 6, 7, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0A000160 - 0x0A000178
|
|
const Gfx title_screen_bg_dl_0A000160[] = {
|
|
gsSP2Triangles( 8, 9, 10, 0x0, 8, 10, 11, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0A000178 - 0x0A000190
|
|
const Gfx title_screen_bg_dl_0A000178[] = {
|
|
gsSP2Triangles(12, 13, 14, 0x0, 12, 14, 15, 0x0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0A000190 - 0x0A0001C0
|
|
const Gfx title_screen_bg_dl_0A000190[] = {
|
|
gsDPPipeSync(),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
// 0x0A0001C0
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A0001C0, "textures/title_screen_bg/title_screen_bg.001C0.rgba16.inc.c", 0x002708c0, 12510, 0x000001c0, 3200);
|
|
|
|
// 0x0A000E40
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A000E40, "textures/title_screen_bg/title_screen_bg.00E40.rgba16.inc.c", 0x002708c0, 12510, 0x00000e40, 3200);
|
|
|
|
// 0x0A001AC0
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A001AC0, "textures/title_screen_bg/title_screen_bg.01AC0.rgba16.inc.c", 0x002708c0, 12510, 0x00001ac0, 3200);
|
|
|
|
// 0x0A002740
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A002740, "textures/title_screen_bg/title_screen_bg.02740.rgba16.inc.c", 0x002708c0, 12510, 0x00002740, 3200);
|
|
|
|
// 0x0A0033C0
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A0033C0, "textures/title_screen_bg/title_screen_bg.033C0.rgba16.inc.c", 0x002708c0, 12510, 0x000033c0, 3200);
|
|
|
|
// 0x0A004040
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A004040, "textures/title_screen_bg/title_screen_bg.04040.rgba16.inc.c", 0x002708c0, 12510, 0x00004040, 3200);
|
|
|
|
// 0x0A004CC0
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A004CC0, "textures/title_screen_bg/title_screen_bg.04CC0.rgba16.inc.c", 0x002708c0, 12510, 0x00004cc0, 3200);
|
|
|
|
// 0x0A005940
|
|
ROM_ASSET_LOAD_TEXTURE(title_texture_0A005940, "textures/title_screen_bg/title_screen_bg.05940.rgba16.inc.c", 0x002708c0, 12510, 0x00005940, 3200);
|
|
|
|
// 0x0A0065C0
|
|
const Texture *const mario_title_texture_table[] = {
|
|
title_texture_0A0001C0, title_texture_0A000E40, title_texture_0A001AC0, title_texture_0A002740,
|
|
};
|
|
|
|
// 0x0A0065D0
|
|
const Texture *const game_over_texture_table[] = {
|
|
title_texture_0A0033C0, title_texture_0A004040, title_texture_0A004CC0, title_texture_0A005940,
|
|
};
|
|
|
|
UNUSED static const u64 title_screen_bg_unused_0 = 0;
|
|
|
|
#ifdef VERSION_SH
|
|
const Gfx title_screen_bg_dl_0A0065E8[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_COPY),
|
|
gsDPSetTexturePersp(G_TP_NONE),
|
|
gsDPSetTextureFilter(G_TF_POINT),
|
|
gsDPSetRenderMode(G_RM_NOOP, G_RM_NOOP2),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
const Gfx title_screen_bg_dl_0A006618[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsDPSetTexturePersp(G_TP_PERSP),
|
|
gsDPSetTextureFilter(G_TF_BILERP),
|
|
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
ALIGNED8 static const u8 title_texture_rumble_pak[] = {
|
|
#include "textures/title_screen_bg/title_screen_bg.06648.rgba16.inc.c"
|
|
};
|
|
|
|
Gfx title_screen_bg_dl_0A007548_start[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_COPY),
|
|
gsDPSetTexturePersp(G_TP_NONE),
|
|
gsDPSetTextureFilter(G_TF_POINT),
|
|
gsDPSetRenderMode(G_RM_NOOP, G_RM_NOOP2),
|
|
gsDPLoadTextureTile(title_texture_rumble_pak, G_IM_FMT_RGBA, G_IM_SIZ_16b, 80, 0, 0, 0, 79, 23, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 7, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx title_screen_bg_dl_0A007548_end[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsDPSetTexturePersp(G_TP_PERSP),
|
|
gsDPSetTextureFilter(G_TF_BILERP),
|
|
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
#endif
|