|
Wing Commander II
Reconstructed Win32 source (1996)
|
Memory stack frames and packet handles. More...
#include "game.h"Go to the source code of this file.
Functions | |
| void | ClearMemoryHeaps (void) |
| unsigned short | IsSoundHardwarePresent (short device) |
| void | MessagePumpHook (int mode) |
| void * | PushMemoryStackFrame (void *memory, int offset) |
| int | IsPushedPacketHandle (void *handle) |
| void * | MapPacketHandleToBlock (void *handle) |
| void * | AllocateTaggedMemory (unsigned int size, short flags) |
| void | ReleasePacketHandle (void *handle) |
| unsigned int | GetAvailableFarMemoryByType (short memoryType) |
| unsigned int | GetLargestFreeMemoryBlockByType (short memoryType) |
Variables | |
| void * | g_9_apPacketHandlesTable [0x1000] |
| int | g_aiPacketHandleOffsets [0x1000] |
| int | g_nPacketHandleCount |
Memory stack frames and packet handles.
Definition in file memapi.c.
| void * AllocateTaggedMemory | ( | unsigned int | size, |
| short | flags ) |
Definition at line 92 of file memapi.c.
References AllocateGuardedMemory(), AllocateTaggedMemory(), g_abTaggedAllocationPrefix, and PushMemoryStackFrame().
Referenced by AllocateApplicationScratchBuffer(), AllocateDefaultMemory(), AllocateNearMemory(), AllocateTaggedMemory(), AllocateViewport(), AllocateZeroedRecords(), CollectActivePaletteIndices(), DrawNavLocationReadout(), FadeViewportPaletteToColour(), init_intelligence_data(), InitializeCampaignChalkboardScreen(), InitializeCockpitResources(), InitializeInputManagerMemory(), InitializeMusicResources(), InitializeNearHeap(), InitializeSoundBlaster(), LoadPacketAllocated(), LoadSpeechPacketIntoBuffer(), LoadWholeDataFile(), PacketLoad(), PanToScreen(), PrepareShapeRLEData(), RunGameApplication(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), ShowModalTextPanel(), StepPaletteTransition(), and UpdateShipTurretGuns().
Definition at line 11 of file memapi.c.
References ClearMemoryHeaps(), and TimerResetHook().
Referenced by ClearMemoryHeaps(), and DosMemmove().
| unsigned int GetAvailableFarMemoryByType | ( | short | memoryType | ) |
Definition at line 132 of file memapi.c.
References GetAvailableFarMemory(), GetAvailableFarMemoryByType(), and void().
Referenced by GetAvailableFarMemoryByType(), LoadOriginFxDrivers(), ReportPacketLoadError(), and UpdateShipTurretGuns().
| unsigned int GetLargestFreeMemoryBlockByType | ( | short | memoryType | ) |
Definition at line 139 of file memapi.c.
References GetLargestFreeMemoryBlock(), GetLargestFreeMemoryBlockByType(), and void().
Referenced by GetLargestFreeMemoryBlockByType(), LoadOriginFxDrivers(), LogMemoryUsage(), ReportPacketLoadError(), SetFleetOverviewView(), ShowMemoryStatusDebug(), and UpdateShipTurretGuns().
| int IsPushedPacketHandle | ( | void * | handle | ) |
Definition at line 53 of file memapi.c.
References g_9_apPacketHandlesTable, g_aiPacketHandleOffsets, g_nPacketHandleCount, and IsPushedPacketHandle().
Referenced by IsPushedPacketHandle(), PacketLoad(), and UpdateShipTurretGuns().
| unsigned short IsSoundHardwarePresent | ( | short | device | ) |
Definition at line 17 of file memapi.c.
References EnableHighMemoryResources(), and IsSoundHardwarePresent().
Referenced by IsSoundHardwarePresent(), LoadOriginFxDrivers(), and UpdateShipTurretGuns().
Definition at line 66 of file memapi.c.
References g_9_apPacketHandlesTable, g_aiPacketHandleOffsets, g_nPacketHandleCount, and MapPacketHandleToBlock().
Referenced by MapPacketHandleToBlock(), ReleasePacketHandle(), and UpdateShipTurretGuns().
| void MessagePumpHook | ( | int | mode | ) |
Definition at line 24 of file memapi.c.
References MessagePumpHook(), and TimerStopHook().
Referenced by LoadOriginFxDrivers(), LogMemoryUsage(), MessagePumpHook(), and UpdateShipTurretGuns().
Definition at line 30 of file memapi.c.
References exit_squadron(), g_9_apPacketHandlesTable, g_aiPacketHandleOffsets, g_nPacketHandleCount, and PushMemoryStackFrame().
Referenced by AllocateTaggedMemory(), PushMemoryStackFrame(), and UpdateShipTurretGuns().
Definition at line 108 of file memapi.c.
References FreeGuardedAllocation(), g_apPacketReferenceGroups, MapPacketHandleToBlock(), and ReleasePacketHandle().
Referenced by AllocateViewport(), BriefingMap_DisplayMap(), CollectActivePaletteIndices(), FadeViewportPaletteToColour(), free_3Space(), free_cockpit(), free_ship(), free_viewport(), FreeDefaultMemory(), FreePacketAndClear(), InflightComputer(), initialize_cockpit(), InitializeCampaignChalkboardScreen(), InitializeSoundBlaster(), LoadMissionData(), PanToScreen(), PrepareShapeRLEData(), ReleaseApplicationScratchBuffer(), ReleaseCutsceneFileResource(), ReleaseCutsceneFileResourceExceptPacket(), ReleaseCutsceneObjectResource(), ReleaseCutsceneTextResource(), ReleaseModalTextPanel(), ReleasePacketHandle(), ReleasePacketSlot(), ReleaseSpaceflightResources(), ReleaseTextFont(), RunCampaignGameLoop(), RunCampaignScript(), RunPilotDatabaseMenu(), RunPilotSaveLoadMenu(), RunTitleScreen(), ShowModalTextPanel(), ShutdownEventManager(), StepPaletteTransition(), Title_Sequence(), and UpdateShipTurretGuns().
| void* g_9_apPacketHandlesTable[0x1000] |
Definition at line 147 of file memapi.c.
Referenced by IsPushedPacketHandle(), MapPacketHandleToBlock(), and PushMemoryStackFrame().
| int g_aiPacketHandleOffsets[0x1000] |
Definition at line 148 of file memapi.c.
Referenced by IsPushedPacketHandle(), MapPacketHandleToBlock(), and PushMemoryStackFrame().
| int g_nPacketHandleCount |
Definition at line 149 of file memapi.c.
Referenced by IsPushedPacketHandle(), MapPacketHandleToBlock(), and PushMemoryStackFrame().