sm64coopdx/text/us/courses_assets.inc.c
Isaac0-dev 663e4549d8
extract assets from rom at runtime (#4)
* 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>
2024-03-23 16:11:30 -04:00

123 lines
10 KiB
C

ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_BOB, 0x00108a40, 48390, 0x00010d14, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BOB_1, 0x00108a40, 48390, 0x00010fd4, 26);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BOB_2, 0x00108a40, 48390, 0x00010ff0, 30);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BOB_3, 0x00108a40, 48390, 0x00011010, 31);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BOB_4, 0x00108a40, 48390, 0x00011030, 21);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BOB_5, 0x00108a40, 48390, 0x00011048, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BOB_6, 0x00108a40, 48390, 0x00011060, 26);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_WF, 0x00108a40, 48390, 0x00010d2c, 20);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WF_1, 0x00108a40, 48390, 0x0001107c, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WF_2, 0x00108a40, 48390, 0x00011094, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WF_3, 0x00108a40, 48390, 0x000110b0, 25);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WF_4, 0x00108a40, 48390, 0x000110cc, 31);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WF_5, 0x00108a40, 48390, 0x000110ec, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WF_6, 0x00108a40, 48390, 0x00011108, 20);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_JRB, 0x00108a40, 48390, 0x00010d40, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_JRB_1, 0x00108a40, 48390, 0x0001111c, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_JRB_2, 0x00108a40, 48390, 0x00011138, 30);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_JRB_3, 0x00108a40, 48390, 0x00011158, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_JRB_4, 0x00108a40, 48390, 0x00011174, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_JRB_5, 0x00108a40, 48390, 0x00011194, 26);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_JRB_6, 0x00108a40, 48390, 0x000111b0, 23);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_CCM, 0x00108a40, 48390, 0x00010d54, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_CCM_1, 0x00108a40, 48390, 0x000111c8, 18);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_CCM_2, 0x00108a40, 48390, 0x000111dc, 18);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_CCM_3, 0x00108a40, 48390, 0x000111f0, 17);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_CCM_4, 0x00108a40, 48390, 0x00011204, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_CCM_5, 0x00108a40, 48390, 0x00011224, 24);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_CCM_6, 0x00108a40, 48390, 0x0001123c, 21);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_BBH, 0x00108a40, 48390, 0x00010d6c, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BBH_1, 0x00108a40, 48390, 0x00011254, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BBH_2, 0x00108a40, 48390, 0x00011268, 30);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BBH_3, 0x00108a40, 48390, 0x00011288, 28);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BBH_4, 0x00108a40, 48390, 0x000112a4, 21);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BBH_5, 0x00108a40, 48390, 0x000112bc, 18);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_BBH_6, 0x00108a40, 48390, 0x000112d0, 30);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_HMC, 0x00108a40, 48390, 0x00010d80, 18);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_HMC_1, 0x00108a40, 48390, 0x000112f0, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_HMC_2, 0x00108a40, 48390, 0x00011310, 24);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_HMC_3, 0x00108a40, 48390, 0x00011328, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_HMC_4, 0x00108a40, 48390, 0x00011344, 26);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_HMC_5, 0x00108a40, 48390, 0x00011360, 26);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_HMC_6, 0x00108a40, 48390, 0x0001137c, 24);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_LLL, 0x00108a40, 48390, 0x00010d94, 20);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_LLL_1, 0x00108a40, 48390, 0x00011394, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_LLL_2, 0x00108a40, 48390, 0x000113a8, 18);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_LLL_3, 0x00108a40, 48390, 0x000113bc, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_LLL_4, 0x00108a40, 48390, 0x000113dc, 20);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_LLL_5, 0x00108a40, 48390, 0x000113f0, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_LLL_6, 0x00108a40, 48390, 0x00011410, 29);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_SSL, 0x00108a40, 48390, 0x00010da8, 22);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SSL_1, 0x00108a40, 48390, 0x00011430, 30);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SSL_2, 0x00108a40, 48390, 0x00011450, 25);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SSL_3, 0x00108a40, 48390, 0x0001146c, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SSL_4, 0x00108a40, 48390, 0x00011488, 31);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SSL_5, 0x00108a40, 48390, 0x000114a8, 28);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SSL_6, 0x00108a40, 48390, 0x000114c4, 15);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_DDD, 0x00108a40, 48390, 0x00010dc0, 20);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_DDD_1, 0x00108a40, 48390, 0x000114d4, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_DDD_2, 0x00108a40, 48390, 0x000114e8, 22);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_DDD_3, 0x00108a40, 48390, 0x00011500, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_DDD_4, 0x00108a40, 48390, 0x000111b0, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_DDD_5, 0x00108a40, 48390, 0x00011534, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_DDD_6, 0x00108a40, 48390, 0x0001154c, 20);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_SL, 0x00108a40, 48390, 0x00010dd4, 18);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SL_1, 0x00108a40, 48390, 0x00011560, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SL_2, 0x00108a40, 48390, 0x00011574, 21);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SL_3, 0x00108a40, 48390, 0x0001158c, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SL_4, 0x00108a40, 48390, 0x000115a0, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SL_5, 0x00108a40, 48390, 0x000115c0, 30);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_SL_6, 0x00108a40, 48390, 0x000115e0, 15);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_WDW, 0x00108a40, 48390, 0x00010de8, 17);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WDW_1, 0x00108a40, 48390, 0x000115f0, 22);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WDW_2, 0x00108a40, 48390, 0x00011608, 16);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WDW_3, 0x00108a40, 48390, 0x00011618, 30);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WDW_4, 0x00108a40, 48390, 0x00011638, 28);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WDW_5, 0x00108a40, 48390, 0x00011654, 25);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_WDW_6, 0x00108a40, 48390, 0x00011670, 29);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_TTM, 0x00108a40, 48390, 0x00010dfc, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTM_1, 0x00108a40, 48390, 0x00011690, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTM_2, 0x00108a40, 48390, 0x000116a4, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTM_3, 0x00108a40, 48390, 0x000116c0, 26);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTM_4, 0x00108a40, 48390, 0x000116dc, 24);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTM_5, 0x00108a40, 48390, 0x000116f4, 30);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTM_6, 0x00108a40, 48390, 0x00011714, 29);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_THI, 0x00108a40, 48390, 0x00010e14, 20);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_THI_1, 0x00108a40, 48390, 0x00011734, 25);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_THI_2, 0x00108a40, 48390, 0x00011750, 31);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_THI_3, 0x00108a40, 48390, 0x00011770, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_THI_4, 0x00108a40, 48390, 0x00011790, 24);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_THI_5, 0x00108a40, 48390, 0x000117a8, 20);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_THI_6, 0x00108a40, 48390, 0x000117bc, 20);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_TTC, 0x00108a40, 48390, 0x00010e28, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTC_1, 0x00108a40, 48390, 0x000117d0, 19);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTC_2, 0x00108a40, 48390, 0x000117e4, 26);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTC_3, 0x00108a40, 48390, 0x00011800, 11);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTC_4, 0x00108a40, 48390, 0x0001180c, 20);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTC_5, 0x00108a40, 48390, 0x00011820, 27);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_TTC_6, 0x00108a40, 48390, 0x0001183c, 24);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_RR, 0x00108a40, 48390, 0x00010e3c, 16);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_RR_1, 0x00108a40, 48390, 0x00011854, 29);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_RR_2, 0x00108a40, 48390, 0x00011874, 25);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_RR_3, 0x00108a40, 48390, 0x00011890, 24);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_RR_4, 0x00108a40, 48390, 0x000118a8, 23);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_RR_5, 0x00108a40, 48390, 0x000118c0, 18);
ROM_ASSET_LOAD_DIALOG(act_name_COURSE_RR_6, 0x00108a40, 48390, 0x000118d4, 27);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_BITDW, 0x00108a40, 48390, 0x00010e4c, 28);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_BITFS, 0x00108a40, 48390, 0x00010e68, 26);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_BITS, 0x00108a40, 48390, 0x00010e84, 21);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_PSS, 0x00108a40, 48390, 0x00010e9c, 31);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_COTMC, 0x00108a40, 48390, 0x00010ebc, 27);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_TOTWC, 0x00108a40, 48390, 0x00010ed8, 25);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_VCUTM, 0x00108a40, 48390, 0x00010ef4, 29);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_WMOTR, 0x00108a40, 48390, 0x00010f14, 31);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_SA, 0x00108a40, 48390, 0x00010f34, 23);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_COURSE_CAKE_END, 0x00108a40, 48390, 0x0000000c, 1);
ROM_ASSET_LOAD_DIALOG(seg2_course_name_table_castle_secret_stars, 0x00108a40, 48390, 0x00010f50, 23);
ROM_ASSET_LOAD_DIALOG(extra_text_0, 0x00108a40, 48390, 0x000118f0, 34);
ROM_ASSET_LOAD_DIALOG(extra_text_1, 0x00108a40, 48390, 0x0000000c, 1);
ROM_ASSET_LOAD_DIALOG(extra_text_2, 0x00108a40, 48390, 0x0000000c, 1);
ROM_ASSET_LOAD_DIALOG(extra_text_3, 0x00108a40, 48390, 0x0000000c, 1);
ROM_ASSET_LOAD_DIALOG(extra_text_4, 0x00108a40, 48390, 0x0000000c, 1);
ROM_ASSET_LOAD_DIALOG(extra_text_5, 0x00108a40, 48390, 0x0000000c, 1);
ROM_ASSET_LOAD_DIALOG(extra_text_6, 0x00108a40, 48390, 0x0000000c, 1);