Files
isaac-port/db/globals.tsv
T
shweetandClaude Opus 5.5 a928f6204f Full redump with 65 typed globals, 53 fields, 346 function names; apply_db.py writes atomically
g_game/g_manager typed: 1483 g_manager-> and 834 g_game-> member accesses now visible (field_0x 10636 -> 14385 counts them);
named members 81k -> 91k, raw in_ECX + 0x 18425 -> 16225. ApplyGlobals takes array types (char[5]).
apply_db.py used to truncate all.c before computing the new text, so a killed build left it empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 17:25:09 -04:00

16 KiB

1# addressnameC typeevidence Global data, labelled and typed by scripts/ApplyGlobals.java; apply_db.py renames DAT_<address> in the dump.
200bacb00__uint_to_double_fixupdouble[2]MSVC unsigned->double fixup table {0.0, 4294967296.0} (00bacb08 = 2^32); every use is (double)(int)x + (&DAT_00bacb00)[-(x >> 31)]
300bf8228g_systemPageSizeuint32_t.data default 0x1000; set from GetSystemInfo().dwPageSize (dwAllocationGranularity goes to 00bf822c); used to round VirtualAlloc sizes in FUN_00ae8xxx
400bf93b4__security_cookieuint32_tMSVC /GS cookie: every prologue does local = DAT_00bf93b4 ^ ESP (2740 uses), paired with __security_check_cookie
500bf93e8g_screenPointScalefloatIsaac::GetScreenPointScale (Lua) returns DAT_00bf93e8; .data init 2.0; written by the window-resize handlers FUN_00954150 (1.0/scale) and FUN_00954320; multiplied with g_displayPixelRatio (00bf941c) for screen-pixel math
600bf941cg_displayPixelRatiofloat? .data init 1.0; FUN_00954150/FUN_00954320 (window resize) store (float)FUN_00a19340()/windowWidth + 0.5, i.e. framebuffer/window pixel ratio; always used as DAT_00bf941c * DAT_00bf93e8 (g_screenPointScale) to turn screen coords into framebuffer pixels
700bf9444g_menuControllerIndexint? .data init -1: controller index of the player driving the menus; returned by FUN_00424220/others when Manager state (DAT_00c7169c+8) == 1 (menu); set in the controller-join code next to Entity_Player::SetControllerIndex; passed to FUN_0095af30 input checks in Menu_KeyConfig::Update/Render, Menu_OnlineLobby
800c34e80g_colorGreenSplatColorMod? .data ColorMod {tint 1,1,1,1; colorize 0.63,0.85,0.32,1; offset 0,0,0}, never written; Color::operator_assign(&DAT_00c34e80) into npc->_splatColor and spawn_blood_explosion(…,&DAT_00c34e80,…) in Scourge/Mother/Rotgut/Beast pestilence
900c3793cg_vectorOneVector.data Vector {1.0f, 1.0f} never written (y = DAT_00c37940); passed as the scale Vector* to Font::measure_string(…,&DAT_00c3793c) and copied into _size/_scale .x/.y
1000c37944g_drawRectUnsetfloat[4]? read-only constant {-1,-1,-1,-1} (find.sh val 00c37944..00c37950); passed as last arg to KAGE render-target/image draw vtable calls (+0x14/+0x1c) in Room::render_darkness_overlay, Game::Render, Backdrop, PlayerHUD: a 'use default' sentinel (source rect or color); preceded by g_vectorOne {1,1} at 00c3793c
1100c5ac04g_eosPlatformvoid*EOS_HPlatform: first arg of _EOS_Platform_Tick, _EOS_Platform_GetLobbyInterface/GetP2PInterface/GetPresenceInterface; zeroed on EOS shutdown (line with 00c5abf4 flag clear)
1200c7163cg_imageReleaseFnvoid*KAGE image-handle release hook: FUN_00a11700 (KAGE::Graphics::ImageManager init, sets flag bit 0) stores FUN_00a12240, ImageManager dtor 00a11620/shutdown 00a11730 store 0; called as if (ctrl->vtbl[0xc]() && DAT_00c7163c) DAT_00c7163c(&handle) when the last ref of a loaded image (LoadImage users) is dropped
1300c71640g_xmlNullStrcharbss zero char; rapidxml nullstr(): AnmCache::ParseFile / EntityConfig::LoadEntities use &DAT_00c71640 whenever an xml name/value pointer is null before strcmp/atoi
1400c71644g_renderTargetReleaseFnvoid*? second KAGE graphics release hook, set to FUN_00a12240 alongside g_imageReleaseFn in FUN_00a11700 (ImageManager init) and two other inits; its callers are render-surface code (init_room_render_surfaces, Game::create_render_surfaces, Backdrop::constructor, PlatformRenderTarget/VideoPlayerImage)
1500c71678g_gameGame*WinMain-style init does operator_new(0x68e88) + Game::constructor and stores the result here (00811690 area); Isaac::GetPlayer calls Game::GetPlayer(DAT_00c71678); dump already types it Game*
1600c71690g_luaEnginevoid*LuaEngine* (no struct yet): FontKerningPair::IsaacStartup stores operator_new(0x268) result into it right after the Lua memory reservation; [0]/[1] are callback-presence bitmasks tested before running callbacks (*(uint*)*DAT & 0x4000000), [4] -> lua_State* used by LuaEngine::GetPillEffect, render_debug_lua_memory; checked with Manager state (DAT_00c7169c+8 == 2); REPENTOGON name g_LuaEngine
1700c7169cg_managerManager*Isaac::GetItemConfig (0042ca00) returns DAT_00c7169c + 0x2a404 (ItemConfig); Isaac::GetFrameCount reads +0x4abbc; PersistentGameData::TryUnlock((PersistentGameData*)(DAT_00c7169c + 0x14))
1800c72a20g_menuManagerMenuManager*set to MenuManager::constructor(operator_new(...)) result (lines ~764372, 817648); Menu_Character::Reset(DAT_00c72a20 + 0x1534); used by Menu_Options/Menu_KeyConfig::Update
1900c73674g_userProfilevoid*? KAGE::System::UserProfile data pointer: online_chat_update builds a UserProfile (vftable) from it and reads the 64-bit user id at +8/+0xc; set by FUN_00a23ae0() with |= 1, cleared when that id logs out
2000c73680_glfw_GLFWlibraryGLFW 3.4 library state: memset(&DAT_00c73680,0,0x2728) in glfwInit; 'if (DAT_00c73680 == 0) _glfwInputError(0x10001 GLFW_NOT_INITIALIZED)' = _glfw.initialized; DAT_00c73694 (+0x14) == 0x60001 GLFW_PLATFORM_WIN32 = _glfw.platform.platformID; GetModuleHandleExW(6,&_glfw,...)
2100c7368cg_glfwDeallocatevoid*? GLFW _glfw.allocator.deallocate (allocate at 00c73684, user at 00c73690): (*DAT_00c7368c)(ptr, DAT_00c73690) in _glfwCreateWindowWin32 and the raw-input code
2200c73690g_glfwAllocatorUservoid*? GLFW _glfw.allocator.user: every call (*DAT_00c73684)(size, DAT_00c73690) (allocate) and (*DAT_00c7368c)(ptr, DAT_00c73690) (deallocate) passes it; _glfwCreateWindowWin32 uses them
2300c78dc4g_screenWidthfloatIsaac::GetScreenWidth (Lua) returns DAT_00c78dc4; IsaacStartup sets 0x43f00000 (480.0); FUN_00954150 sets windowWidth*scale; used as (DAT_00c78dc4 - 338.0)*0.5 room render offset
2400c78edcg_screenHeightfloatIsaac::GetScreenHeight (Lua) returns DAT_00c78edc; FontKerningPair::IsaacStartup sets 0x43870000 (270.0); FUN_00954150 sets it to windowHeight*scale; used as (DAT_00c78edc - 182.0)*0.5 room render offset
2500c78ee0g_anmCacheMapvoid*_Myhead of a static std::map (node 0x54 bytes, head init left=parent=right=self, color/isnil 0x101) built by static init FUN_00401140; walked by AnmCache::Load/AddRef/RemoveRef/Clear/Preload/LogMemoryUsage
2600c79100g_tearFlagsNoneBitSet128bss, never written (only read/copied into static locals) so all zero; its 4 dwords 00c79100..0c are passed as the BitSet128 tear-flags argument of Game::BombDamage / Game::DamageRadius = TEAR_NORMAL
2700c79118g_shadersvoidKAGE shader table, 0x50 bytes per shader: FUN_00682260/BeamRenderer::End select current shader DAT_00c379b8 = &DAT_00c79118 + id*0x50 if loaded flag ((&DAT_00c7911c)[id*0x50] & 1); 00c79118 itself is shader 0 (default) used as fallback in render code
2800c798b8g_mountPrefixeschar**begin of a static std::vector<char*> (end 00c798bc, cap 00c798c0) lazily filled from FileSystem::GetMountPrefixes in TextureCache::Has/Release and AnmCache::*: each prefix is strcat'ed with the path and hashed (GetPrimaryFilePathHash) to look up the cache
2900c798e4g_graphicsManager_flagsuint32_tKAGE::Graphics::Manager static at 00c798e0 (stores KAGE::Graphics::Manager::vftable, returns &DAT_00c798e0); this is +4 = in_ECX[1] flags: KAGE_Graphics::SetRenderTarget sets 0x20 when rendering to the backbuffer; bit 4 picks blend rgbSrc 1 vs 6
3000c79900g_graphicsManager_blendModeint[4]KAGE::Graphics::Manager (00c798e0) + 0x20; _equation at +0 (set 0), then rgbS 00c79904, rgbD 00c79908, aS 00c7990c, aD 00c79910; saved/restored as 5 dwords around draws; REPENTOGON BlendMode layout 0x14 matches the store pattern
3100c79948g_graphicsManager_renderTargetvoid*KAGE::Graphics::Manager (00c798e0) + 0x68: KAGE_Graphics::SetRenderTarget stores in_ECX[0x1a] = target and sets flag 0x20 when null; readers use +0x10/+0x14 as width/height (glViewport args)
3200c7999cg_glfwWindowvoid*GLFWwindow* (member +0xbc of the static KAGE::Graphics::Manager at 00c798e0, zeroed in its ctor FUN_00a18aa0): glfwGetWin32Window inlined as hwnd = *(HWND*)(DAT_00c7999c + 0x2b4) (window->win32.handle) after the _glfw.initialized / platformID checks; used by Input::GetMousePosition, Input::IsMouseBtnPressed, Console::Update
3300c79a58g_multiplayerServicevoid*KAGE::Network::MultiplayerManager static at 00c79a50 (stores MultiplayerManagerBase::vftable, zeroes +8); +8 = active KAGE::Network::Multiplayer::ServiceBase*, __RTDynamicCast to ServiceLocalhost / ServiceEOS
3400c79a74g_multiplayerLobbyPtrvoid*? pointer half of the shared_ptr inside the KAGE::Network::Multiplayer::Lobby handle at 00c79a70 (vptr; ctrl at 00c79a78), which is member +0x20 of the static KAGE::Network::MultiplayerManagerBase at 00c79a50 (ctor FUN_00a289d0); std::shared_ptr::assign(&DAT_00c79a74) copies the current lobby into locals in Menu_OnlineLobby::*, Game::NextVictoryLap
3500c79c64g_forceCollideDepthint? re-entrancy counter: ++ before and -- after nested collision calls (Entity_Familiar::ai_umbilical_baby around FUN_006b2410/vtable +0x5c collide, Entity::ForceCollide, Entity_Knife::UpdateSwingHits); Entity_Pickup::HandleCollision skips the mega-chest/shop-restock paths unless it is 0
3600c7b630g_entitySpawnTimeMsuint64_t? 64-bit counter (high dword 00c7b634): Game::SpawnEx and the inlined spawn paths (NPC AIs, Entity_Slot::TakeDamage) take GetTimeNs() before and after entity init/AddEntity and add the difference /1e6 (mul 0xd7b634db >> 0x12); FUN_006f4170 prints it to an ostream; zeroed in IsaacStartup (00c7b638/3c are a neighbour)
3700c7de6cg_epoxyBeginCountintlibepoxy api.begin_count: incremented under LOCK by the glBegin wrapper (00a627d0); epoxy_is_desktop_gl and the GL extension/version resolver FUN_00a2ca10 (373 'if (DAT_00c7de6c != 0) goto' tests) short-circuit while inside glBegin/glEnd
3800c7de78g_mainHeapKAGE::Memory::MainHeap*constructor stores KAGE::Memory::MainHeap::vftable then DAT_00c7de78 = obj (FUN_00a22xxx), dtor FUN_00a647c0 zeroes it; every free does (g_mainHeap ? g_mainHeap+0x30 : &DAT_00c7f618) -= block size
3900c7e814g_inputDeviceReleasevoid*? release hook called after a refcounted KAGE::Input::InputDevice smart pointer's vfunc+0xc returns true: if (DAT_00c7e814) DAT_00c7e814(&ptr) (Backdrop::PreRenderControls, Manager::update_controller_popups); setter not found
4000c7f070g_multiplayerReleasevoid*? set to FUN_00a79280 in the KAGE::Network::Multiplayer::ServiceBase ctor (FUN_00a77bf0); same release-hook pattern as 00c7e814, used by NetplayManager::Update
4100c7f484g_soundReleaseFnvoid*KAGE sound-handle release hook: FUN_00a2afd0 (KAGE::Sound manager init, sets flag bit 0) stores FUN_00a2bb10, the Sound::ManagerBase shutdown/dtor store 0; called as if (ctrl->vtbl[0xc]() && DAT_00c7f484) DAT_00c7f484(&handle) in SoundSourceBase/SoundEffect code
4200c7f608g_profileReleaseFnvoid*? KAGE handle release hook of the same shape as g_lobbyReleaseFn (if (ctrl->vtbl[0xc]() && fn) fn(&handle)), used in network/user-profile code (FUN_00a239e0, GridEntity_Door::play_animation is an ICF name); handle type not proven
4300c7f60cg_lobbyReleaseFnvoid*? KAGE handle release hook in the KAGE::Network::Multiplayer::ConstLobby/Lobby/UserProfile code (vtable types around 154 of its calls are ConstLobby): if (ctrl->vtbl[0xc]() && DAT_00c7f60c) DAT_00c7f60c(&handle); no plain writer found in the C (set elsewhere)
4400c7f618g_allocatedBytesNoHeapuint64_t64-bit byte counter used when g_mainHeap (00c7de78) is null: frees subtract the block size from it (with borrow into 00c7f61c); MainHeap ctor folds it into heap+0x30
4500c8108cg_invalidRoomDescriptorGuardintMSVC thread-safe static guard (_Init_thread_header/_footer, TLS epoch compare) for the function-local static RoomDescriptor at 00c81090 (RoomDescriptor::constructor + atexit); Level::GetRoomByIdx returns &DAT_00c81090 for an invalid index/dimension; inlined into Level::generate_* callers
4600c81090g_roomDescriptorDummyRoomDescriptorfunction-local static (guard DAT_00c8108c, _Init_thread_header + RoomDescriptor::constructor(&DAT_00c81090) + atexit); returned instead of _roomList[...] when _currentDimensionIdx >= 3
4700c812a0g_triggerDeathPlayersEntity_Player**begin of a function-local static std::vector<Entity_Player*> in Entity_Player::TriggerDeath (guard DAT_00c8129c, end 00c812a4, cap 00c812a8): cleared, then filled with this and _twinPlayer, then scanned with HasCollectible/HasTrinket
4800c812a4g_triggerDeathPlayersEndEntity_Player**_Mylast of the function-local static std::vector<Entity_Player*> (begin 00c812a0, end-of-storage 00c812a8, guard 00c8129c) in Entity_Player::TriggerDeath: cleared, then filled with the player and its _twinPlayer, iterated by FUN_007a1020/FUN_007a0fe0 (trinket multiplier checks)
4900c8297ag_luaClassKeyEntitycharluabridge ClassInfo<Entity>::getClassKey: Isaac::GetRoomEntities wraps each room entity in UserdataPtr and lua_rawgetp(L, REGISTRY, &DAT_00c8297a) for its metatable; static key is 00c8297b
5000c82980g_luaClassKeyVectorcharluabridge ClassInfo<Vector>::getClassKey: functions creating luabridge::UserdataValue<KAGE::Math::Vector2> follow with lua_rawgetp(L, REGISTRY, &DAT_00c82980) to set the metatable
5100c829c8g_luaClassKeyEntityPlayercharluabridge ClassInfo<Entity_Player>::getClassKey static char: lua_rawsetp(L,REGISTRY,&DAT_00c829c8) in the class registration (const 00c829c9 / class 00c829c8 / static 00c829c7); getClass(&DAT_00c829c8,0) (FUN_0085c590) result+4 used as Entity_Player*; pushed as metatable of returned players (Isaac::GetPlayer)