Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
84512c4
The start of QOL_FIXES has finally arrived!
rawr51919 Feb 12, 2021
4306918
Tweak a few things
rawr51919 Feb 12, 2021
bb925bb
Yikes! Fix this at once
rawr51919 Feb 12, 2021
fb114df
Fix a typo in one of the fixes
rawr51919 Feb 12, 2021
7bac354
Remove unneeded QOL_FIXES ifdef
rawr51919 Feb 12, 2021
2de1c7b
Fix this comment to actually be truthful
rawr51919 Feb 12, 2021
09d584b
Since this function is a void, no returns needed
rawr51919 Feb 12, 2021
de8b4bc
Upgrade all packages FIRST before doing anything
rawr51919 Feb 12, 2021
e08ab71
Fix a minor potential bug with QOL_FIXES
rawr51919 Feb 12, 2021
7265a27
Actually do the fix in profiler right
rawr51919 Feb 12, 2021
a6fbf94
Forgot one minor comment rename for QOL_FIXES
rawr51919 Feb 12, 2021
5e17d8f
cleantools fix part 1
rawr51919 Feb 12, 2021
3284540
cleantools fix part 2
rawr51919 Feb 12, 2021
b3c112e
Integrate 'press start to play' fix from https://github.com/sm64pc/sm…
rawr51919 Feb 12, 2021
debf5bd
Fix a minor issue with the divide by 0 fix
rawr51919 Feb 12, 2021
a1f561b
Fix definition of VERSION_SH here
rawr51919 Feb 12, 2021
d0471c5
Attempt formatting fix
rawr51919 Feb 12, 2021
17ddd26
Initialize this variable in QOL_FIXES
rawr51919 Feb 13, 2021
057f234
Attempt to fix this minor variable error
rawr51919 Feb 13, 2021
536066d
Forgot another fix (jeez, someone broke a lot in SM64)
rawr51919 Feb 13, 2021
129dd89
Forgot to fix this comment
rawr51919 Feb 13, 2021
1607474
This variable wrapped my brain around a tree too much
rawr51919 Feb 13, 2021
d3a0992
Had to get a bit more advanced with this fix
rawr51919 Feb 13, 2021
121c90a
Update object_list_processor.c
rawr51919 Feb 13, 2021
6829dca
Update object_list_processor.c
rawr51919 Feb 13, 2021
3ffcef7
Update ingame_menu.c
rawr51919 Feb 13, 2021
ce9d9e9
Another fix I forgot about prior
rawr51919 Feb 13, 2021
bb65044
Update README.md
rawr51919 Feb 13, 2021
f04fc16
Hard to tell what was supposed to be loaded here
rawr51919 Feb 13, 2021
2f97aa1
forgot an endif
rawr51919 Feb 13, 2021
825aaa0
Amalgamate some of the old fixes from older PRs here
rawr51919 Feb 13, 2021
7a00799
Build fixes underway for QOL_FIXES
rawr51919 Feb 13, 2021
fdaad30
Fixed as many warnings as per possible.
rawr51919 Feb 14, 2021
69260df
Build fixes as well as precompiled MXE fixes
rawr51919 Feb 14, 2021
bd50f83
More minor warning fixes
rawr51919 Feb 14, 2021
7b633a2
Various warning fixes with the command-line switches
rawr51919 Feb 14, 2021
72edfee
tweaked the dialog addition for QOL_FIXES
rawr51919 Feb 14, 2021
c055436
Fixed a small error in a commented-out line of code
rawr51919 Feb 14, 2021
332adb4
minor fix tweak
rawr51919 Feb 14, 2021
47e3f8b
Minor refactor of some QoL fixes
rawr51919 Feb 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:18.04 as build

