# 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