# address name C type evidence Global data, labelled and typed by scripts/ApplyGlobals.java; apply_db.py renames DAT_
in the dump. 00b1a4ec s_empty char[1] empty string literal "" (find.sh val: 0): std::string::assign(&DAT_00b1a4ec,0), ANM2::IsFinishedImpl(&npc->_sprite,"") (empty name = current animation) 00b1bc54 s_Idle char[5] string literal "Idle" (find.sh val): ANM2::Play(&npc->_sprite,&DAT_00b1bc54,0), ANM2::SetAnimation(...,"Idle",1) 00b1d560 s_Jump char[5] .rdata string literal "Jump" (anim/event name for Sprite::Play/IsEventTriggered in NpcAI::ENTITY_SPIDER etc.) 00b1d574 s_Land char[5] .rdata string literal "Land" (anim/event name) 00b1d644 s_Open char[5] .rdata string literal "Open" (anim name) 00b1dce4 s_Walk char[5] .rdata string literal "Walk" (anim name) 00b753b4 s___gc char[5] string literal "__gc": lua_pushstring(L,&DAT_00b753b4) in 132 luabridge class registrations (metatable __gc entry) 00bacb00 __uint_to_double_fixup double[2] MSVC unsigned->double fixup table {0.0, 4294967296.0} (00bacb08 = 2^32); every use is (double)(int)x + (&DAT_00bacb00)[-(x >> 31)] 00bf8228 g_systemPageSize uint32_t .data default 0x1000; set from GetSystemInfo().dwPageSize (dwAllocationGranularity goes to 00bf822c); used to round VirtualAlloc sizes in FUN_00ae8xxx 00bf93b4 __security_cookie uint32_t MSVC /GS cookie: every prologue does local = DAT_00bf93b4 ^ ESP (2740 uses), paired with __security_check_cookie 00bf93e8 g_screenPointScale float Isaac::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 00bf941c g_displayPixelRatio float ? .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 00bf9444 g_menuControllerIndex int ? .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 00c34e80 g_colorGreenSplat ColorMod ? .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 00c3793c g_vectorOne Vector .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 00c37944 g_drawRectUnset float[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 00c379b8 g_currentShader KAGE::Graphics::ShaderBase* "No shader set" log when null before (*(*DAT_00c379b8 + 0x20))() / glDrawElements; set to &DAT_00c79118 + idx*0x50 (shader array) by push/set functions FUN_00682260/FUN_00682280 when shader flags & 1 00c379dc g_shaderStackSize uint32_t std::deque _Mysize of the shader stack (_Myoff 00c379d8, current shader 00c379b8): pop does 'if (DAT_00c379dc == 0) "Shader stack empty"', DAT_00c379b8 = back(), size--, if 0 _Myoff = 0 00c5ac04 g_eosPlatform void* EOS_HPlatform: first arg of _EOS_Platform_Tick, _EOS_Platform_GetLobbyInterface/GetP2PInterface/GetPresenceInterface; zeroed on EOS shutdown (line with 00c5abf4 flag clear) 00c7163c g_imageReleaseFn void* 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 00c71640 g_xmlNullStr char bss zero char; rapidxml nullstr(): AnmCache::ParseFile / EntityConfig::LoadEntities use &DAT_00c71640 whenever an xml name/value pointer is null before strcmp/atoi 00c71644 g_renderTargetReleaseFn void* ? 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) 00c71678 g_game Game* 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* 00c71690 g_luaEngine void* 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 00c7169c g_manager Manager* Isaac::GetItemConfig (0042ca00) returns DAT_00c7169c + 0x2a404 (ItemConfig); Isaac::GetFrameCount reads +0x4abbc; PersistentGameData::TryUnlock((PersistentGameData*)(DAT_00c7169c + 0x14)) 00c72a20 g_menuManager MenuManager* set to MenuManager::constructor(operator_new(...)) result (lines ~764372, 817648); Menu_Character::Reset(DAT_00c72a20 + 0x1534); used by Menu_Options/Menu_KeyConfig::Update 00c72a28 g_userDataDir char[1024] user save/data folder: sprintf_s(&DAT_00c72a28,0x400,"%s/",GetUserProfileDirectoryA(...)) then extended in IsaacStartup; GetFileAttributesA checks; used as "%s/save_backups/", "%s/inputconfigs.dat", "%s/online_logs/...", cmd_history.txt, log.txt paths 00c73674 g_userProfile void* ? 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 00c73680 _glfw _GLFWlibrary GLFW 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,...) 00c7368c g_glfwDeallocate void* ? GLFW _glfw.allocator.deallocate (allocate at 00c73684, user at 00c73690): (*DAT_00c7368c)(ptr, DAT_00c73690) in _glfwCreateWindowWin32 and the raw-input code 00c73690 g_glfwAllocatorUser void* ? GLFW _glfw.allocator.user: every call (*DAT_00c73684)(size, DAT_00c73690) (allocate) and (*DAT_00c7368c)(ptr, DAT_00c73690) (deallocate) passes it; _glfwCreateWindowWin32 uses them 00c78dc4 g_screenWidth float Isaac::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 00c78edc g_screenHeight float Isaac::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 00c78ee0 g_anmCacheMap void* _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 00c79100 g_tearFlagsNone BitSet128 bss, 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 00c79118 g_shaders void KAGE 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 00c79790 g_renderTargetStackSize uint32_t std::deque _Mysize of the render-target stack (_Myoff 00c7978c, _Mapsize 00c79788): pop does 'if (DAT_00c79790 == 0) "PopRenderTarget: stack is empty!"', KAGE_Graphics::SetRenderTarget(back()), size-- 00c798b8 g_mountPrefixes char** begin of a static std::vector (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 00c798e4 g_graphicsManager_flags uint32_t KAGE::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 00c79900 g_graphicsManager_blendMode int[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 00c79948 g_graphicsManager_renderTarget void* 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) 00c7999c g_glfwWindow void* 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 00c79a58 g_multiplayerService void* KAGE::Network::MultiplayerManager static at 00c79a50 (stores MultiplayerManagerBase::vftable, zeroes +8); +8 = active KAGE::Network::Multiplayer::ServiceBase*, __RTDynamicCast to ServiceLocalhost / ServiceEOS 00c79a74 g_multiplayerLobbyPtr void* ? 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 00c79c64 g_forceCollideDepth int ? 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 00c7b630 g_entitySpawnTimeMs uint64_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) 00c7b640 g_vectorZero Vector .bss Vector (x at 00c7b640, y at 00c7b644), only ever read: npc->_velocity/_targetPosition = it (100s of NPC AIs), passed as Vector* velocity/offset to Game::SpawnEx and AnimationState::Render(&s,&zero,&zero); compared against velocity/targetPosition for "is zero" 00c7de4c g_xmlParseError const char* rapidxml error message without exceptions: parser FUN_00416040 sets it to "expected <", "expected ;", "unexpected end of data"...; ItemConfig load reads it, zeroes it, and only parses "collectibles" when it was null 00c7de6c g_epoxyBeginCount int libepoxy 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 00c7de78 g_mainHeap KAGE::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 00c7e814 g_inputDeviceRelease void* ? 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 00c7f070 g_multiplayerRelease void* ? set to FUN_00a79280 in the KAGE::Network::Multiplayer::ServiceBase ctor (FUN_00a77bf0); same release-hook pattern as 00c7e814, used by NetplayManager::Update 00c7f484 g_soundReleaseFn void* 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 00c7f608 g_profileReleaseFn void* ? 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 00c7f60c g_lobbyReleaseFn void* ? 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) 00c7f618 g_allocatedBytesNoHeap uint64_t 64-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 00c8108c g_invalidRoomDescriptorGuard int MSVC 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 00c81090 g_roomDescriptorDummy RoomDescriptor function-local static (guard DAT_00c8108c, _Init_thread_header + RoomDescriptor::constructor(&DAT_00c81090) + atexit); returned instead of _roomList[...] when _currentDimensionIdx >= 3 00c812a0 g_triggerDeathPlayers Entity_Player** begin of a function-local static std::vector in Entity_Player::TriggerDeath (guard DAT_00c8129c, end 00c812a4, cap 00c812a8): cleared, then filled with this and _twinPlayer, then scanned with HasCollectible/HasTrinket 00c812a4 g_triggerDeathPlayersEnd Entity_Player** _Mylast of the function-local static std::vector (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) 00c8297a g_luaClassKeyEntity char luabridge ClassInfo::getClassKey: Isaac::GetRoomEntities wraps each room entity in UserdataPtr and lua_rawgetp(L, REGISTRY, &DAT_00c8297a) for its metatable; static key is 00c8297b 00c82980 g_luaClassKeyVector char luabridge ClassInfo::getClassKey: functions creating luabridge::UserdataValue follow with lua_rawgetp(L, REGISTRY, &DAT_00c82980) to set the metatable 00c829c8 g_luaClassKeyEntityPlayer char luabridge ClassInfo::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) 00c82a07 g_luaClassKeyRoom char luabridge ClassInfo::getClassKey: FUN_008a15b0 beginClass("Room") does lua_rawsetp(REGISTRY, &DAT_00c82a08) (static), &DAT_00c82a07 (class), &DAT_00c82a06 (const) 00c82a13 g_luaClassKeyGame char luabridge ClassInfo::getClassKey static char: the class registration of "Game" (FUN_00893c70(...,"Game") -> FUN_008a0b60) does lua_rawsetp(L,REGISTRY,...) for const 00c82a14 / class 00c82a13 / static 00c82a12; getClass(&DAT_00c82a13) (FUN_0085c590) in Game method wrappers; metatable of pushed Game objects 00c829dd g_luaClassKeyEntityLaser char luabridge ClassInfo::getClassKey: LuaEngine::RegisterAPI calls FUN_008882c0(..,"EntityLaser") -> beginClass FUN_008a3720 which does lua_rawsetp(L,REGISTRY,...) for 00c829de (static) / 00c829dd (class) / 00c829dc (const); the method thunks do luabridge::Userdata::getClass(&DAT_00c829dd,0/1) 00c82a1e g_luaClassKeyGridEntity char luabridge ClassInfo::getClassKey: RegisterAPI FUN_0088a560(..,"GridEntity") -> FUN_008a30a0 lua_rawsetp for 00c82979 / 00c82a1e (class) / 00c82a1d; thunks FUN_00899bd0.. use Userdata::getClass(&DAT_00c82a1e,..) 00c829d7 g_luaClassKeyEntityNpc char luabridge ClassInfo::getClassKey: RegisterAPI FUN_00886a80(..,"EntityNPC") -> FUN_008a3be0 lua_rawsetp for 00c829d8 / 00c829d7 (class) / 00c829d6; getClass(&DAT_00c829d7,..) in the EntityNPC method thunks 00c8298f g_luaClassKeySprite char luabridge ClassInfo::getClassKey (Lua class "Sprite"): RegisterAPI FUN_008a71b0("Sprite",..) does lua_rawsetp for 00c82990 / 00c8298f (class) / 00c8298e; getClass(&DAT_00c8298f,..) in the Sprite thunks FUN_0089e530.. 00c82a0a g_luaClassKeyLevel char luabridge ClassInfo::getClassKey: RegisterAPI FUN_00891a10(..,"Level") -> FUN_008a13a0 lua_rawsetp for 00c82a0b / 00c82a0a (class) / 00c82a09; getClass(&DAT_00c82a0a,..) in the Level thunks FUN_008994f0.. 00c8299b g_luaClassKeyBitSet128 char luabridge ClassInfo::getClassKey: RegisterAPI FUN_00877100(..,"BitSet128") -> FUN_008a6970 lua_rawsetp for 00c8299c / 00c8299b (class) / 00c8299a; getClass(&DAT_00c8299b,1) in FUN_0089a770 etc. 00c829e6 g_luaClassKeyGridEntityDoor char luabridge ClassInfo::getClassKey: RegisterAPI FUN_0088b5e0(..,"GridEntityDoor") -> FUN_008a2e40 lua_rawsetp for 00c829e7 / 00c829e6 (class) / 00c829e5; getClass(&DAT_00c829e6,..) in FUN_00899b00, FUN_008b29e0 00c829c5 g_luaClassKeyEntityTear char luabridge ClassInfo::getClassKey: RegisterAPI FUN_0087fdb0(..,"EntityTear") -> FUN_008a4a20 lua_rawsetp for 00c829c6 / 00c829c5 (class) / 00c829c4; getClass(&DAT_00c829c5,1) in FUN_0089c6f0.. 00c829a7 g_luaClassKeyItem char luabridge ClassInfo::getClassKey (Lua class "Item", name string DAT_00b67800 = "Item"): RegisterAPI FUN_00878cb0(..,&DAT_00b67800) -> FUN_008a6130 lua_rawsetp for 00c829a8 / 00c829a7 (class) / 00c829a6; HUD::ShowItemText does getClass(&DAT_00c829a7,1) on its item argument 00c829d1 g_luaClassKeyEntityFamiliar char luabridge ClassInfo::getClassKey: RegisterAPI FUN_00885910(..,"EntityFamiliar") -> FUN_008a40a0 lua_rawsetp for 00c829d2 / 00c829d1 (class) / 00c829d0; LuaEngine::PreFamiliarCollision pushes it as the metatable key 00c71674 g_pickupIgnoreModifiers int counter, ++/-- around pickup spawns that must not be altered: FUN_005b19d0 is ++ if CL else --; Room::RestoreState and the challenge-0x2b shop spawn (Game::Spawn(5,100,..)) wrap their spawns in ++/--; Pickup_PickVariant, Entity_Pickup::Init/Morph only apply the collectible/pickup replacement rules when DAT_00c71674 == 0 (REPENTOGON calls it s_EntityPickup_IgnoreModifiers) 00c34ba0 g_tearFlagHoming BitSet128 .data BitSet128 {4,0,0,0} = bit 2 = TearFlags.TEAR_HOMING (enums.lua TEARFLAG(2)), never written; or'd/and'ed into tear flags in Entity_Player::GetTearHitParams, GetBombFlags, Entity_Bomb::Update, Entity_Familiar::FireProjectile, Entity_Knife::Update 00c34bb0 g_tearFlagSpectral BitSet128 .data BitSet128 {1,0,0,0} = bit 0 = TEAR_SPECTRAL (enums.lua TEARFLAG(0)), never written; used in Entity_Player::EvaluateItems, Entity_Tear::HandleCollision (passes through grid), GetBombFlags, update_shooting 00c34bc0 g_tearFlagExplosive BitSet128 .data BitSet128 {0x1000,0,0,0} = bit 12 = TEAR_EXPLOSIVE (Ipecac, enums.lua TEARFLAG(12)), never written; used in Entity_Knife::apply_hit_effects, Weapon::Fire, Entity_Laser::impact_tear_flag_effects, Entity_Player::GetTearHitParams, Entity_Bomb::HandleCollision 00c34bd0 g_tearFlagPoison BitSet128 .data BitSet128 {0x10,0,0,0} = bit 4 = TEAR_POISON (enums.lua TEARFLAG(4)), never written; used in Entity_Player::GetTearHitParams, Entity_Knife::apply_hit_effects, UsePill, GetBombFlags, EvaluateItems 00c34c50 g_tearFlagLudovico BitSet128 .data BitSet128 {0,0,0,0x80000000} = bit 127 = TEAR_LUDOVICO (enums.lua TEARFLAG(127)), never written; BitSet128::operator_and(&DAT_00c34c50) in Entity_Tear::HandleCollision / Interpolate, Entity_Knife::HandleCollision / apply_hit_effects 00c35d20 g_levelGenInvalidPos int[2] ? .data {-1,-1} never written (00c35d24 is its second int): LevelGenerator_Room::constructor stores both into this[10]/[11]; LevelGenerator::get_room_placement_offsets, try_resize_room, place_room compare a candidate (x,y) against (DAT_00c35d20, DAT_00c35d24) as the 'no position' sentinel 00c7f4bc g_connectionReleaseFn void* ? KAGE refcounted-handle release hook (same shape as g_lobbyReleaseFn: if (ctrl->vtbl[0xc]() && fn) fn(&handle)) for KAGE::Network::Multiplayer::Connection handles: FUN_00a2a460 resets a handle to a new ReferenceCount and calls it on the old one; users NetplayManager::send_message, Menu_OnlineLobby::Update, FUN_00a78a10; no writer in the dump 00c7e84c g_entitySaveStateReleaseFn void* ? refcounted-handle release hook for EntitySaveState: EntitySaveStateRef::Set allocates ReferenceCount and calls (*DAT_00c7e84c)() when the previous ref drops to zero; same in Room::on_leave, Entity_Pickup::Morph, Entity_Player::restore_save_state_part2; no writer in the dump 00c7e850 g_entitySaveStateExtraDataReleaseFn void* ? release hook for EntitySaveState::ExtraData handles: FUN_00827f70 allocates ReferenceCount and calls (*DAT_00c7e850)() on the old ref; Entity_Player::StoreGameState/RestoreGameState, Room::on_leave, invoke_pending_callbacks; no writer in the dump 00c78d74 g_gamepadButtonUpCallback void* libstem gamepad Gamepad_buttonUpCallback: in the polling loop of 00a6de60 (dump name KAGE_Filesys_FileManager::LoadArchiveFile is wrong; it is the gamepad process-events code) when a button goes from down to up: if (DAT_00c78d74) DAT_00c78d74(device, buttonIndex, timestamp, DAT_00c78d80 context); axis changes call 00c78d70 (device, axis, value, lastValue, timestamp, ctx) 00c78d78 g_gamepadButtonDownCallback void* libstem gamepad Gamepad_buttonDownCallback: same loop in 00a6de60, called when a button goes up->down as (*DAT_00c78d78)(device, buttonIndex, timestamp, DAT_00c78d84 context) 00c79bec g_gamepadDevices void** ? begin of a std::vector (end 00c79bf0): FUN_00a6da10 calls the device-remove callback 00c78d7c(devices[i], ctx 00c78d88), frees the device and memmoves the tail down (end -= 4); FUN_00a6ef50 and 00a6de60 iterate (end-begin)>>2 devices matching device->[0] id 00c74bbc g_glfwEglDisplay void* GLFW _glfw.egl.display (inside _glfw 00c73680, +0x153c): first argument of every eglGetConfigAttrib(display, config, 0x3024 EGL_RED_SIZE / 0x3033 EGL_SURFACE_TYPE / 0x3040 EGL_RENDERABLE_TYPE..) in glfw_chooseEGLConfig and of eglGetConfigs/eglCreateContext in _glfwCreateContextEGL 00c74c08 g_glfwEglHandle void* GLFW _glfw.egl.handle (inside _glfw, +0x1588): FUN_00a82d40 (_glfwInitEGL) loops DAT_00c74c08 = LoadLibraryA(name) over the EGL dll names, then GetProcAddress(DAT_00c74c08,"eglGetConfigAttrib"), "eglGetConfigs", ... 00c73684 g_glfwAllocate void* GLFW _glfw.allocator.allocate (inside _glfw at +4; deallocate 00c7368c, user 00c73690 already named): every allocation is (*DAT_00c73684)(size, g_glfwAllocatorUser) 00c73ca8 g_glfwMonitorCount int GLFW _glfw.monitorCount (inside _glfw, +0x628; _glfw.monitors at 00c73ca4): _glfwInputMonitor (asserts from GLFW_3.4/src/monitor.c) does DAT_00c73ca8++ on GLFW_CONNECTED (0x40001) and grows the 00c73ca4 array; terminate frees monitors[0..count) then sets both to 0 00c7162c __isa_available int MSVC CRT __isa_available: written by __isa_available_init (CPUID); memcpy/memset-style paths test 'if (1 < DAT_00c7162c)' (SSE4.2/AVX) before vector loops (AnmCache::LogMemoryUsage, load_persistent_game_data_buffer) 00c37974 g_memoryManager_oomHandlers void* ? std::list head (node 0x10: next, prev, fn, ctx) member +0x10 of the static KAGE::Memory::Manager at 00c37964 (static init FUN_00406740 stores KAGE::Memory::Manager::vftable there and builds this list); FUN_00a23200(code) calls every node's fn(code, ctx), and it is called as FUN_00a23200(0x7fcb9dd6) whenever malloc returns NULL 00c3796c g_memoryManager_heaps void* ? std::map head (node 0x18: key +0x10, Heap* +0x14) member +8 of the static KAGE::Memory::Manager at 00c37964 (built in FUN_00406740): FUN_00a23160 does lower_bound(heapId) and KAGE_LogMessage(0x10,"Invalid heap identifier specified") when it hits the head, else calls the heap's vtbl+8 00c379c4 g_glContextObjects void* ? std::map head (node 0x18, value object* at +0x14) of KAGE graphics static state built in static init FUN_00402160 next to the shader stack (00c379cc deque, g_shaderStackSize); on GL context reset (_glfw_context_reset, FUN_00a13220) every value's vtbl+0x14 is called, the tree erased and its size 00c379c8 zeroed 00c78ee8 g_textureCacheMap void* _Myhead of a static std::map (node 0x1c, size 00c78eec) built by static init FUN_00401140 next to g_anmCacheMap (atexit FUN_00b15200); TextureCache::Has / Release / Purge look paths up in it (found = node != DAT_00c78ee8), retrying with each g_mountPrefixes prefix 00c798bc g_mountPrefixesEnd char** _Mylast of the static std::vector g_mountPrefixes (begin 00c798b8, cap 00c798c0): TextureCache::Has/Release, AnmCache::AddRef/RemoveRef/Preload loop 'puVar = g_mountPrefixes; ... while (puVar != DAT_00c798bc)' and refill it when (end-begin) < 4 00c78efc g_beamRendererPoints void* ? BeamRenderer static state at 00c78ef0 (BeamRenderer::Begin stores anm2 00c78ef0, layer 00c78ef4, flags 00c78ef8 and resets end = begin): begin of its std::vector (0x44-byte points, end 00c78f00, cap 00c78f04); BeamRenderer::End walks (end-begin)/0x44 points 00c78f00 g_beamRendererPointsEnd void* ? _Mylast of the BeamRenderer point vector (begin 00c78efc): BeamRenderer::Begin sets DAT_00c78f00 = DAT_00c78efc, BeamRenderer::Add writes a 0x11-float point at it and advances by 0x44 (reallocating when == cap 00c78f04) 00c78dc0 g_colorStackSize uint32_t std::deque _Mysize of the render color-override stack (_Map 00c78db4, _Mapsize 00c78db8, _Myoff 00c78dbc): render_color_stack_push grows the map and does DAT_00c78dc0++; Entity_Player::Render / Entity_Familiar::Render pop with 'if (--DAT_00c78dc0 == 0) DAT_00c78dbc = 0' and only apply their own color when it is 0 (REPENTOGON g_ColorOverrideStack) 00c78da4 g_staticSprites ANM2** ? begin of a static std::vector (end 00c78da8, cap 00c78dac): code that lazily creates a shared sprite pushes it (Entity_Knife::Init: operator_new(0x114) + ANM2::constructor into DAT_00c72214, then push_back), AnmCache::~AnmCache ANM2::Reset()s and frees every entry then sets end = begin 00c78d9c g_theoraVideoManager void* TheoraVideoManager* (no struct): FUN_00a61f20 (KAGE startup) does operator_new(0x30) + TheoraVideoManager::TheoraVideoManager() into it; shutdown FUN_00a615e0 calls its vtbl[0](1) (deleting dtor) and zeroes it; FUN_00a616c0 reads DAT_00c78d9c + 0x28 00c69e00 _mi_stats_main void* mimalloc _mi_stats_main (mi_stats_t): passed as the stats argument to every OS-level mimalloc call: FUN_00ae8110/FUN_00ae8140 (_mi_os_alloc / _mi_os_alloc_aligned, page rounding with g_systemPageSize) forward &DAT_00c69e00 to FUN_00ae8c00, whose failure message is "unable to allocate OS memory (%zu bytes, error code: 0x%x, ...)" 00c69d8c g_mimallocOutLen uint32_t mimalloc options.c out_len of the delayed output buffer out_buf[32KB] at 00c61d88: FUN_00ae7e50 (mi_out_buf) atomically adds strlen(msg) and memcpy's into &DAT_00c61d88 + DAT_00c69d8c while DAT_00c69d8c < 0x8000 (MI_MAX_DELAY_OUTPUT); FUN_00ae7ed0 flushes it 00c798c4 g_seedComboBans void* ? begin of a std::vector> with one 8-byte set per seed effect (end 00c798c8, cap 00c798cc): Seeds::InitSeedInfo resizes it to 0x50 entries and fills the sets; Seeds::IsSeedComboBanned(a,b) returns set[a].find(b) != end; Seeds::CanAddSeedEffect, RemoveBlockingSeedEffects read it 00c79884 g_modCharacters int* ? begin of a std::vector of 8-byte {playerType, taintedPlayerType} pairs for modded characters (end 00c79888, cap 00c7988c): Menu_Character::Reset clears it and pushes {cfg[0], cfg[0x49]} for every EntityConfig player (g_manager+0x2a678, 0x148 each) past the 0x29 vanilla ones that is not hidden; FUN_00949b90 returns the vanilla table for index < 0x12 else DAT_00c79884[(index-0x12)*2 + tainted]; _numCharacters += (end-begin)>>3 (REPENTOGON g_ModCharacterMap) 00c94178 g_characterPortraitOrder void* ? begin of a function-local static std::vector of 16-byte {int charIndex, float x, float y, float scale} (guard 00c94174, end 00c9417c, cap 00c94180) in Menu_Character::render_portraits: refilled each call from the wheel positions this+0xc38 / this+0xc44, then sorted by +8 (y) via FUN_00946d50 so portraits draw back-to-front 00c7987c g_onlineVoteMap void* ? std::map _Myhead (node 0x20: key +0x10, value +0x18; size 00c79880) of online players: Game::Update in game over counts entries whose +0x18 is 0 and sets g_manager+0x4aba0 when none; Game::Render prints sprintf("%d/%d", DAT_00c79880, lobby member count (g_manager+0x4b278 vector, 0x14 each)); online_session_reset / FUN_0091c320 erase it 00c79a7c g_multiplayerCommandThreadFlags uint32_t member +0x2c of the static KAGE::Network::MultiplayerManager at 00c79a50 (zeroed in its ctor next to the Lobby handle 00c79a70): FUN_00a5f510 logs "Command thread is already initialized" if bit 0 set, starts the KAGE::Thread at 00c79aa8 with FUN_00a9e950 and &DAT_00c79a7c, then sets bit 0; FUN_00a5f630 sets bit 1 (stop), joins the thread, clears both 00c79bd8 g_logFile void* KAGE::Filesys::LoggerFile* (no struct): FUN_00a5f3a0 deletes the old one (vtbl[0](1)), allocates 0x10 bytes with KAGE::Filesys::LoggerFile::vftable and fopen(path,"wb") at +0xc, stores it here and sets the level mask _DAT_00c79bdc = 0xff; KAGE_LogMessage writes each formatted line through its vtbl+0x1c when (mask & level) 00c7de54 g_deflateCompressor void* ? lazily created 0x14-byte context {buffer 0x810, tdefl_compressor* (malloc 0x4df44), busy byte}: FUN_0091acc0 / FUN_00918870 (netplay message packing) create it if null and call FUN_00a89ba0 (reset) + FUN_00a89de0 (miniz tdefl_compress: calls tdefl_compress_normal); FUN_00a614d0 frees it 00c5ac00 g_eosLocalUserId void* EOS_ProductUserId of the logged-in user: the EOS_Connect login callback FUN_00a60590 (logs "Failed to connect to EOS: %s") and create-user callback FUN_00a60690 store param_1[2] (LocalUserId of EOS_Connect_LoginCallbackInfo); KAGE::System::UserProfile::is_local_user compares profile+0x20 -> +0x10 with it; passed to EOS lobby/P2P calls; zeroed on shutdown FUN_00a71770 00c5aa78 g_userProfileLock void* CRITICAL_SECTION* of a static KAGE mutex object (vptr 00c5aa70, init flag bit 0 in 00c5aa74): FUN_00a617e0 does operator_new(0x1c) + InitializeCriticalSection and sets the flag; UserProfile::find_or_create does EnterCriticalSection (logging "Trying to lock mutex that has not been initialized" if not), waits on the busy byte after it, LeaveCriticalSection; shutdown DeleteCriticalSection + 0 00c72e28 g_modsDirectory char[1024] FontKerningPair::SetupSaveDirectories: sprintf_s(&DAT_00c72e28,0x400,"%s%s",cwd + "/","mods/"), CreateDirectoryA, GetFileAttributesA check ("Modding data path %s is not a writable directory!"); ModManager::ListMods enumerates it, LoadModContent / UpdateWorkshopMods / Menu_Mods::Update / lua_searcher_resources_scripts build mod paths from it (REPENTOGON g_ModsDirectory) 00c79110 g_framebufferWidth int render-surface width in pixels (height at 00c79114): IsaacStartup sets 0x1e0/0x10e (480x270); the window-resize handler FUN_00954150 sets it from GraphicsWindow::get_framebuffer_width() next to g_screenWidth/g_screenPointScale; Game::create_render_surfaces / init_room_render_surfaces / Manager::create_render_surfaces pass (DAT_00c79110, DAT_00c79114) to KAGE_Graphics::create_render_target("Bloom Surface", "Old Room Surface", ...) 00c943cc g_weaponTearsFiredLasersEnd Entity_Laser** ? _Mylast of a function-local static std::vector in Weapon_Tears::Fire (guard 00c943c4, begin 00c943c8, cap 00c943d0): reset to begin, then each Weapon::fire_laser result for the extra directions is pushed; afterwards every entry gets +0x4e4 = 0 and its vtbl+0xc called 00c7f770 g_npcTrailPointsEnd void* ? _Mylast of a function-local static std::vector of 12-byte {Vector, float} points (guard 00c7f768, begin 00c7f76c, cap 00c7f774) in Entity_NPC::render_overlay: built from the npc's deque at +0xc1c (start +0xc24, count +0xc28) projected to screen and smoothed 0.3/0.4/0.3 (Vector buffer 00c7f75c), then drawn 00c7f84c g_beastTrailPoints void* ? begin of a function-local static std::vector of 16-byte {Vector, float, float} points (guard 00c7f848, end 00c7f850, cap 00c7f854) in FUN_00597d00, the render helper called from Entity_NPC::Render case 0x3b7 (ENTITY_BEAST, via FUN_00598260): same projected/smoothed trail of the npc deque at +0xc1c as g_npcTrailPointsEnd, then fed to BeamRenderer (00c78ef0 = npc+0x48) 00c7f850 g_beastTrailPointsEnd void* ? _Mylast of the same static vector (begin 00c7f84c, cap 00c7f854) in FUN_00597d00 (ENTITY_BEAST render): reset to begin each call, push_back at it (FUN_00598290 reallocates when == cap), count = (end-begin)>>4 00b1bff0 s_id char[3] string literal "id" (find.sh val): xml attribute name in Game::load_bossoverlays_xml, BossPool::load_xml, EntityConfig::LoadEntities 00b1de50 s_Spawn char[6] string literal "Spawn": anim/event name, ANM2::Play(&npc->_sprite,"Spawn",0) in NpcAI::ENTITY_GATE, IsEventTriggered(..,"Spawn") in ENTITY_DINGLE, ENTITY_RAG_MAN 00b70920 s_Get char[4] string literal "Get": luabridge method name, FUN_008773e0("Get", BitSet128::Get) in LuaEngine::RegisterAPI and lua_pushstring(L,"Get") in the property registration helpers 00b1d2cc s_Attack1 char[8] string literal "Attack1": anim name, ANM2::Play / SetAnimation(&npc->_sprite,"Attack1",..) in NpcAI::ENTITY_BABY_PLUM, ENTITY_FAMINE, ENTITY_PESTILENCE 00b5fed4 s_Head char[5] string literal "Head": overlay anim name, ANM2::SetOverlayAnimation(&npc->_sprite,"Head",1) in NpcAI::ENTITY_HUSH_GAPER, ENTITY_ROTTEN_GAPER, ENTITY_TWITCHY 00b1c13c s_name char[5] string literal "name": xml attribute name in BossPool::load_xml, EntityConfig::LoadEntities, EntityConfig::load_players_xml 00b1d428 s_Idle2 char[6] string literal "Idle2": anim name, ANM2::Play(&npc->_sprite,"Idle2",0) in NpcAI::ENTITY_BUMBINO, ENTITY_COLOSTOMIA, Entity_Familiar::ai_wisp 00b1bb84 s__d char[3] string literal "%d": sprintf format in Entity_Text::Update, Game::Render, Room::render_debug_grid_values 00b6d1ac s_Size char[5] string literal "Size": luabridge method/property name, FUN_0087ce80("Size", EntityList::Size) in LuaEngine::RegisterAPI, lua_pushstring(L,"Size") 00b1de04 s_Fly char[4] string literal "Fly": anim/event name, ANM2::WasEventTriggered(..,"Fly") in NpcAI::ENTITY_ADVERSARY, SetAnimation(..,"Fly",1) in ENTITY_FLY, ENTITY_HUSH_FLY 00b1d2ec s_Attack2 char[8] string literal "Attack2": anim name, ANM2::Play(&npc->_sprite,"Attack2",0) in NpcAI::ENTITY_BABY_PLUM, ENTITY_PESTILENCE, ENTITY_WAR