RUN apt-get update && \
apt-get upgrade && \
apt-get install -y \
binutils-mips-linux-gnu \
bsdmainutils \
Expand Down
138 changes: 65 additions & 73 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ TARGET_BITS ?= 0
BETTERCAMERA ?= 0
# Disable no drawing distance by default
NODRAWINGDISTANCE ?= 0
# Disable texture fixes by default (helps with them purists)
TEXTURE_FIX ?= 0
# Disable QoL fixes by default (helps with them purists)
QOL_FIXES ?= 0
# Enable extended options menu by default
EXT_OPTIONS_MENU ?= 1
# Disable text-based save-files by default
Expand Down Expand Up @@ -102,10 +102,22 @@ ifeq ($(WINDOWS_BUILD),1)
TARGET_ARCH = i386pe
TARGET_BITS = 32
NO_BZERO_BCOPY := 1
NO_PIE = 0
else ifeq ($(CROSS),x86_64-w64-mingw32.static-)
TARGET_ARCH = i386pep
TARGET_BITS = 64
NO_BZERO_BCOPY := 1
NO_PIE = 0
else ifeq ($(CROSS),mxe-i686-w64-mingw32.static-)
TARGET_ARCH = i386pe
TARGET_BITS = 32
NO_BZERO_BCOPY := 1
NO_PIE = 0
else ifeq ($(CROSS),mxe-x86_64-w64-mingw32.static-)
TARGET_ARCH = i386pep
TARGET_BITS = 64
NO_BZERO_BCOPY := 1
NO_PIE = 0
endif
endif

Expand All @@ -117,24 +129,18 @@ endif

ifeq ($(VERSION),jp)
VERSION_DEF := VERSION_JP
else
ifeq ($(VERSION),us)
else ifeq ($(VERSION),us)
VERSION_DEF := VERSION_US
else
ifeq ($(VERSION),eu)
else ifeq ($(VERSION),eu)
VERSION_DEF := VERSION_EU
else
ifeq ($(VERSION),sh)
else ifeq ($(VERSION),sh)
$(warning Building SH is experimental and is prone to breaking. Try at your own risk.)
VERSION_DEF := VERSION_SH
# TODO: GET RID OF THIS!!! We should mandate assets for Shindou like EU but we dont have the addresses extracted yet so we'll just pretend you have everything extracted for now.
NOEXTRACT := 1
else
$(error unknown version "$(VERSION)")
endif
endif
endif
endif

TARGET := sm64.$(VERSION)
VERSION_CFLAGS := -D$(VERSION_DEF) -D_LANGUAGE_C
Expand All @@ -155,34 +161,26 @@ ifeq ($(GRUCODE),f3dex) # Fast3DEX
GRUCODE_ASFLAGS := --defsym F3DEX_GBI_SHARED=1
TARGET := $(TARGET).f3dex
COMPARE := 0
else
ifeq ($(GRUCODE),f3dex2) # Fast3DEX2
else ifeq ($(GRUCODE),f3dex2) # Fast3DEX2
GRUCODE_DEF := F3DEX_GBI_2
GRUCODE_ASFLAGS := --defsym F3DEX_GBI_SHARED=1
TARGET := $(TARGET).f3dex2
COMPARE := 0
else
ifeq ($(GRUCODE),f3dex2e) # Fast3DEX2 Extended (PC default)
else ifeq ($(GRUCODE),f3dex2e) # Fast3DEX2 Extended (PC default)
GRUCODE_DEF := F3DEX_GBI_2E
TARGET := $(TARGET).f3dex2e
COMPARE := 0
else
ifeq ($(GRUCODE),f3d_new) # Fast3D 2.0H (Shindou)
else ifeq ($(GRUCODE),f3d_new) # Fast3D 2.0H (Shindou)
GRUCODE_DEF := F3D_NEW
TARGET := $(TARGET).f3d_new
COMPARE := 0
else
ifeq ($(GRUCODE),f3dzex) # Fast3DZEX (2.0J / Animal Forest - Dōbutsu no Mori)
else ifeq ($(GRUCODE),f3dzex) # Fast3DZEX (2.0J / Animal Forest - Dōbutsu no Mori)
$(warning Fast3DZEX is experimental. Try at your own risk.)
GRUCODE_DEF := F3DEX_GBI_2
GRUCODE_ASFLAGS := --defsym F3DEX_GBI_SHARED=1
TARGET := $(TARGET).f3dzex
COMPARE := 0
endif
endif
endif
endif
endif

