From 33b2a07759041c144f919103214c8539d1b5df79 Mon Sep 17 00:00:00 2001 From: tuxlovesyou Date: Fri, 11 Mar 2022 21:10:46 -0600 Subject: [PATCH] Added LOAD_MIO0_TEXTURE alias for backwards-compatibility (#349) Sometimes tools like Fast64 will export script.c files with LOAD_MIO0_TEXTURE() macro "calls" even when you have "YAY0" toggled under the export menu. To keep this from being a roadblock for compilation, LOAD_MIO0_TEXTURE() is defined in this commit as an alias to the LOAD_YAY0_TEXTURE() macro! :-) --- README.md | 1 + include/level_commands.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 490b2a32..e53df151 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ This is a fork of the ultrasm64 repo by CrashOveride which includes the followin - **CrashOveride**: creating the [ultrasm64](https://github.com/CrashOveride95/ultrasm64) repo - **falcobuster**: Original coordinate overflow fix (world scale), ASM version of extended bounds - **anonymous_moose**: porting falco's extended bounds to decomp +- **tuxlovesyou**: `LOAD_MIO0_TEXTURE` macro and moral support Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff diff --git a/include/level_commands.h b/include/level_commands.h index fdd35a6c..4c2de0ef 100644 --- a/include/level_commands.h +++ b/include/level_commands.h @@ -310,6 +310,9 @@ enum GoddardScene { CMD_PTR(romEnd) #endif +#undef LOAD_MIO0_TEXTURE +#define LOAD_MIO0_TEXTURE(a,b,c) LOAD_YAY0_TEXTURE(a,b,c) + #define CHANGE_AREA_SKYBOX(area, segStart, segEnd) \ CMD_BBH(LEVEL_CMD_CHANGE_AREA_SKYBOX, 0x0C, area), \ CMD_PTR(segStart), \