# Known findings of tools/check_units.py: <target> <kind> <address>  # reason
# `<target> complete` declares every game function of the target annotated, so the
# function before an object's first one is known to be the previous annotated one.
# The check fails on a finding not listed here, and on a listed one that no longer occurs.

MW2SHELL complete
MW2 complete

# MW2 builds without /Ob1, so __inline functions are emitted out of line after the unit's
# functions, each in its own 16-aligned section with 0xCC padding before it.
MW2 split 0x1004f2d0  # DisplayDibWindowMessage, from the DisplayDib header (dispdib.c; the build emits DisplayDibWindowCreateEx first)
MW2 split 0x10068cb0  # IsInsideWindow (mouse.c)
MW2 split 0x10079240  # DdrawUnlock (directdraw.c)
MW2 split 0x100792b0  # DdrawRestore (directdraw.c)

# NETMECHW builds without /Ob1 too: the methods defined in a class body are emitted out of line
# after the unit's functions, each in its own 16-aligned section with 0xCC padding before it.
NETMECHW split 0x10002080  # SessionList::Lock (sessionlist.cpp)
NETMECHW split 0x100020b0  # SessionList::Unlock (sessionlist.cpp)
NETMECHW split 0x100020e0  # SessionList::LockState (sessionlist.cpp)
NETMECHW split 0x10002110  # SessionList::UnlockState (sessionlist.cpp)
NETMECHW split 0x100035c0  # IronLantern0x160::FUN_100035c0 (unk100025f0.cpp)
NETMECHW split 0x10003620  # IronLantern0x160::FUN_10003620 (unk100025f0.cpp)
NETMECHW split 0x10006000  # ChatLog::Detach (unk10003660.cpp)
NETMECHW split 0x1000d1f0  # ChatLog::Lock (chatlog.cpp)
NETMECHW split 0x1000d220  # ChatLog::Unlock (chatlog.cpp)
NETMECHW split 0x1000f050  # IronLantern0x160::FUN_1000f050 (unk1000e410.cpp)
NETMECHW split 0x1000f0a0  # IronLantern0x160::FUN_1000f0a0 (unk1000e410.cpp)

# MW2MATROX: the Matrox edition's objects that hold code or data of more than one of 1.1's units,
# not split yet. Matrox-only functions annotated in palette.c sit in the Matrox edition's own objects:
# the A3D renderer after damagepanel.c, and one after ray.c.
MW2MATROX order 0x100a4598  # g_jumpJetDrag, g_slideSlope (maneuvers.c) sit with mechclass.c's data
MW2MATROX order 0x100a4940  # collision.c's colours sit with quadtree.c's and faceshade.c's data
MW2MATROX order 0x100a4960  # commandpointmenu.c's menu sits between faceshade.c's and render.c's data
MW2MATROX order 0x100a84a0  # commandmenu.c's menus sit between settings.c's and audio.c's data
MW2MATROX order 0x100ba8b0  # commandmenu.c's pages sit between inputmap.c's and ai.c's data
MW2MATROX order 0x100bcdd0  # targeting.c's readout labels sit between overlay.c's and lancemenu.c's data