GRUCODE_CFLAGS := -D$(GRUCODE_DEF)
GRUCODE_ASFLAGS := $(GRUCODE_ASFLAGS) --defsym $(GRUCODE_DEF)=1
Expand Down Expand Up @@ -227,8 +225,7 @@ endif
# on tools and assets, and we use directory globs further down
# in the makefile that we want should cover assets.)

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
ifeq (,$(findstring clean,$(MAKECMDGOALS)))

# Make sure assets exist
NOEXTRACT ?= 0
Expand All @@ -245,7 +242,6 @@ ifeq ($(DUMMY),FAIL)
$(error Failed to build tools)
endif

endif
endif

################ Target Executable and Sources ###############
Expand All @@ -263,17 +259,12 @@ LIBULTRA := $(BUILD_DIR)/libultra.a

ifeq ($(TARGET_WEB),1)
EXE := $(BUILD_DIR)/$(TARGET).html
else
ifeq ($(WINDOWS_BUILD),1)
EXE := $(BUILD_DIR)/$(TARGET).exe

else # Linux builds/binary namer
ifeq ($(TARGET_RPI),1)
EXE := $(BUILD_DIR)/$(TARGET).arm
else
EXE := $(BUILD_DIR)/$(TARGET)
endif
endif
else ifeq ($(WINDOWS_BUILD),1)
EXE := $(BUILD_DIR)/$(TARGET).exe
else ifeq ($(TARGET_RPI),1) # Linux builds/binary namer
EXE := $(BUILD_DIR)/$(TARGET).arm
else
EXE := $(BUILD_DIR)/$(TARGET)
endif

ELF := $(BUILD_DIR)/$(TARGET).elf
Expand Down Expand Up @@ -319,34 +310,32 @@ ifeq ($(TARGET_WEB),1)
endif

ifeq ($(TARGET_RPI),1)
machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown')
machine = $(shell sh -c 'uname -m 2>/dev/null || echo unknown')
# Raspberry Pi B+, Zero, etc
ifneq (,$(findstring armv6l,$(machine)))
OPT_FLAGS := -march=armv6zk+fp -mfpu=vfp -Ofast
endif
ifneq (,$(findstring armv6l,$(machine)))
OPT_FLAGS := -march=armv6zk+fp -mfpu=vfp -Ofast
endif

# Raspberry Pi 2 and 3 in ARM 32bit mode
ifneq (,$(findstring armv7l,$(machine)))
model = $(shell sh -c 'cat /sys/firmware/devicetree/base/model 2>/dev/null || echo unknown')

ifneq (,$(findstring 3,$(model)))
OPT_FLAGS := -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -O3
else
OPT_FLAGS := -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -O3
endif
endif
ifneq (,$(findstring armv7l,$(machine)))
model = $(shell sh -c 'cat /sys/firmware/devicetree/base/model 2>/dev/null || echo unknown')
ifneq (,$(findstring 3,$(model)))
OPT_FLAGS := -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -O3
else
OPT_FLAGS := -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -O3
endif
endif

# RPi3 or RPi4, in ARM64 (aarch64) mode. NEEDS TESTING 32BIT.
# DO NOT pass -mfpu stuff here, thats for 32bit ARM only and will fail for 64bit ARM.
ifneq (,$(findstring aarch64,$(machine)))
model = $(shell sh -c 'cat /sys/firmware/devicetree/base/model 2>/dev/null || echo unknown')
ifneq (,$(findstring 3,$(model)))
OPT_FLAGS := -march=armv8-a+crc -mtune=cortex-a53 -O3
else ifneq (,$(findstring 4,$(model)))
OPT_FLAGS := -march=armv8-a+crc+simd -mtune=cortex-a72 -O3
endif

endif
ifneq (,$(findstring aarch64,$(machine)))
model = $(shell sh -c 'cat /sys/firmware/devicetree/base/model 2>/dev/null || echo unknown')
ifneq (,$(findstring 3,$(model)))
OPT_FLAGS := -march=armv8-a+crc -mtune=cortex-a53 -O3
else ifneq (,$(findstring 4,$(model)))
OPT_FLAGS := -march=armv8-a+crc+simd -mtune=cortex-a72 -O3
endif
endif
endif

