Repository navigation
Update functions CSV for library functions - #233
Merged
Merged
Conversation
It was excluded in 2021 because there were no plans to decompile it. Someone has since decompiled it, so its rows go back from L to U. nex stays excluded. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
nex is excluded as a whole, but a few nex rows had been missed and were still U. Most are unnamed functions sitting alone between L rows in nex TUs. The rest are in the PosTrackerUploader TU among nex dtors and RootObject operator delete thunks; the unnamed ones there are assumed to be nex code based purely on where they are. (AI assisted using Claude Opus 5.5)
Only parts of Havok were marked L, so the progress percentage measured neither all code nor in-scope code. The rest of the Havok TUs are now L too. Havok header code emitted in KingSystem TUs (e.g. the hkMemorySystem defaults in FreeListMemorySystem, and the hkaiEdgePath and hclCollidable dtors in the NavMeshUtil and ClothSet TUs) stays in scope, like hkStubs and the rest of ksys::phys and gsys. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Almost all of these are the finish or cleanup function of an hkTypeInfo record. The IDB names them after the record's type name string, e.g. finishFunctionImpl<hclClothContainer>. The odd one out is hkTypeInfo::cleanupLoadedObject. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
leoetlino
force-pushed
the
stack/04-csv-libraries
branch
from
October 18, 2026 17:51
74169d4 to
2990104
Compare
Classes come from hkTypeInfo/hkClass registration and vtable slots from the Havok 2014.1 headers. Thunks take their target's IDB name and this-offset, e.g. hkpListShape::dtor_thunk18. Also respells some older hkp dtor names as D0/D1/D2 symbols, and moves one dtor from hkpClosestCdPointCollector to the base dtor of hkpCdPointCollector. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Vtables are found through hkTypeInfo and named from the Havok 2014.1 headers, but only where the slot count matches exactly. ctorFinish rows take the class of the finishFunctionImpl<T> that calls them. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Covers hkp rows that aren't in the decomp source yet. The IDB named them mostly from Havok reflection and the Havok 2014.1 headers; static initialisers are named after the reflection records they build. Also replaces a few nex, atk, ui2d and Super Mario Odyssey names that a matcher had put on Havok code because the bodies looked similar, and fixes some older hkp names (e.g. hkpRigidBody::getClass is actually staticClass). (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
leoetlino
force-pushed
the
stack/04-csv-libraries
branch
from
October 18, 2026 23:28
2990104 to
ae5333b
Compare
Dtors fill slots 0 and 1 of a vtable found through hkTypeInfo or through the ctor that installs it, which also names the ctor. D1 vs D2 follows the IDB, which took it from the reference builds' symbols. Most thunks take their target's IDB name with a _thunkNN suffix; dtor thunks for secondary bases take their _ZThn symbol. Nested classes such as hkaiPathfindingUtil::FindPathInput take the scoped name from their hkTypeInfo. Also fixes hkBinaryPackfileWriter::save, which is actually the D1 dtor. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
hk and hka slots follow the Havok 2014.1 headers, and hkai slots the Havok Project Anarchy headers (2014.0.5, two minor versions older than the game's 2014.2.0). hcl has no public headers, so its names, and the hkai slots that 2014.2 added, are inferred from reflected fields, asserts and timer labels; the least certain ones get a Maybe suffix. As in hkp, ctorFinish rows take the class of the finishFunctionImpl<T> that calls them. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Most static initialisers are named after the reflection record they build, and the hkSingletonRegister ones after the singleton they register. The rest are the IDB's names, which came from the Havok 2014.1 headers, the Havok Project Anarchy headers (for hkai) or a Win32 Havok build with symbols. Also replaces a few agl/aal/nn::font/game names that a body match had put on Havok code (e.g. SnowVolume::clearModifyFlag). (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Classes come from each vtable's RTTI name, and symbols from the same vtable slot in Super Mario Odyssey or Splatoon 2, checked against the function body. Also fixes rows that a body shape match had given another nex class's name (e.g. 0x7100cafa3c is LockChecker's dtor, not Event's), and a few nex thunks with the wrong this-adjustment. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Slot names come from Super Mario Odyssey's vtable for the class with the same RTTI name, kept only where the neighbouring slots and the function body agree. The two names that no symbol spells out get a Maybe suffix. Also fixes a few wrong names, e.g. 0x7100abe02c is Window::DrawSelf, not Picture's. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
These rows had the right member function on the wrong class, mostly PseudoGlobalVariable<X> names shifted between instantiations and sibling atk sound classes. Classes come from vtable RTTI matched against Super Mario Odyssey, or from identical Labo/Splatoon 2 bodies. Also moves 0x710133adb4 to the one-argument SoundArchivePlayer::GetRequiredMemSize overload. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
These function bodies match builds with symbols of Super Mario Odyssey 1.0, Splatoon 2 3.1.0 or Labo. Fuzzy matches are checked against callees and strings, and the weakest ones get a Maybe suffix. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
For code that isn't in the decomp yet. The IDB names mostly come from Splatoon 2 and Super Mario Odyssey matches and from names carried over between vtables with the same RTTI class. Some of these replace wrong names rather than placeholders: agl, eui and gsys names that sat on nex, atk, g3d and ui2d functions, DataStore *_PrepareRequest names on NATTraversalEngine and SocketTransport functions, and DataStore Call* stubs, which are now named after the RMC method ID each one passes. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Classes come from the vtable a ctor or dtor installs, or from matching vtables slot by slot against Super Mario Odyssey and Splatoon 2. The RTTI rows include sead::RuntimeTypeInfo::Derive<>::isDerived instantiations over ksys and uking classes. Also fixes dtor names that a body shape match had put on the wrong class, and the this-adjustment of three aal::AuxBusRootFx thunks. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Unnamed and nullsub_ rows get the name of the virtual they implement, from the vtable types in the lib/ headers and, in the IDB, from Super Mario Odyssey vtables with identical bodies. Also makes FixedSafeString rows carry the size each caller constructs (0x7100b70d20 is actually EnvObj::setGroupNameCopy in the IDB, which frees FixedSafeString<59> for 0x7101026ec0), drops unneeded _0 suffixes, adds missing namespaces, removes stray `$`s, and gives a few rows the class or type the IDB has for them (e.g. FxReverbI3DL2::setupGains_). (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
These function bodies match builds with symbols of Super Mario Odyssey 1.0, Labo or Splatoon 2 3.1.0; fuzzy matches were checked against callees in the IDB. Most rows had no name and the rest were nullsub_ placeholders. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
The IDB names come from Super Mario Odyssey, Labo and Splatoon 2 matches, vtable installs, and, for delegates, the owner and member function stored where each one is constructed. Most rows had no name or were nullsub_. The rest had placeholders or wrong names, like nn::nex::SecureStream::ReleaseURL on sead::TreeMap::deleteValue. The RIDDemoSaveFileDevice rows are actually sead::PathPrefixFileDevice, and the LightPrePassLightMgr rows use agl's light types, not al:: ones. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Out-of-line ctors and dtors are C1/D1 like in the reference builds, and inline ones are C2/D2. Only the symbol variant changes, except that sead::FrameHeap's dtor also drops a _0 suffix it doesn't need. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
Each function is named in the IDB after the vtable slot it fills. The sead NinJoyNpadController and eui GetRuntimeTypeInfo names are in Labo's symbols, and getSortKey is the xlink2::IUser slot that Labo's own override is named after. The hcl and nn::nex names match other overrides of the same slot that are already in the CSV. Also marks the hcl row as L since Havok is excluded from the decomp. (AI assisted using Claude Opus 5.5)
Names unnamed and placeholder rows, mostly gsys, agl, nn and eui, by lining up address order, call sequences, vtables and callees with already named functions, then reading the rest. A spot check on an earlier, larger version of this set found 210 of 215 names right. Also fixes about 40 wrong names (e.g. swapped agl::ShaderProgram create/destroy pairs), moves the GPUMemBlock<sead::Vector4f> dtor name to 0x71013bd2c4 and blanks four nullsub_ placeholders. Three GPUMemBlock dtors get placeholder classes until T is known. (AI assisted using Claude Opus 5.5)
0x7100c1016c had an agl::pfx name that was only based on a similar function body. Labo's gsys has ModelScene::skipDraw with the same body, also right before isBoundLayer_. (AI assisted using Claude Opus 5.5)
In Labo, the 1108-byte EmitBySearchOrder comes before InitializeParticle and the 8-byte Emit comes after it, and BotW's functions there have the same sizes. The atk ctor is where Labo has StreamSoundPrefetchFileReader's ctor, right after StreamSoundPlayer's sound-thread thunks and before its Initialize. (AI assisted using Claude Opus 5.5)
0x71013f2cd0 installs the same vtables as OfxLensFlare's ctor and is called by its deleting dtor, so it's OfxLensFlare's dtor, not OfxLensFlareDynamic's. The other three are named from where they are and what's around them (the sinit between sead::CalendarTime and sead::DateSpan, createInstance between ParticleMgr's singleton disposer and deleteInstance, and getLerp after SHUtil's setConstantColor with the same size as Labo's). (AI assisted using Claude Opus 5.5)
leoetlino
force-pushed
the
stack/04-csv-libraries
branch
from
October 19, 2026 00:01
ae5333b to
1f8f77a
Compare
leoetlino
marked this pull request as ready for review
October 19, 2026 00:26
snrubrm
added a commit
to snrubrm/botw
that referenced
this pull request
Oct 20, 2026
Import the data changes from upstream e78c024..8f0334a (zeldaret#231-zeldaret#233) where they fit this fork's rows. 12,992 unimplemented or symbol-equivalent rows take upstream's names, from the IDB and other games' symbols. Havok is marked as an excluded library (7,518 rows U to L; the 209 Havok rows already O, m or M here are kept), libcurl comes back into scope (368 rows L to U) and the new decodeSZSNxAsm64_ row is added. Rows upstream bound to functions the code already implements are taken where the symbol is defined here and not bound elsewhere. With the names in line, 48 rows now match (3,776 bytes), including that new row. Implemented rows keep their names when ours differ, since they must match our symbols; upstream's rebinding swaps (such as sead::ControllerWrapper at 0x7100b1ac54) and its O to U fixes are left for review. The datarefs known entry for the FixedSafeString<63> vtable now covers only its deleting dtor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change is