You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
Compare commits
298 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
536e2077dd | ||
|
|
b3dc29b538 | ||
|
|
dab7b06858 | ||
|
|
dc65782309 | ||
|
|
35969689e6 | ||
|
|
46579b479d | ||
|
|
6418657eea | ||
|
|
c6cfb15237 | ||
|
|
2a8bf9948b | ||
|
|
dad0b74a2e | ||
|
|
fe12d438b7 | ||
|
|
7b24734619 | ||
|
|
38df06eefd | ||
|
|
118c5d88ff | ||
|
|
7fba760389 | ||
|
|
1e52ffce78 | ||
|
|
ee19c27c95 | ||
|
|
ea421431a7 | ||
|
|
390e12b3f9 | ||
|
|
d2ebd86d0e | ||
|
|
4d0bcb9e15 | ||
|
|
7abf79d071 | ||
|
|
f9f0dc9acc | ||
|
|
566caeb115 | ||
|
|
96a0145984 | ||
|
|
35cb5517a6 | ||
|
|
d1855662fd | ||
|
|
ed981e2934 | ||
|
|
67ae0e946a | ||
|
|
f7981ac804 | ||
|
|
bdfaf2c2f9 | ||
|
|
0547be4e0b | ||
|
|
fa04781025 | ||
|
|
f0d3d5a538 | ||
|
|
c86afcae03 | ||
|
|
52b076c5cc | ||
|
|
45fa72e836 | ||
|
|
cc3db36061 | ||
|
|
bd23a46acd | ||
|
|
5e151260e8 | ||
|
|
d49a16342d | ||
|
|
0dd70bfc21 | ||
|
|
c03873c646 | ||
|
|
989a499aeb | ||
|
|
c290770516 | ||
|
|
671a6acb34 | ||
|
|
20feb3e7e6 | ||
|
|
20ad6f619a | ||
|
|
856760befb | ||
|
|
b54f81ad38 | ||
|
|
c28919e41a | ||
|
|
0532936b19 | ||
|
|
23c898667a | ||
|
|
b1798cb32e | ||
|
|
5c7882f649 | ||
|
|
5af1a4dceb | ||
|
|
4167068dc5 | ||
|
|
cc48698193 | ||
|
|
5fe1a69f51 | ||
|
|
b02ab02c17 | ||
|
|
a8283a20a9 | ||
|
|
5de970a754 | ||
|
|
c6b0a16c88 | ||
|
|
9438ab2ab6 | ||
|
|
064d09753a | ||
|
|
dbf0cd777b | ||
|
|
43b1b48e22 | ||
|
|
e672193e67 | ||
|
|
22dae4a7eb | ||
|
|
f66248257f | ||
|
|
812a8247e9 | ||
|
|
b38cf7c377 | ||
|
|
4f6a7f9545 | ||
|
|
326eca4dd2 | ||
|
|
2cc01ce3a5 | ||
|
|
024fb35a92 | ||
|
|
442f03d52c | ||
|
|
53f312e37c | ||
|
|
da1f048024 | ||
|
|
ba49c72969 | ||
|
|
9d2877f28a | ||
|
|
8ad13228f5 | ||
|
|
37023ed99d | ||
|
|
feb3a2a61c | ||
|
|
b790a5e083 | ||
|
|
1963595cbf | ||
|
|
b3418e3eb0 | ||
|
|
06f65d396c | ||
|
|
7581dfccf5 | ||
|
|
a827d7b9c9 | ||
|
|
085af99845 | ||
|
|
2cf33a2f33 | ||
|
|
33a0a59774 | ||
|
|
6ad4d7917b | ||
|
|
d908c22697 | ||
|
|
bf98a51263 | ||
|
|
1f4949bd8a | ||
|
|
8ef227890a | ||
|
|
e72dbfb3e3 | ||
|
|
693d5d5cb4 | ||
|
|
7b26bf06eb | ||
|
|
9391eefd05 | ||
|
|
e12e1c2f17 | ||
|
|
319be3a796 | ||
|
|
09cf9adc13 | ||
|
|
a6492a2170 | ||
|
|
045c68f153 | ||
|
|
f807000145 | ||
|
|
c4b6ab2da0 | ||
|
|
328317605e | ||
|
|
7c27196416 | ||
|
|
a2500da83e | ||
|
|
fb266ee482 | ||
|
|
848a8dd3a0 | ||
|
|
210e708c8e | ||
|
|
24a2905fc3 | ||
|
|
8dda45abb6 | ||
|
|
8d51484510 | ||
|
|
ca13a8d839 | ||
|
|
b4f4df2fdc | ||
|
|
3853714f56 | ||
|
|
bb54f9e4e7 | ||
|
|
17bc64760d | ||
|
|
c31d9b9e2a | ||
|
|
1203b35b81 | ||
|
|
d107d7f146 | ||
|
|
9b5f38491b | ||
|
|
2275b4ff44 | ||
|
|
1bc367c6e0 | ||
|
|
c93df2b82e | ||
|
|
3f1fb6ec05 | ||
|
|
1f1a6c2227 | ||
|
|
f290437f3f | ||
|
|
86a62a5936 | ||
|
|
a7d9c8d9e9 | ||
|
|
6eb93bc095 | ||
|
|
cd66903441 | ||
|
|
95e7d17d06 | ||
|
|
961b8b5f38 | ||
|
|
43e6997bab | ||
|
|
a7ae3aae4e | ||
|
|
5e2ddf3f42 | ||
|
|
9c66d6b6eb | ||
|
|
551e495dd2 | ||
|
|
1c3242b25c | ||
|
|
86d8da2b5c | ||
|
|
84df7bcc19 | ||
|
|
799c1de736 | ||
|
|
5abcae64e5 | ||
|
|
07d90becfa | ||
|
|
90719c1338 | ||
|
|
35908d96a3 | ||
|
|
9c181bf071 | ||
|
|
683db16175 | ||
|
|
6907208052 | ||
|
|
4ac6472d76 | ||
|
|
cba10ea64a | ||
|
|
9346c06206 | ||
|
|
574ffcef06 | ||
|
|
05ca5f6c95 | ||
|
|
6fd0a96e55 | ||
|
|
6228fb8020 | ||
|
|
a7f4de0f27 | ||
|
|
bd70dd6e78 | ||
|
|
a69913e3e0 | ||
|
|
67be3bbfb8 | ||
|
|
d40e89cbeb | ||
|
|
3a0caecb22 | ||
|
|
ec337a4206 | ||
|
|
3a471f4786 | ||
|
|
cab8944416 | ||
|
|
3ea0e7ea22 | ||
|
|
b2da8d176b | ||
|
|
c3df118002 | ||
|
|
9eefb25da2 | ||
|
|
80814c78c5 | ||
|
|
65ef3697be | ||
|
|
ea1fc2b49f | ||
|
|
413602f37e | ||
|
|
3ed6c652f0 | ||
|
|
a6d62b5734 | ||
|
|
c425f8e51b | ||
|
|
3144dcf171 | ||
|
|
7cf7b4c33b | ||
|
|
3d9e855246 | ||
|
|
47c70a6b9a | ||
|
|
c0a0f54819 | ||
|
|
e1ef700b28 | ||
|
|
20c6041682 | ||
|
|
af285bbf47 | ||
|
|
4723a03be4 | ||
|
|
b95eb762ce | ||
|
|
df8129a2ea | ||
|
|
0101f2fc27 | ||
|
|
3dadc71acf | ||
|
|
1e082a5a59 | ||
|
|
bf4c068e6f | ||
|
|
9470c8fee5 | ||
|
|
ac1e9adc99 | ||
|
|
f5bedc0e55 | ||
|
|
9b609a4860 | ||
|
|
c58f61331a | ||
|
|
caf47c35f4 | ||
|
|
a30ca2df7a | ||
|
|
8cbb532736 | ||
|
|
4b082481b0 | ||
|
|
40420c7249 | ||
|
|
6a7cbbdd4d | ||
|
|
bc3558cebe | ||
|
|
99c76db4d0 | ||
|
|
5ab7140389 | ||
|
|
323fd02f2e | ||
|
|
a6ee4b849e | ||
|
|
087fc59488 | ||
|
|
c6e588fccd | ||
|
|
8a3a8a1e33 | ||
|
|
b0f48b4988 | ||
|
|
eb77196b6f | ||
|
|
74d85bf00b | ||
|
|
4c80f9e811 | ||
|
|
e46db0cbc8 | ||
|
|
22a17bdb15 | ||
|
|
a9fbc3a907 | ||
|
|
8e62615e5d | ||
|
|
64b809dd9f | ||
|
|
a3c786b71b | ||
|
|
07232805ae | ||
|
|
b560ef1bb4 | ||
|
|
a2ca71dc0f | ||
|
|
6c5ed41072 | ||
|
|
680ab6bdf7 | ||
|
|
3428ea17c2 | ||
|
|
52dfb8ccb7 | ||
|
|
83e3e21eb8 | ||
|
|
3edbc14cf1 | ||
|
|
fe4dd440f6 | ||
|
|
41ef8308c1 | ||
|
|
e92abdb242 | ||
|
|
28c89246fd | ||
|
|
5c639aab8d | ||
|
|
3df4adb01a | ||
|
|
ec1694dfdd | ||
|
|
60a7c34622 | ||
|
|
b4ce1b5822 | ||
|
|
56f2f9a64b | ||
|
|
b256986f81 | ||
|
|
3df30561be | ||
|
|
8fad4b6ec6 | ||
|
|
ee2a1f83d1 | ||
|
|
6ea685d7a6 | ||
|
|
4b1c3fd7e8 | ||
|
|
30f65bf03c | ||
|
|
81b338b340 | ||
|
|
8993e51f75 | ||
|
|
2c1d08a835 | ||
|
|
a277a3947c | ||
|
|
c16a43a071 | ||
|
|
9423a32111 | ||
|
|
d2d60c90ba | ||
|
|
eae2feb3a0 | ||
|
|
fb1db7541d | ||
|
|
c01386a6c5 | ||
|
|
c75fe65125 | ||
|
|
953a7270f2 | ||
|
|
f6ee66df28 | ||
|
|
0d56896e75 | ||
|
|
3a627e6311 | ||
|
|
dbb1b892ee | ||
|
|
1dbbd25253 | ||
|
|
134aeb74cc | ||
|
|
57c10feb14 | ||
|
|
474145222d | ||
|
|
a973d274b0 | ||
|
|
4464eb96de | ||
|
|
2ab3c85d13 | ||
|
|
89fb6b75a9 | ||
|
|
85a31ccec0 | ||
|
|
c586faea96 | ||
|
|
d17c9247a1 | ||
|
|
0af6087f81 | ||
|
|
0393a5e885 | ||
|
|
5662b8de3a | ||
|
|
9ad62c9eab | ||
|
|
4346d5ff9f | ||
|
|
efa3e6461a | ||
|
|
209ce5a90c | ||
|
|
bd6eb1fd87 | ||
|
|
1860ece52e | ||
|
|
45d4e3c15a | ||
|
|
6218abafff | ||
|
|
4efbfc4da0 | ||
|
|
d51129c6b6 | ||
|
|
483005edf5 | ||
|
|
57531f5d81 | ||
|
|
a5cb4481f7 | ||
|
|
e6d0d4b8d2 | ||
|
|
8186517460 | ||
|
|
76bdc4ca2b |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -102,7 +102,6 @@ build/*
|
||||
|
||||
# libultra
|
||||
|
||||
!/lib/**/*.o
|
||||
!/lib/*.a
|
||||
lib/libs2d_engine.a
|
||||
!/lib/gcclib/*.a
|
||||
|
||||
1
.vscode/c_cpp_properties.json
vendored
1
.vscode/c_cpp_properties.json
vendored
@@ -6,7 +6,6 @@
|
||||
"${workspaceFolder}/include/n64/**",
|
||||
"${workspaceFolder}/include/**",
|
||||
"${workspaceFolder}/textures/**",
|
||||
"${workspaceFolder}/build/us_n64/**",
|
||||
"${workspaceFolder}/**"
|
||||
],
|
||||
"forcedInclude": [
|
||||
|
||||
10
CHANGES
10
CHANGES
@@ -1,13 +1,3 @@
|
||||
Refresh 15 (mostly a hotfix for RSP microcode selection)
|
||||
|
||||
1.) Renamed frame_buffer funcs and _ZBUFFER (#1184)
|
||||
2.) RSP Microcode Hotfix (#1183)
|
||||
3.) Label osSetTimer.c (#1182)
|
||||
4.) Fix styling (#1177)
|
||||
5.) Rename all `FrameBuffer` variants to `Framebuffer` (#1176)
|
||||
6.) Remove (WIP) from sh.
|
||||
7.) Allow both archives and ELF objects to be patched (#1127)
|
||||
|
||||
Refresh 14
|
||||
|
||||
1.) Label whomp and some object fields (#1174)
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
# These owners will be the default owners for everything in the repo.
|
||||
* @Reonu
|
||||
* @thecozies
|
||||
* @Mr-Wiseguy
|
||||
|
||||
# Order is important. The last matching pattern has the most precedence.
|
||||
# So if a pull request only touches javascript files, only these owners
|
||||
|
||||
199
Makefile
199
Makefile
@@ -67,6 +67,25 @@ endif
|
||||
|
||||
DEFINES += NO_ERRNO_H=1 NO_GZIP=1
|
||||
|
||||
COMPRESS ?= rnc1
|
||||
$(eval $(call validate-option,COMPRESS,mio0 yay0 gzip rnc1 rnc2 uncomp))
|
||||
ifeq ($(COMPRESS),gzip)
|
||||
DEFINES += GZIP=1
|
||||
else ifeq ($(COMPRESS),rnc1)
|
||||
DEFINES += RNC1=1
|
||||
else ifeq ($(COMPRESS),rnc2)
|
||||
DEFINES += RNC2=1
|
||||
else ifeq ($(COMPRESS),yay0)
|
||||
DEFINES += YAY0=1
|
||||
else ifeq ($(COMPRESS),mio0)
|
||||
DEFINES += MIO0=1
|
||||
else ifeq ($(COMPRESS),uncomp)
|
||||
DEFINES += UNCOMPRESSED=1
|
||||
endif
|
||||
|
||||
GZIPVER ?= std
|
||||
$(eval $(call validate-option,GZIPVER,std libdef))
|
||||
|
||||
# VERSION - selects the version of the game to build
|
||||
# jp - builds the 1996 Japanese version
|
||||
# us - builds the 1996 North American version
|
||||
@@ -87,7 +106,7 @@ endif
|
||||
|
||||
DEBUG_MAP_STACKTRACE_FLAG := -D DEBUG_MAP_STACKTRACE
|
||||
|
||||
TARGET := sm64
|
||||
TARGET := sm64.$(VERSION)
|
||||
|
||||
|
||||
# GRUCODE - selects which RSP microcode to use.
|
||||
@@ -128,78 +147,15 @@ endif
|
||||
|
||||
LINK_LIBRARIES = $(foreach i,$(LIBRARIES),-l$(i))
|
||||
|
||||
|
||||
#==============================================================================#
|
||||
# Optimization flags #
|
||||
#==============================================================================#
|
||||
|
||||
# Default non-gcc opt flags
|
||||
DEFAULT_OPT_FLAGS = -Ofast
|
||||
|
||||
# Main opt flags
|
||||
GCC_MAIN_OPT_FLAGS = \
|
||||
-Ofast \
|
||||
--param case-values-threshold=20 \
|
||||
--param max-completely-peeled-insns=10 \
|
||||
--param max-unrolled-insns=10 \
|
||||
-finline-limit=1 \
|
||||
-freorder-blocks-algorithm=simple \
|
||||
-ffunction-sections \
|
||||
-fdata-sections
|
||||
|
||||
# Surface Collision
|
||||
GCC_COLLISION_OPT_FLAGS = \
|
||||
-Ofast \
|
||||
--param case-values-threshold=20 \
|
||||
--param max-completely-peeled-insns=100 \
|
||||
--param max-unrolled-insns=100 \
|
||||
-finline-limit=0 \
|
||||
-fno-inline \
|
||||
-freorder-blocks-algorithm=simple \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-falign-functions=32
|
||||
|
||||
# Math Util
|
||||
GCC_MATH_UTIL_OPT_FLAGS = \
|
||||
-Ofast \
|
||||
-fno-unroll-loops \
|
||||
-fno-peel-loops \
|
||||
--param case-values-threshold=20 \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-falign-functions=32
|
||||
# - setting any sort of -finline-limit has shown to worsen performance with math_util.c,
|
||||
# lower values were the worst, the higher you go - the closer performance gets to not setting it at all
|
||||
|
||||
# Rendering graph node
|
||||
GCC_GRAPH_NODE_OPT_FLAGS = \
|
||||
-Ofast \
|
||||
--param case-values-threshold=20 \
|
||||
--param max-completely-peeled-insns=100 \
|
||||
--param max-unrolled-insns=100 \
|
||||
-finline-limit=0 \
|
||||
-freorder-blocks-algorithm=simple \
|
||||
-ffunction-sections \
|
||||
-fdata-sections \
|
||||
-falign-functions=32
|
||||
#==============================================================================#
|
||||
|
||||
ifeq ($(COMPILER),gcc)
|
||||
NON_MATCHING := 1
|
||||
MIPSISET := -mips3
|
||||
OPT_FLAGS := $(GCC_MAIN_OPT_FLAGS)
|
||||
COLLISION_OPT_FLAGS = $(GCC_COLLISION_OPT_FLAGS)
|
||||
MATH_UTIL_OPT_FLAGS = $(GCC_MATH_UTIL_OPT_FLAGS)
|
||||
GRAPH_NODE_OPT_FLAGS = $(GCC_GRAPH_NODE_OPT_FLAGS)
|
||||
OPT_FLAGS := -Ofast
|
||||
else ifeq ($(COMPILER),clang)
|
||||
NON_MATCHING := 1
|
||||
# clang doesn't support ABI 'o32' for 'mips3'
|
||||
MIPSISET := -mips2
|
||||
OPT_FLAGS := $(DEFAULT_OPT_FLAGS)
|
||||
COLLISION_OPT_FLAGS = $(DEFAULT_OPT_FLAGS)
|
||||
MATH_UTIL_OPT_FLAGS = $(DEFAULT_OPT_FLAGS)
|
||||
GRAPH_NODE_OPT_FLAGS = $(DEFAULT_OPT_FLAGS)
|
||||
OPT_FLAGS := -Ofast
|
||||
endif
|
||||
|
||||
|
||||
@@ -215,14 +171,25 @@ endif
|
||||
|
||||
ifeq ($(NON_MATCHING),1)
|
||||
DEFINES += NON_MATCHING=1 AVOID_UB=1
|
||||
COMPARE := 0
|
||||
endif
|
||||
|
||||
|
||||
TARGET_STRING := sm64
|
||||
# COMPARE - whether to verify the SHA-1 hash of the ROM after building
|
||||
# 1 - verifies the SHA-1 hash of the selected version of the game
|
||||
# 0 - does not verify the hash
|
||||
COMPARE ?= 0
|
||||
$(eval $(call validate-option,COMPARE,0 1))
|
||||
|
||||
TARGET_STRING := sm64.$(VERSION).$(CONSOLE).$(GRUCODE)
|
||||
# If non-default settings were chosen, disable COMPARE
|
||||
ifeq ($(filter $(TARGET_STRING), sm64.jp.f3d_old sm64.us.f3d_old sm64.eu.f3d_new sm64.sh.f3d_new),)
|
||||
COMPARE := 0
|
||||
endif
|
||||
|
||||
# UNF - whether to use UNFLoader flashcart library
|
||||
# 1 - includes code in ROM
|
||||
# 0 - does not
|
||||
# 0 - does not
|
||||
UNF ?= 0
|
||||
$(eval $(call validate-option,UNF,0 1))
|
||||
ifeq ($(UNF),1)
|
||||
@@ -234,7 +201,7 @@ endif
|
||||
# ISVPRINT - whether to fake IS-Viewer presence,
|
||||
# allowing for usage of CEN64 (and possibly Project64) to print messages to terminal.
|
||||
# 1 - includes code in ROM
|
||||
# 0 - does not
|
||||
# 0 - does not
|
||||
ISVPRINT ?= 0
|
||||
$(eval $(call validate-option,ISVPRINT,0 1))
|
||||
ifeq ($(ISVPRINT),1)
|
||||
@@ -252,7 +219,7 @@ endif
|
||||
|
||||
# HVQM - whether to use HVQM fmv library
|
||||
# 1 - includes code in ROM
|
||||
# 0 - does not
|
||||
# 0 - does not
|
||||
HVQM ?= 0
|
||||
$(eval $(call validate-option,HVQM,0 1))
|
||||
ifeq ($(HVQM),1)
|
||||
@@ -260,34 +227,9 @@ ifeq ($(HVQM),1)
|
||||
SRC_DIRS += src/hvqm
|
||||
endif
|
||||
|
||||
BUILD_DIR_BASE := build
|
||||
# BUILD_DIR is the location where all build artifacts are placed
|
||||
BUILD_DIR := $(BUILD_DIR_BASE)/$(VERSION)_$(CONSOLE)
|
||||
|
||||
COMPRESS ?= rnc1
|
||||
$(eval $(call validate-option,COMPRESS,mio0 yay0 gzip rnc1 rnc2 uncomp))
|
||||
ifeq ($(COMPRESS),gzip)
|
||||
DEFINES += GZIP=1
|
||||
LIBZRULE := $(BUILD_DIR)/libz.a
|
||||
LIBZLINK := -lz
|
||||
else ifeq ($(COMPRESS),rnc1)
|
||||
DEFINES += RNC1=1
|
||||
else ifeq ($(COMPRESS),rnc2)
|
||||
DEFINES += RNC2=1
|
||||
else ifeq ($(COMPRESS),yay0)
|
||||
DEFINES += YAY0=1
|
||||
else ifeq ($(COMPRESS),mio0)
|
||||
DEFINES += MIO0=1
|
||||
else ifeq ($(COMPRESS),uncomp)
|
||||
DEFINES += UNCOMPRESSED=1
|
||||
endif
|
||||
|
||||
GZIPVER ?= std
|
||||
$(eval $(call validate-option,GZIPVER,std libdef))
|
||||
|
||||
# GODDARD - whether to use libgoddard (Mario Head)
|
||||
# 1 - includes code in ROM
|
||||
# 0 - does not
|
||||
# 0 - does not
|
||||
GODDARD ?= 0
|
||||
$(eval $(call validate-option,GODDARD,0 1))
|
||||
ifeq ($(GODDARD),1)
|
||||
@@ -303,6 +245,27 @@ endif
|
||||
# Whether to colorize build messages
|
||||
COLOR ?= 1
|
||||
|
||||
# display selected options unless 'make clean' or 'make distclean' is run
|
||||
ifeq ($(filter clean distclean,$(MAKECMDGOALS)),)
|
||||
$(info ==== Build Options ====)
|
||||
$(info Version: $(VERSION))
|
||||
$(info Microcode: $(GRUCODE))
|
||||
$(info Console: $(CONSOLE))
|
||||
$(info Target: $(TARGET))
|
||||
ifeq ($(COMPARE),1)
|
||||
$(info Compare ROM: yes)
|
||||
else
|
||||
$(info Compare ROM: no)
|
||||
endif
|
||||
ifeq ($(NON_MATCHING),1)
|
||||
$(info Build Matching: no)
|
||||
else
|
||||
$(info Build Matching: yes)
|
||||
endif
|
||||
$(info =======================)
|
||||
endif
|
||||
|
||||
|
||||
#==============================================================================#
|
||||
# Universal Dependencies #
|
||||
#==============================================================================#
|
||||
@@ -348,7 +311,7 @@ endif
|
||||
|
||||
BUILD_DIR_BASE := build
|
||||
# BUILD_DIR is the location where all build artifacts are placed
|
||||
BUILD_DIR := $(BUILD_DIR_BASE)/$(VERSION)_$(CONSOLE)
|
||||
BUILD_DIR := $(BUILD_DIR_BASE)/$(VERSION)
|
||||
ROM := $(BUILD_DIR)/$(TARGET_STRING).z64
|
||||
ELF := $(BUILD_DIR)/$(TARGET_STRING).elf
|
||||
LIBZ := $(BUILD_DIR)/libz.a
|
||||
@@ -464,11 +427,9 @@ DEF_INC_CFLAGS := $(foreach i,$(INCLUDE_DIRS),-I$(i)) $(C_DEFINES)
|
||||
# C compiler options
|
||||
CFLAGS = -G 0 $(OPT_FLAGS) $(TARGET_CFLAGS) $(MIPSISET) $(DEF_INC_CFLAGS)
|
||||
ifeq ($(COMPILER),gcc)
|
||||
CFLAGS += -mno-shared -march=vr4300 -mfix4300 -mabi=32 -mhard-float -mdivide-breaks -fno-stack-protector -fno-common -fno-zero-initialized-in-bss -fno-PIC -mno-abicalls -fno-strict-aliasing -fno-inline-functions -ffreestanding -fwrapv -Wall -Wextra
|
||||
CFLAGS += -Wno-missing-braces
|
||||
CFLAGS += -mno-shared -march=vr4300 -mfix4300 -mabi=32 -mhard-float -mdivide-breaks -fno-stack-protector -fno-common -fno-zero-initialized-in-bss -fno-PIC -mno-abicalls -fno-strict-aliasing -fno-inline-functions -ffreestanding -fwrapv -Wall -Wextra -Wno-missing-braces
|
||||
else ifeq ($(COMPILER),clang)
|
||||
CFLAGS += -mfpxx -target mips -mabi=32 -G 0 -mhard-float -fomit-frame-pointer -fno-stack-protector -fno-common -I include -I src/ -I $(BUILD_DIR)/include -fno-PIC -mno-abicalls -fno-strict-aliasing -fno-inline-functions -ffreestanding -fwrapv -Wall -Wextra
|
||||
CFLAGS += -Wno-missing-braces
|
||||
CFLAGS += -target mips -mabi=32 -G 0 -mhard-float -fomit-frame-pointer -fno-stack-protector -fno-common -I include -I src/ -I $(BUILD_DIR)/include -fno-PIC -mno-abicalls -fno-strict-aliasing -fno-inline-functions -ffreestanding -fwrapv -Wall -Wextra -Wno-missing-braces -fno-jump-tables
|
||||
else
|
||||
CFLAGS += -non_shared -Wab,-r4300_mul -Xcpluscomm -Xfullwarn -signed -32
|
||||
endif
|
||||
@@ -511,7 +472,7 @@ else
|
||||
RSPASM := $(TOOLS_DIR)/armips
|
||||
endif
|
||||
ENDIAN_BITWIDTH := $(BUILD_DIR)/endian-and-bitwidth
|
||||
EMULATOR = mupen64plus
|
||||
EMULATOR = ~/Downloads/mupen64plus/mupen64plus-gui
|
||||
EMU_FLAGS =
|
||||
LOADER = loader64
|
||||
LOADER_FLAGS = -vwf
|
||||
@@ -524,7 +485,7 @@ RED := \033[0;31m
|
||||
GREEN := \033[0;32m
|
||||
BLUE := \033[0;34m
|
||||
YELLOW := \033[0;33m
|
||||
BLINK := \033[32;5m
|
||||
BLINK := \033[33;5m
|
||||
endif
|
||||
|
||||
# For non-IDO, use objcopy instead of extract_data_for_mio
|
||||
@@ -542,12 +503,13 @@ endef
|
||||
#==============================================================================#
|
||||
|
||||
all: $(ROM)
|
||||
ifeq ($(COMPARE),1)
|
||||
@$(PRINT) "$(GREEN)Checking if ROM matches.. $(NO_COL)\n"
|
||||
@$(SHA1SUM) --quiet -c $(TARGET).sha1 && $(PRINT) "$(TARGET): $(GREEN)OK$(NO_COL)\n" || ($(PRINT) "$(YELLOW)Building the ROM file has succeeded, but does not match the original ROM.\nThis is expected, and not an error, if you are making modifications.\nTo silence this message, use 'make COMPARE=0.' $(NO_COL)\n" && false)
|
||||
else
|
||||
@$(SHA1SUM) $(ROM)
|
||||
@$(PRINT) "${BLINK}Build succeeded.\n$(NO_COL)"
|
||||
@$(PRINT) "==== Build Options ====$(NO_COL)\n"
|
||||
@$(PRINT) "${GREEN}Version: $(BLUE)$(VERSION)$(NO_COL)\n"
|
||||
@$(PRINT) "${GREEN}Microcode: $(BLUE)$(GRUCODE)$(NO_COL)\n"
|
||||
@$(PRINT) "${GREEN}Console: $(BLUE)$(CONSOLE)$(NO_COL)\n"
|
||||
@$(PRINT) "${GREEN}Build succeeded.$(NO_COL)\n"
|
||||
endif
|
||||
|
||||
clean:
|
||||
$(RM) -r $(BUILD_DIR_BASE)
|
||||
@@ -562,7 +524,6 @@ test: $(ROM)
|
||||
|
||||
test-pj64: $(ROM)
|
||||
wine ~/Desktop/new64/Project64.exe $<
|
||||
# someone2639
|
||||
|
||||
load: $(ROM)
|
||||
$(LOADER) $(LOADER_FLAGS) $<
|
||||
@@ -573,7 +534,7 @@ libultra: $(BUILD_DIR)/libultra.a
|
||||
$(BUILD_DIR)/asm/boot.o: $(IPL3_RAW_FILES)
|
||||
$(BUILD_DIR)/src/game/crash_screen.o: $(CRASH_TEXTURE_C_FILES)
|
||||
$(BUILD_DIR)/src/game/version.o: $(BUILD_DIR)/src/game/version_data.h
|
||||
$(BUILD_DIR)/lib/aspMain.o: $(BUILD_DIR)/rsp/audio.bin
|
||||
$(BUILD_DIR)/lib/rsp.o: $(BUILD_DIR)/rsp/rspboot.bin $(BUILD_DIR)/rsp/audio.bin
|
||||
$(SOUND_BIN_DIR)/sound_data.o: $(SOUND_BIN_DIR)/sound_data.ctl $(SOUND_BIN_DIR)/sound_data.tbl $(SOUND_BIN_DIR)/sequences.bin $(SOUND_BIN_DIR)/bank_sets
|
||||
$(BUILD_DIR)/levels/scripts.o: $(BUILD_DIR)/include/level_headers.h
|
||||
|
||||
@@ -615,17 +576,9 @@ $(BUILD_DIR)/src/usb/usb.o: OPT_FLAGS := -O0
|
||||
$(BUILD_DIR)/src/usb/usb.o: CFLAGS += -Wno-unused-variable -Wno-sign-compare -Wno-unused-function
|
||||
$(BUILD_DIR)/src/usb/debug.o: OPT_FLAGS := -O0
|
||||
$(BUILD_DIR)/src/usb/debug.o: CFLAGS += -Wno-unused-parameter -Wno-maybe-uninitialized
|
||||
# File specific opt flags
|
||||
$(BUILD_DIR)/src/audio/*.o: OPT_FLAGS := -Os -fno-jump-tables
|
||||
|
||||
$(BUILD_DIR)/src/engine/surface_collision.o: OPT_FLAGS := $(COLLISION_OPT_FLAGS)
|
||||
$(BUILD_DIR)/src/engine/math_util.o: OPT_FLAGS := $(MATH_UTIL_OPT_FLAGS)
|
||||
$(BUILD_DIR)/src/game/rendering_graph_node.o: OPT_FLAGS := $(GRAPH_NODE_OPT_FLAGS)
|
||||
|
||||
# $(info OPT_FLAGS: $(OPT_FLAGS))
|
||||
# $(info COLLISION_OPT_FLAGS: $(COLLISION_OPT_FLAGS))
|
||||
# $(info MATH_UTIL_OPT_FLAGS: $(MATH_UTIL_OPT_FLAGS))
|
||||
# $(info GRAPH_NODE_OPT_FLAGS: $(GRAPH_NODE_OPT_FLAGS))
|
||||
$(BUILD_DIR)/src/audio/*.o: OPT_FLAGS := -Os -fno-jump-tables
|
||||
$(BUILD_DIR)/src/engine/math_util.o: OPT_FLAGS := -Ofast -fno-unroll-loops -fno-peel-loops --param case-values-threshold=20
|
||||
$(BUILD_DIR)/src/game/rendering_graph_node.o: OPT_FLAGS := -Ofast --param case-values-threshold=20
|
||||
|
||||
ALL_DIRS := $(BUILD_DIR) $(addprefix $(BUILD_DIR)/,$(SRC_DIRS) asm/debug $(GODDARD_SRC_DIRS) $(LIBZ_SRC_DIRS) $(ULTRA_BIN_DIRS) $(BIN_DIRS) $(TEXTURE_DIRS) $(TEXT_DIRS) $(SOUND_SAMPLE_DIRS) $(addprefix levels/,$(LEVEL_DIRS)) rsp include) $(YAY0_DIR) $(addprefix $(YAY0_DIR)/,$(VERSION)) $(SOUND_BIN_DIR) $(SOUND_BIN_DIR)/sequences/$(VERSION)
|
||||
|
||||
@@ -636,7 +589,7 @@ $(BUILD_DIR)/include/text_strings.h: $(BUILD_DIR)/include/text_menu_strings.h
|
||||
$(BUILD_DIR)/src/menu/file_select.o: $(BUILD_DIR)/include/text_strings.h
|
||||
$(BUILD_DIR)/src/menu/star_select.o: $(BUILD_DIR)/include/text_strings.h
|
||||
$(BUILD_DIR)/src/game/ingame_menu.o: $(BUILD_DIR)/include/text_strings.h
|
||||
$(BUILD_DIR)/src/game/puppycam2.o: $(BUILD_DIR)/include/text_strings.h
|
||||
$(BUILD_DIR)/src/game/puppycam2.o: $(BUILD_DIR)/include/text_strings.h
|
||||
|
||||
|
||||
|
||||
@@ -861,7 +814,7 @@ ifeq ($(CONSOLE),n64)
|
||||
$(V)$(OBJCOPY) --pad-to=0x101000 --gap-fill=0xFF $< $@ -O binary
|
||||
else ifeq ($(CONSOLE),bb)
|
||||
$(V)$(OBJCOPY) --gap-fill=0x00 $< $@ -O binary
|
||||
$(V)dd if=$@ of=tmp bs=16K conv=sync status=none
|
||||
$(V)dd if=$@ of=tmp bs=16K conv=sync
|
||||
$(V)mv tmp $@
|
||||
endif
|
||||
$(V)$(N64CKSUM) $@
|
||||
|
||||
74
README.md
74
README.md
@@ -1,43 +1,23 @@
|
||||
#  HackerSM64 
|
||||
|
||||
**AFTER CLONING THE REPO, CHECK OUT THE `include/config` FOLDER BEFORE ANYTHING ELSE! THERE'S A LOT OF STUFF IN THIS REPO THAT CAN BE TOGGLED THERE.**
|
||||
**[Thank you to Kaze Emanuar for these major optimizations!](https://www.youtube.com/watch?v=uYPH-NH3B6k)
|
||||
|
||||
**AFTER CLONING THE REPO, CHECK OUT THE `include/config.h` FILE BEFORE ANYTHING ELSE! IT THERE'S A LOT OF STUFF IN THIS REPO THAT CAN BE TOGGLED THERE.**
|
||||
|
||||
HackerSM64 now has a discord server! https://discord.gg/brETAakcXr
|
||||
|
||||
This repo requires BOTH a US ROM and a JP ROM in order to build. Place baserom.us.z64 in the repo as usual and ALSO include baserom.jp.z64.
|
||||
This repo needs BOTH an US ROM and a JP ROM in order to build. Place baserom.us.z64 in the repo as usual and ALSO place baserom.jp.z64
|
||||
|
||||
This repo needs gcc in order to be able to build it. To install it, run `sudo apt install gcc-mips-linux-gnu`
|
||||
|
||||
This is a fork of the ultrasm64 repo by CrashOveride which includes the following commonly used patches (patches marked with `*` are toggleable in the config files):
|
||||
|
||||
**Credits**
|
||||
- **ArcticJaguar725**: Most audio configuration and layout changes, colored ia4 text, floombas, various bugfixes, and more
|
||||
- **CowQuack**: Adjustable skybox sizes, area-specific skybox function
|
||||
- **thecozies**: Water surface types, general maintenance, and time
|
||||
- **MrComit**: General use object defines, JUMP_KICK_FIX, LEDGE_GRABS_CHECK_SLOPE_ANGLE
|
||||
- **aglab2**: Bugfixes (particularly puppycam), refactor stuff
|
||||
- **someone2639**: math.s and crash screen disam, stack trace, map packing, shiftable segments 2, S2DEX engine
|
||||
- **Arthurtilly**: Platform Displacement 2
|
||||
- **Fazana**: PuppyLib, ucode swapping, audio load time optimisations (with Arctic), general hacker qol improvements, visual debug
|
||||
- **Reonu**: Starting the project/repo, widescreen, reonucam, various defines for hacker QoL
|
||||
- **JoshDuMan**: Decomp guy, general assistance
|
||||
- **Arceveti**: Silhouette, shadow optimisation, better hanging, breath meter
|
||||
- **axollyon**: Console testing, bugfixes, idea-guying, and had a hand in silhouettes
|
||||
- **Wiseguy**: World scale reimplementation, silhouette, graph node optimisations, instant input patch, cake screen fix, segmented code support, and various optimizations/fixes
|
||||
- **Kaze**: Graph node optimisations, automatic optimal collision distance
|
||||
- **Pyro Jay**: Texture improvements, repo banner art, some QoL stuff
|
||||
- **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
|
||||
|
||||
Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
|
||||
This is a fork of the ultrasm64 repo by CrashOveride which includes the following commonly used patches (patches marked with `*` are toggleable in `config.h`):
|
||||
|
||||
**Lighting Engine by Wiseguy**
|
||||
- Lighting Engine is available on a separate branch ([base/lighting-engine-wip](https://github.com/Reonu/HackerSM64/tree/base/lighting-engine-wip)). Instructions on how to use it are in the readme of that branch.
|
||||
- Lighting Engine is available on a separate branch `(lighting-engine)`. Instructions on how to use it are in the readme of that branch.
|
||||
- Alternatively, the main repo has `Puppylights` available, which is a more lightweight, but limited lighting library intended to be used to modify existing light properties. You can look at `puppylights.c` to find out how to use it.
|
||||
|
||||
**Puppycam**
|
||||
- Puppycam is available on the master branch now, you can toggle it in `config/config_camera.h`. *
|
||||
- Puppycam is available on the master branch now, you can toogle it in config.h. *
|
||||
|
||||
**Collision:**
|
||||
- Slope fix and exposed ceilings fix
|
||||
@@ -45,11 +25,11 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
|
||||
- Jump kick fix *
|
||||
- Configurable wallkick angle, in degrees *
|
||||
- Possibility of disabling BLJs *
|
||||
- Hanging fix (Mario can grab hangable ceilings from any state, instead of only jump or double jump) *
|
||||
- Hanging fix (mario can grab hangable ceilings from any state, instead of only jump or double jump) *
|
||||
- Increased maximum pole length (The game will read bparam1 and bparam2 together as a single value, so you can have a very long pole) *
|
||||
- Platform Displacement 2 by Arthurtilly *
|
||||
- Water Surface Type patch by thecozies
|
||||
- Better wall collision with rounded corners by FramePerfection, merged by Cheezepin & Arceveti
|
||||
- Better Wall Collision With Rounded Corners by FramePerfection, merged by Cheezepin & Arceveti
|
||||
- Automatically calculate the optimal collision distance for an object based on its vertices, by Kaze *
|
||||
|
||||
**Common Hack Changes:**
|
||||
@@ -62,8 +42,8 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
|
||||
- Removed course-specific camera processing *
|
||||
- You can increase the number of frames that you have to perform a firsty *
|
||||
- Ability to set Mario's movement speed when hanging from a ceiling *
|
||||
- Tighter hanging controls (Mario will face the direction of the analog stick directly while hanging from a ceiling) *
|
||||
- reonucam3: custom camera by Reonu. This is included as a .patch file in the enhancements folder, you need to apply it if you want this camera.
|
||||
- Tighter hanging controls (mario will face the direction of the analog stick directly while hanging from a ceiling) *
|
||||
- reonucam3: custom camera by me. This is included as a .patch file in the enhancements folder, you need to apply it if you want this camera.
|
||||
This video shows a rundown of the features: https://youtu.be/TQNkznX9Z3k
|
||||
- Ability to disable Mario getting suck in snow or sand
|
||||
|
||||
@@ -72,34 +52,34 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
|
||||
- Debug mode: prints mario's coordinates, angle and speed, and a FPS counter.
|
||||
- Automatic console/emulator detection. If emulator is detected, LODs are disabled. *
|
||||
- Ability to configure whether there's a 100 coin star at all and how many coins are required to spawn it *
|
||||
- Ability to easily change the warp that EXIT COURSE takes you to via `config/config_menu.h`, or disable it entirely. *
|
||||
- 16 bit model IDs by someone2639. This means you can have up to 65536 models (lol). You can set the maximum number of model IDs in `config/config_game.h`.
|
||||
- Ability to easily change the warp that EXIT COURSE takes you to via config.h, or disable it entirely. *
|
||||
- 16 bit model IDs by someone2639. This means you can have up to 65536 models (lol). You can set the maximum number of model IDs in `config.h`.
|
||||
- Apply_patch.sh improved
|
||||
- Removed the ifdef hell in `file_select.c` and `ingame_menu.c`
|
||||
- Added Blake's custom function for object model stuff: `obj_set_model` and `obj_has_model`
|
||||
- Added function to get the model ID from an object: `obj_get_model_id` (by Arceveti)
|
||||
- The "far" variable is now u16, allowing you to increase the farclip (the max distance at which geometry is rendered). However, when increasing the farclip, make sure to increase the nearclip by the same ratio, or rendering will break on console and LLE plugins.
|
||||
- Many general use defines for object struct members, meant for use in custom object behaviors. Check `include/object_fields.h` for more info on this. (By MrComit)
|
||||
- Many general use defines for object struct members, meant for use in custom object behaviors. Check `object_fields.h` for more info on this. (By MrComit)
|
||||
- Included `actors/group0.c` in `behavior_data.c`
|
||||
- The internal ROM name is now set with a define in `config/config_rom.h` to make it simpler
|
||||
- The internal ROM name is now set with a define in `config.h` to make it simpler
|
||||
- There is a `gIsConsole` variable that is 1 when running on console and 0 when running on emulator. This way you can wrap your code in a console check.
|
||||
- Expanded audio heap allows for a larger concurrent note count and the importing of more m64 sequences and sound banks (By ArcticJaguar725) *
|
||||
- You can set a test level in `config/config_debug.h` in order to boot straight into it, so you can quickly test the level you're working on. *
|
||||
- Allow all surfaces in the game to have a `force` parameter. Activating this doesn't REQUIRE you to set `force` for every surface: If you don't set, it will default to 0x0000 rather than crashing. Increases RAM usage of collision. *
|
||||
- You can set a test level in config.h in order to boot straight into it, so you can quickly test the level you're working on. *
|
||||
- Allows all surfaces in the game to have a `force` parameter. Activating this doesn't REQUIRE you to set `force` for every surface: If you don't set, it will default to 0x0000 rather than crashing. Increases RAM usage of collision. *
|
||||
- The clown font includes the entire English alphabet.
|
||||
- Colored ia4 text support. Format: `"@XXXXXXXX[YOUR TEXT]@--------"` (By ArcticJaguar725)
|
||||
- Example Text: `"@FF0000FFRED @00FF00FFGREEN @0000FFFFBLUE @FFFFFF00INVISIBLE @--------NORMAL"`
|
||||
- NOTE: It is not mandatory to reset the text color with `"@--------"`, but text will need to be recolored each time it scrolls in a dialog box, or the custom color will reset.
|
||||
- Toggle visiblity of collision surfaces and object hitboxes with Visual Surface Debug. `config/config_debug.h` has VISUAL_DEBUG which can be turned on to enable this feature.
|
||||
- Toggle visiblity of collision surfaces and object hitboxes with Visual Surface Debug. `config.h` has VISUAL_DEBUG which can be turned on to enable this feature.
|
||||
- Workaround for infinite death loops caused by using the wrong warp type for death warps. Mario's HP will be restored when being warped to any warp if (and only if) he was warped while dead. *
|
||||
|
||||
**Other Bugfixes:**
|
||||
- Castle music fix (fixes the castle music sometimes triggering after getting a dialog) *
|
||||
- bparam4 fix (the game no longer uses bparam4 to check if an object is Mario and therefore you can safely use it)
|
||||
- Castle music fix (Fixes the castle music sometimes triggering after getting a dialog) *
|
||||
- bparam4 fix (the game no longer uses bparam4 to check if an object is mario and therefore you can safely use it)
|
||||
- Instant warp offset fix (makes the instant warp offset work even when warping to a different area) *
|
||||
- haveyourcake, also known as cake screen fix. Made by Wiseguy and ported/PR'd by Cheezepin
|
||||
- Tree particle fix (Whether a tree uses snow particles or not is decided via the model IDs instead of the course number) *
|
||||
- Adjustable world scale. You can change the geometry scaling of your level, which allow large levels to render correctly on console and LLE emulators while not hurting anything on HLE plugins.
|
||||
- Coordinate overflow fix by falcobuster. Your levels will render correctly on console and LLE emulators even when using 2x or 4x bounds, while not hurting anything on HLE plugins. *This is automatic now, you don't have to set WORLD_SCALE manually.*
|
||||
- A couple vanilla texture fixes
|
||||
- Smoke fix (the smoke texture uses the correct texture format)
|
||||
|
||||
@@ -108,14 +88,14 @@ Thanks to Frame#5375 and AloXado320 for also helping with silhouette stuff
|
||||
- This means that you'll have to do your framebuffer effects on buffer 0 for emulator, but NOT for console. You can use the `gIsConsole` variable to check for console when doing your framebuffer effects.
|
||||
- Widescreen (16:9) support toggleable by pressing `L` in the pause menu. *
|
||||
- S2DEX engine by someone2639! To use it, compile with `make TEXT_ENGINE=s2dex_text_engine` or just set `TEXT_ENGINE` to `s2dex_text_engine` in the makefile.
|
||||
- ia8 (64x64) coins, the vanilla coin texture is upgraded to accomodate. *
|
||||
- ia8 (64x64) 30 FPS coins (Textures by InTheBeef, cleaned up by Arceveti). *
|
||||
- Floombas! Simply just retextured goombas with customizable behaviors (does not overwrite standard goombas). *
|
||||
- ia8 coins (64x64), the vanilla coin texture is upgraded to accomodate. *
|
||||
- ia8 30 FPS (64x64) coins (Textures by InTheBeef, cleaned up by Arceveti). *
|
||||
- Floombas! Simply just retextured goombas with custom behaviors (does not overwrite standard goombas). *
|
||||
- HD texture support for intro splash screen (with floombas if enabled). *
|
||||
- Mario's silhouette is shown when behind most surfaces (By Frame#5375, Axollyon, AloXado320, Wiseguy, Arceveti) *
|
||||
- Skybox size modifier. You can have 2x, 3x and 4x size skyboxes (you can select the skybox size in `config/config_graphics.h`.) Please note that this might affect console performance, especially 4x mode. 2x or 3x mode is recommended if aiming for console. By CowQuack *
|
||||
- Skybox size modifier. You can have 2x, 3x and 4x size skyboxes (you can select the skybox size in `config.h`.) Please note that this might affect console performance, especially 4x mode. 2x or 3x mode is recommended if aiming for console. By CowQuack *
|
||||
- You can set the black border size to different values for console and emulator. It's set to 0 by default for both. *
|
||||
- This repo supports a much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. See `audio/synthesis.c` for more details and configuration info. (By ArcticJaguar725) *
|
||||
- This repo supports much better implementation of reverb over vanilla's fake echo reverb. Great for caves or eerie levels, as well as just a better audio experience in general. See `audio/synthesis.c` for more configuration info. (By ArcticJaguar725) *
|
||||
- Fazana's "puppyprint" text engine. *
|
||||
- Use `print_small_text` to print normal text. The two last params are aligment and how many characters to print (-1 means PRINT_ALL).
|
||||
- Use `render_multi_image` to draw large texture rectangles consisting of multiple images on the screen.
|
||||
@@ -198,9 +178,7 @@ To switch to no compression, run make with the ``COMPRESS=uncomp`` argument.
|
||||
Q: Why in the hell are you bundling your own build of ``ld``?
|
||||
|
||||
A: Newer binutils (Like the one bundled with Ubuntu, 2.34) break linking with libultra builds due to local asm symbols.
|
||||
|
||||
This puts me at a crossroads of either touching leaked code and requiring GCC, or just using an older linker that works just fine.
|
||||
|
||||
I went with the latter.
|
||||
Thanks to "someone2639" for this hacky-ass idea
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
v2.0.1
|
||||
@@ -1,4 +1,4 @@
|
||||
// unreferenced
|
||||
// unreferenced animation
|
||||
// 0x0500616C
|
||||
const struct Animation *const blargg_seg5_anims_0500616C[] = {
|
||||
&blargg_seg5_anim_05006154,
|
||||
|
||||
@@ -4,7 +4,7 @@ const GeoLayout boo_geo[] = {
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_SCALE(0x00, 26214),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_ASM(GEO_TRANSPARENCY_MODE_NORMAL, geo_update_layer_transparency),
|
||||
GEO_ASM(0, geo_update_layer_transparency),
|
||||
GEO_SWITCH_CASE(2, geo_switch_anim_state),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, boo_seg5_dl_0500C1B0),
|
||||
|
||||
@@ -4,7 +4,7 @@ const GeoLayout boo_castle_geo[] = {
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_SCALE(0x00, 26214),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_ASM(GEO_TRANSPARENCY_MODE_NORMAL, geo_update_layer_transparency),
|
||||
GEO_ASM(0, geo_update_layer_transparency),
|
||||
GEO_SWITCH_CASE(2, geo_switch_anim_state),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_DISPLAY_LIST(LAYER_OPAQUE, boo_castle_seg6_dl_06017CE0),
|
||||
|
||||
@@ -332,7 +332,7 @@ const GeoLayout bowser_shadow_geo[] = {
|
||||
const GeoLayout bowser_geo[] = {
|
||||
GEO_NODE_START(),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_ASM(GEO_TRANSPARENCY_MODE_NORMAL, geo_update_layer_transparency),
|
||||
GEO_ASM(0, geo_update_layer_transparency),
|
||||
GEO_SWITCH_CASE(3, geo_switch_anim_state),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_NODE_START(),
|
||||
@@ -362,7 +362,7 @@ const GeoLayout bowser_geo[] = {
|
||||
const GeoLayout bowser_geo_no_shadow[] = {
|
||||
GEO_NODE_START(),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_ASM(GEO_TRANSPARENCY_MODE_NORMAL, geo_update_layer_transparency),
|
||||
GEO_ASM(0, geo_update_layer_transparency),
|
||||
GEO_SWITCH_CASE(3, geo_switch_anim_state),
|
||||
GEO_OPEN_NODE(),
|
||||
GEO_NODE_START(),
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
const Collision breakable_box_seg8_collision[] = {
|
||||
COL_INIT(),
|
||||
COL_VERTEX_INIT(0x8),
|
||||
COL_VERTEX(-100, 0, -100),
|
||||
COL_VERTEX(-100, 0, 100),
|
||||
COL_VERTEX(-100, 200, 100),
|
||||
COL_VERTEX(100, 0, 100),
|
||||
COL_VERTEX(100, 200, 100),
|
||||
COL_VERTEX(100, 0, -100),
|
||||
COL_VERTEX(100, 200, -100),
|
||||
COL_VERTEX(-100, 0, -100),
|
||||
COL_VERTEX(-100, 0, 100),
|
||||
COL_VERTEX(-100, 200, 100),
|
||||
COL_VERTEX( 100, 0, 100),
|
||||
COL_VERTEX( 100, 200, 100),
|
||||
COL_VERTEX( 100, 0, -100),
|
||||
COL_VERTEX( 100, 200, -100),
|
||||
COL_VERTEX(-100, 200, -100),
|
||||
|
||||
COL_TRI_INIT(SURFACE_NO_CAM_COLLISION, 12),
|
||||
@@ -29,6 +29,3 @@ const Collision breakable_box_seg8_collision[] = {
|
||||
COL_TRI_STOP(),
|
||||
COL_END(),
|
||||
};
|
||||
|
||||
UNUSED static const u32 breakable_box_unused_1 = 0;
|
||||
UNUSED static const u64 breakable_box_unused_2 = 0;
|
||||
|
||||
@@ -67,7 +67,7 @@ const Gfx breakable_box_seg8_sub_dl_end[] = {
|
||||
// 0x08012CD8 - 0x08012D20
|
||||
const Gfx breakable_box_seg8_sub_dl_begin[] = {
|
||||
gsDPPipeSync(),
|
||||
gsDPSetCombineMode(G_CC_MODULATERGBFADE, G_CC_MODULATERGBFADE),
|
||||
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
||||
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
||||
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
|
||||
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// It's possible that bubba and bub used to be 2 "actors" in
|
||||
// one actor file.
|
||||
|
||||
// Bin ID? What is this?
|
||||
UNUSED static const u64 bubba_unused_1 = 0;
|
||||
|
||||
// Bubba
|
||||
|
||||
// 0x05000008
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
const GeoLayout burn_smoke_geo[] = {
|
||||
GEO_NODE_START(),
|
||||
GEO_OPEN_NODE(),
|
||||
#ifdef BURN_SMOKE_FIX
|
||||
GEO_ASM(GEO_TRANSPARENCY_MODE_INTER, geo_update_layer_transparency),
|
||||
#endif
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT_INTER, burn_smoke_seg4_dl),
|
||||
GEO_DISPLAY_LIST(LAYER_TRANSPARENT, burn_smoke_seg4_dl_04022070),
|
||||
GEO_CLOSE_NODE(),
|
||||
GEO_END(),
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Burn Smoke
|
||||
|
||||
// 0x040217C0
|
||||
static const Vtx burn_smoke_seg4_vertex[] = {
|
||||
static const Vtx burn_smoke_seg4_vertex_040217C0[] = {
|
||||
{{{ -50, -50, 0}, 0, { 0, 992}, {0x14, 0x0a, 0x0a, 0xff}}},
|
||||
{{{ 50, -50, 0}, 0, { 992, 992}, {0x14, 0x0a, 0x0a, 0xff}}},
|
||||
{{{ 50, 50, 0}, 0, { 992, 0}, {0x14, 0x0a, 0x0a, 0xff}}},
|
||||
@@ -12,15 +12,15 @@ static const Vtx burn_smoke_seg4_vertex[] = {
|
||||
// as a transparent black burn smoke. Probably meant to show up as white-ish
|
||||
// burn smoke, but mistakened for being intended as black smoke.
|
||||
// 0x04021800
|
||||
ALIGNED8 static const Texture burn_smoke_seg4_sub_dl_texture[] = {
|
||||
ALIGNED8 static const Texture burn_smoke_seg4_texture_04021800[] = {
|
||||
#include "actors/burn_smoke/burn_smoke.ia16.inc.c"
|
||||
};
|
||||
|
||||
// 0x04022000 - 0x04022028
|
||||
const Gfx burn_smoke_seg4_sub_dl_begin[] = {
|
||||
const Gfx burn_smoke_seg4_dl_04022000[] = {
|
||||
gsDPPipeSync(),
|
||||
#ifdef BURN_SMOKE_FIX
|
||||
gsDPSetCombineMode(G_CC_MODULATEIFADEA, G_CC_MODULATEIFADEA),
|
||||
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
||||
#else
|
||||
gsDPSetCombineMode(G_CC_MODULATERGBA, G_CC_MODULATERGBA),
|
||||
#endif
|
||||
@@ -30,14 +30,14 @@ const Gfx burn_smoke_seg4_sub_dl_begin[] = {
|
||||
};
|
||||
|
||||
// 0x04022028 - 0x04022048
|
||||
const Gfx burn_smoke_seg4_sub_dl_model[] = {
|
||||
gsSPVertex(burn_smoke_seg4_vertex, 4, 0),
|
||||
const Gfx burn_smoke_seg4_dl_04022028[] = {
|
||||
gsSPVertex(burn_smoke_seg4_vertex_040217C0, 4, 0),
|
||||
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
// 0x04022048 - 0x04022070
|
||||
const Gfx burn_smoke_seg4_sub_dl_end[] = {
|
||||
const Gfx burn_smoke_seg4_dl_04022048[] = {
|
||||
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
|
||||
gsDPPipeSync(),
|
||||
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
||||
@@ -46,14 +46,14 @@ const Gfx burn_smoke_seg4_sub_dl_end[] = {
|
||||
};
|
||||
|
||||
// 0x04022070 - 0x040220C8
|
||||
const Gfx burn_smoke_seg4_dl[] = {
|
||||
gsSPDisplayList(burn_smoke_seg4_sub_dl_begin),
|
||||
const Gfx burn_smoke_seg4_dl_04022070[] = {
|
||||
gsSPDisplayList(burn_smoke_seg4_dl_04022000),
|
||||
#ifdef BURN_SMOKE_FIX
|
||||
gsDPLoadTextureBlock(burn_smoke_seg4_sub_dl_texture, 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),
|
||||
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_sub_dl_texture, 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),
|
||||
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),
|
||||
#endif
|
||||
gsSPDisplayList(burn_smoke_seg4_sub_dl_model),
|
||||
gsSPDisplayList(burn_smoke_seg4_sub_dl_end),
|
||||
gsSPDisplayList(burn_smoke_seg4_dl_04022028),
|
||||
gsSPDisplayList(burn_smoke_seg4_dl_04022048),
|
||||
gsSPEndDisplayList(),
|
||||
};
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
// Empty geo script
|
||||
UNUSED static const u64 cannon_lid_unused_1 = 0;
|
||||
|
||||
@@ -9,9 +9,6 @@ static const Vtx chain_ball_seg6_vertex_06020AA0[] = {
|
||||
{{{ -26, 26, 0}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
|
||||
};
|
||||
|
||||
// align? binid?
|
||||
UNUSED static const u64 chain_ball_unused_1 = 0;
|
||||
|
||||
// 0x06020AE8
|
||||
ALIGNED8 static const Texture chain_ball_seg6_texture_06020AE8[] = {
|
||||
#include "actors/chain_ball/chain_ball.rgba16.inc.c"
|
||||
|
||||
@@ -21,7 +21,7 @@ ALIGNED8 static const Texture chair_seg5_texture_05004060[] = {
|
||||
#include "actors/chair/chair_bottom.rgba16.inc.c"
|
||||
};
|
||||
|
||||
// unreferenced
|
||||
// unreferenced texture
|
||||
// 0x05004460
|
||||
UNUSED ALIGNED8 static const Texture chair_seg5_texture_05004460[] = {
|
||||
#include "actors/chair/chair_surface_unused.rgba16.inc.c"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 2.5 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user