# File dependencies and variables for specific files
Expand Down Expand Up @@ -457,6 +446,10 @@ else ifeq ($(WINDOWS_BUILD),1)
LD := $(CC)
else ifeq ($(CROSS),x86_64-w64-mingw32.static-)
LD := $(CC)
else ifeq ($(CROSS),mxe-i686-w64-mingw32.static-)
LD := $(CC)
else ifeq ($(CROSS),mxe-x86_64-w64-mingw32.static-)
LD := $(CC)
else
LD := $(CXX)
endif
Expand Down Expand Up @@ -484,7 +477,7 @@ SDLCONFIG := $(CROSS)sdl2-config
BACKEND_CFLAGS := -DRAPI_$(RENDER_API)=1 -DWAPI_$(WINDOW_API)=1 -DAAPI_$(AUDIO_API)=1
# can have multiple controller APIs
BACKEND_CFLAGS += $(foreach capi,$(CONTROLLER_API),-DCAPI_$(capi)=1)
BACKEND_LDFLAG0S :=
BACKEND_LDFLAGS :=

SDL1_USED := 0
SDL2_USED := 0
Expand Down Expand Up @@ -541,16 +534,15 @@ ifneq ($(SDL1_USED)$(SDL2_USED),00)
endif

ifeq ($(WINDOWS_BUILD),1)
CC_CHECK := $(CC) -fsyntax-only -fsigned-char $(BACKEND_CFLAGS) $(INCLUDE_CFLAGS) -Wall -Wextra -Wno-format-security $(VERSION_CFLAGS) $(GRUCODE_CFLAGS)
CC_CHECK := $(CC) -fsyntax-only -fsigned-char $(BACKEND_CFLAGS) $(INCLUDE_CFLAGS) -Wall -Wextra $(VERSION_CFLAGS) $(GRUCODE_CFLAGS)
CFLAGS := $(OPT_FLAGS) $(INCLUDE_CFLAGS) $(BACKEND_CFLAGS) $(VERSION_CFLAGS) $(GRUCODE_CFLAGS) -fno-strict-aliasing -fwrapv

else ifeq ($(TARGET_WEB),1)
CC_CHECK := $(CC) -fsyntax-only -fsigned-char $(BACKEND_CFLAGS) $(INCLUDE_CFLAGS) -Wall -Wextra -Wno-format-security $(VERSION_CFLAGS) $(GRUCODE_CFLAGS) -s USE_SDL=2
CC_CHECK := $(CC) -fsyntax-only -fsigned-char $(BACKEND_CFLAGS) $(INCLUDE_CFLAGS) -Wall -Wextra $(VERSION_CFLAGS) $(GRUCODE_CFLAGS) -s USE_SDL=2
CFLAGS := $(OPT_FLAGS) $(INCLUDE_CFLAGS) $(BACKEND_CFLAGS) $(VERSION_CFLAGS) $(GRUCODE_CFLAGS) -fno-strict-aliasing -fwrapv -s USE_SDL=2

# Linux / Other builds below
else
CC_CHECK := $(CC) -fsyntax-only -fsigned-char $(BACKEND_CFLAGS) $(INCLUDE_CFLAGS) -Wall -Wextra -Wno-format-security $(VERSION_CFLAGS) $(GRUCODE_CFLAGS)
else # Linux / Other builds below
CC_CHECK := $(CC) -fsyntax-only -fsigned-char $(BACKEND_CFLAGS) $(INCLUDE_CFLAGS) -Wall -Wextra $(VERSION_CFLAGS) $(GRUCODE_CFLAGS)
CFLAGS := $(OPT_FLAGS) $(INCLUDE_CFLAGS) $(BACKEND_CFLAGS) $(VERSION_CFLAGS) $(GRUCODE_CFLAGS) -fno-strict-aliasing -fwrapv

endif
Expand Down Expand Up @@ -581,10 +573,10 @@ ifeq ($(DISCORDRPC),1)
CFLAGS += -DDISCORDRPC
endif

# Check for texture fix option
ifeq ($(TEXTURE_FIX),1)
CC_CHECK += -DTEXTURE_FIX
CFLAGS += -DTEXTURE_FIX
# Check for QoL fix option
ifeq ($(QOL_FIXES),1)
CC_CHECK += -DQOL_FIXES
CFLAGS += -DQOL_FIXES
endif

# Check for extended options menu option
Expand Down Expand Up @@ -642,7 +634,7 @@ else ifeq ($(OSX_BUILD),1)

else
LDFLAGS := $(BITS) -march=$(TARGET_ARCH) -lm $(BACKEND_LDFLAGS) -lpthread -ldl
ifeq ($(NO_PIE), 1)
ifeq ($(NO_PIE),1)
LDFLAGS += -no-pie
endif

Expand Down Expand Up @@ -724,7 +716,7 @@ clean:
$(RM) -r $(BUILD_DIR_BASE)

cleantools:
$(MAKE) -s -C tools clean
$(MAKE) -C tools clean

distclean:
$(RM) -r $(BUILD_DIR_BASE)
Expand Down Expand Up @@ -787,7 +779,7 @@ $(BUILD_DIR)/text/%/define_courses.inc.c: text/define_courses.inc.c text/%/cours
$(CPP) $(VERSION_CFLAGS) $< -o - -I text/$*/ | $(TEXTCONV) charmap.txt - $@

$(BUILD_DIR)/text/%/define_text.inc.c: text/define_text.inc.c text/%/courses.h text/%/dialogs.h
$(CPP) $(VERSION_CFLAGS) $< -o - -I text/$*/ | $(TEXTCONV) charmap.txt - $@
$(CPP) $(VERSION_CFLAGS) -Wno-trigraphs $< -o - -I text/$*/ | $(TEXTCONV) charmap.txt - $@

RSP_DIRS := $(BUILD_DIR)/rsp
ALL_DIRS := $(BUILD_DIR) $(addprefix $(BUILD_DIR)/,$(SRC_DIRS) $(ASM_DIRS) $(GODDARD_SRC_DIRS) $(ULTRA_SRC_DIRS) $(ULTRA_ASM_DIRS) $(ULTRA_BIN_DIRS) $(BIN_DIRS) $(TEXTURE_DIRS) $(TEXT_DIRS) $(SOUND_SAMPLE_DIRS) $(addprefix levels/,$(LEVEL_DIRS)) include) $(MIO0_DIR) $(addprefix $(MIO0_DIR)/,$(VERSION)) $(SOUND_BIN_DIR) $(SOUND_BIN_DIR)/sequences/$(VERSION) $(RSP_DIRS)
Expand Down Expand Up @@ -996,7 +988,7 @@ $(BUILD_DIR)/%.o: %.s
$(EXE): $(O_FILES) $(MIO0_FILES:.mio0=.o) $(SOUND_OBJ_FILES) $(ULTRA_O_FILES) $(GODDARD_O_FILES) $(BUILD_DIR)/$(RPC_LIBS)
$(LD) -L $(BUILD_DIR) -o $@ $(O_FILES) $(SOUND_OBJ_FILES) $(ULTRA_O_FILES) $(GODDARD_O_FILES) $(LDFLAGS)

.PHONY: all clean distclean default diff test load libultra res
.PHONY: all clean distclean cleantools default diff test load libultra res
.PRECIOUS: $(BUILD_DIR)/bin/%.elf $(SOUND_BIN_DIR)/%.ctl $(SOUND_BIN_DIR)/%.tbl $(SOUND_SAMPLE_TABLES) $(SOUND_BIN_DIR)/%.s $(BUILD_DIR)/%
.DELETE_ON_ERROR:

Expand Down
4 changes: 1 addition & 3 deletions Makefile.split
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,11 @@ define level_rules =
$$(BUILD_DIR)/levels/$(1)/leveldata.elf: TEXTURE_BIN := $(2)
endef

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(MAKECMDGOALS),distclean)
ifeq (,$(findstring clean,$(MAKECMDGOALS)))
$(BUILD_DIR)/level_rules.mk: levels/level_rules.mk levels/level_defines.h
$(CPP) $(VERSION_CFLAGS) -I . -o $@ $<
include $(BUILD_DIR)/level_rules.mk
endif
endif

# --------------------------------------
# Extra Level Rules
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Please contribute **first** to the [nightly branch](https://github.com/sm64pc/sm
* Optional analog camera and mouse look (using [Puppycam](https://github.com/FazanaJ/puppycam)).
* Optional OpenGL1.3-based renderer for older machines, as well as the original GL2.1, D3D11 and D3D12 renderers from Emill's [n64-fast3d-engine](https://github.com/Emill/n64-fast3d-engine/).
* Option to disable drawing distances.
* Optional model and texture fixes (e.g. the smoke texture).
* Optional QoL fixes (e.g. the smoke texture and the BitDW trapdoor sound).
* Skip introductory Peach & Lakitu cutscenes with the `--skip-intro` CLI option
* Cheats menu in Options (activate with `--cheats` or by pressing L thrice in the pause menu).
* Support for both little-endian and big-endian save files (meaning you can use save files from both sm64-port and most emulators), as well as an optional text-based save format.
Expand Down
2 changes: 2 additions & 0 deletions actors/boo/geo.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const GeoLayout boo_geo[] = {
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
#ifndef QOL_FIXES
GEO_CLOSE_NODE(), //! more close than open nodes
#endif
GEO_END(),
};
2 changes: 2 additions & 0 deletions actors/boo_castle/geo.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const GeoLayout boo_castle_geo[] = {
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
#ifndef QOL_FIXES
GEO_CLOSE_NODE(), //! more close than open nodes
#endif
GEO_END(),
};
2 changes: 2 additions & 0 deletions actors/bookend/geo.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const GeoLayout bookend_part_geo[] = {
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
#ifndef QOL_FIXES
GEO_CLOSE_NODE(), //! more close than open nodes
#endif
GEO_END(),
};
2 changes: 2 additions & 0 deletions actors/bowser_key/geo.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ const GeoLayout bowser_key_cutscene_geo[] = {
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
#ifndef QOL_FIXES
GEO_CLOSE_NODE(), //! more close than open nodes
#endif
GEO_END(),
};
6 changes: 3 additions & 3 deletions actors/burn_smoke/model.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ static const Vtx burn_smoke_seg4_vertex_040217C0[] = {

// //! Wrong texture format. Called as rgba16, which makes the burn smoke appear
// as a transparent black burn smoke. Probably meant to show up as white-ish
// burn smoke, but mistakened for being intended as black smoke.
// burn smoke, but mistaken for being intended as black smoke.
// Due to debate in the Koopa shorts PR surrounding the fix to a similar bug,
// said fix is on a compile-time variable. Use TEXTURE_FIX=1 at compile time
// said fix is on a compile-time variable. Use QOL_FIXES=1 at compile time
// to fix this.
// 0x04021800
ALIGNED8 static const u8 burn_smoke_seg4_texture_04021800[] = {
Expand Down Expand Up @@ -47,7 +47,7 @@ const Gfx burn_smoke_seg4_dl_04022048[] = {
// 0x04022070 - 0x040220C8
const Gfx burn_smoke_seg4_dl_04022070[] = {
gsSPDisplayList(burn_smoke_seg4_dl_04022000),
#ifdef TEXTURE_FIX
#ifdef QOL_FIXES
gsDPLoadTextureBlock(burn_smoke_seg4_texture_04021800, G_IM_FMT_IA, G_IM_SIZ_16b, 32, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
#else
gsDPLoadTextureBlock(burn_smoke_seg4_texture_04021800, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
Expand Down
2 changes: 2 additions & 0 deletions actors/chain_chomp/geo.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const GeoLayout chain_chomp_geo[] = {
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
#ifndef QOL_FIXES
GEO_CLOSE_NODE(), //! more close than open nodes
#endif
GEO_END(),
};
2 changes: 2 additions & 0 deletions actors/chair/geo.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const GeoLayout haunted_chair_geo[] = {
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
GEO_CLOSE_NODE(),
#ifndef QOL_FIXES
GEO_CLOSE_NODE(), //! more close than open nodes
#endif
GEO_END(),
};
Loading