|
Wing Commander
Reconstructed Win32 source (1996)
|
16-bit DOS C string and memory shims, and the event manager's set-up entries. More...
#include "wc1.h"Go to the source code of this file.
Functions | |
| unsigned int __stdcall | DosFarPtrToNear (void *v) |
| void *__stdcall | DosNearPtrToFar (unsigned int v) |
| char *__stdcall | DosStrrchr (char *s, short c) |
| char *__stdcall | DosStrchr (const char *s, short c) |
| char *__stdcall | DosStrcpy (char *dst, const char *src) |
| char *__stdcall | CopyFarString (char *destination, const char *source) |
| short __stdcall | DosStrlen (const char *s) |
| void __stdcall | DosMemcpy (void *dst, const void *src, size_t n) |
| void __stdcall | DosMemset (void *destination, unsigned int count, short value) |
| unsigned short | GetEventManagerStatus (void) |
| void __stdcall | RegisterEventManagerShutdown (void(*fn)(void)) |
| short __stdcall | InitializeEventManager (short period, unsigned short(*initialize)(void), void *configuration) |
| void | ShutdownEventManager (void) |
| unsigned short __stdcall | ConfigureEventManagerPointer (struct Shape *shape, short frame) |
| void | ReleaseEventManagerPointerHook (void) |
| void __stdcall | EventManagerHook (void(*callback)(void)) |
| void __stdcall | SetEventManagerPump (void(*pump)(void)) |
| void | EventManagerControlHook (void) |
Variables | |
| signed char | cScreenViewMode |
| const ScreenViewportGeometry * | pScreenViewGeometry |
| int | anSortedObjects [SPACE_OBJECT_COUNT] |
| short | nPacketDecompressInputPositionValue |
| void * | pPktDecompInput |
| unsigned short | wCurrentInputModifiers |
| MouseCursorState | stMouseCursorState |
| void(*) | pCurrentEventManagerPump (void) |
| int | nPacketDecompressResult |
| short | bCurrentRunningFromHardDiskFlag |
16-bit DOS C string and memory shims, and the event manager's set-up entries.
Address range 435410-4355ef. The shims are all __stdcall with short-width arguments, each forwarding to one CRT routine.
Definition in file strdos.c.
| unsigned short __stdcall ConfigureEventManagerPointer | ( | struct Shape * | shape, |
| short | frame ) |
Definition at line 107 of file strdos.c.
References ConfigureEventManagerPointer().
Referenced by ConfigureEventManagerPointer(), DosMemcpy(), and EMStartUp().
| char *__stdcall CopyFarString | ( | char * | destination, |
| const char * | source ) |
Definition at line 55 of file strdos.c.
References CopyFarString().
Referenced by CopyFarString(), and PlaySfxWaveFileByNumber().
| unsigned int __stdcall DosFarPtrToNear | ( | void * | v | ) |
Definition at line 25 of file strdos.c.
References DosFarPtrToNear().
Referenced by DosFarPtrToNear(), FreeNearHeapBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), and PlaySfxWaveFileByNumber().
Definition at line 67 of file strdos.c.
References DosMemcpy().
Definition at line 73 of file strdos.c.
References DosMemset().
Referenced by DosMemcpy(), and DosMemset().
| void *__stdcall DosNearPtrToFar | ( | unsigned int | v | ) |
Definition at line 31 of file strdos.c.
References DosNearPtrToFar().
Referenced by AllocateNearHeapBlockByFlags(), AllocateNearHeapBlockFromEnd(), DosNearPtrToFar(), FreeNearHeapBlock(), GetFreeNearHeapBytes(), GetLargestFreeNearHeapBlock(), GetNearHeapBlockSize(), InitializeNearHeap(), MergeAdjacentNearHeapBlocks(), PlaySfxWaveFileByNumber(), PurgeNearHeapBlocks(), ReleaseNearHeapBlock(), and ShutdownNearHeap().
| char *__stdcall DosStrchr | ( | const char * | s, |
| short | c ) |
Definition at line 43 of file strdos.c.
References DosStrchr().
Referenced by AddPCName(), DosStrcat(), DosStrchr(), ExpandCommMessageTokens(), FillGraphicSuffix(), PlaySfxWaveFileByNumber(), and SaveGameWithNamePrompt().
| char *__stdcall DosStrcpy | ( | char * | dst, |
| const char * | src ) |
Definition at line 49 of file strdos.c.
References DosStrcpy().
Referenced by DosStrcat(), DosStrcpy(), DrawRoomMenuLabel(), get_pilot_talk(), LoadAnswerPromptAndResponse(), PlaySfxWaveFileByNumber(), print_message_text(), PromptForPilotField(), ReadRequiredPilotField(), ReadTextInput(), SaveGameWithNamePrompt(), ShowCentredPrompt(), ShowChalkBoard(), ShowComponentHitHudMessage(), and ShowOnScreenMessage().
| short __stdcall DosStrlen | ( | const char * | s | ) |
Definition at line 61 of file strdos.c.
References DosStrlen().
Referenced by AddPCName(), DosStrlen(), EraseLastTextInputCharacter(), ExpandCommMessageTokens(), MeasureMessageWidth(), PlaySfxWaveFileByNumber(), and ReadTextInput().
| char *__stdcall DosStrrchr | ( | char * | s, |
| short | c ) |
Definition at line 37 of file strdos.c.
References DosStrrchr().
Referenced by DosStrrchr(), and PlaySfxWaveFileByNumber().
Definition at line 134 of file strdos.c.
References EventManagerControlHook().
Referenced by DosMemcpy(), and EventManagerControlHook().
Definition at line 120 of file strdos.c.
References EventManagerHook(), and void().
Referenced by BarracksScreen(), DosMemcpy(), EventManagerHook(), InflightComputer(), InitializeRoomViewports(), RecRoom(), SelectTrainSimMission(), and Title_Sequence().
| unsigned short GetEventManagerStatus | ( | void | ) |
Definition at line 79 of file strdos.c.
References GetEventManagerStatus().
Referenced by DosMemcpy(), GetEventManagerStatus(), and LoadOriginFxDrivers().
| short __stdcall InitializeEventManager | ( | short | period, |
| unsigned short(* | initialize )(void), | ||
| void * | configuration ) |
Definition at line 90 of file strdos.c.
References InitializeEventManager(), and nEventManagerActive.
Referenced by DosMemcpy(), EMStartUp(), and InitializeEventManager().
Definition at line 85 of file strdos.c.
References RegisterEventManagerShutdown().
Referenced by DosMemcpy(), EMStartUp(), and RegisterEventManagerShutdown().
Definition at line 115 of file strdos.c.
References ReleaseEventManagerPointerHook().
Referenced by ReleaseEventManagerPointerHook(), and SuspendMouseCursor().
Definition at line 126 of file strdos.c.
References pCurrentEventManagerPump, and SetEventManagerPump().
Referenced by DosMemcpy(), EMStartUp(), InflightComputer(), InitializeRoomViewports(), landing(), LoadOriginFxDrivers(), RecRoom(), RunSpaceFlight(), RunTrainSim(), SceneDirector(), SelectTrainSimMission(), SetEventManagerPump(), ShowTheEndScreen(), ShowTrainSimHighScores(), Title_Sequence(), and UpdateTrainSimHighScores().
Definition at line 101 of file strdos.c.
References nEventManagerActive, and ShutdownEventManager().
Referenced by BarracksScreen(), CloseCommChoiceMenu(), DosMemcpy(), EMShutDown(), FatalErrorAndExit(), and ShutdownEventManager().
| int anSortedObjects[SPACE_OBJECT_COUNT] |
Definition at line 15 of file strdos.c.
Referenced by draw_sorted_objects_to_buffer(), and sort_object_depth().
| short bCurrentRunningFromHardDiskFlag |
Definition at line 22 of file strdos.c.
Referenced by main(), and OpenDiskDataFile().
| signed char cScreenViewMode |
Definition at line 13 of file strdos.c.
Referenced by dump_buffer_to_screen(), HandleSpaceFlightControls(), InflightComputer(), init_3Space_objects(), initialize_cockpit(), RunSpaceFlight(), and set_up_screen_viewport().
| short nPacketDecompressInputPositionValue |
Definition at line 16 of file strdos.c.
Referenced by DecompressPacketSection().
| int nPacketDecompressResult |
Definition at line 21 of file strdos.c.
Referenced by DecompressPacketSection().
Definition at line 20 of file strdos.c.
Referenced by PumpWindowMessages(), SetEventManagerPump(), and WinMain().
| void* pPktDecompInput |
Definition at line 17 of file strdos.c.
Referenced by DecompressPacketSection().
| const ScreenViewportGeometry* pScreenViewGeometry |
Definition at line 14 of file strdos.c.
Referenced by dump_buffer_to_screen(), and set_up_screen_viewport().
| MouseCursorState stMouseCursorState |
Definition at line 19 of file strdos.c.
Referenced by ApplyPackedMousePosition(), BarracksScreen(), CaptureMouseCursorBackground(), DIBslamReal(), DrawMouseCursor(), DrawMouseCursorIntoViewport(), EMStartUp(), GetMouseCursorPosition(), GetNextInputEvent(), InflightComputer(), InitializeEventManagerResources(), MoveMenuPointerFromKeyboard(), overlay_head_up_display(), player_input(), PollMenuInputDevices(), QueueInputEventAtCursor(), RecRoom(), ResetMouseCursorFrame(), RestoreMouseCursorBackground(), RestoreTransientCockpitGraphics(), RunSpaceFlight(), SelectTrainSimMission(), SetMouseCursorShape(), SetMouseHomePosition(), ThrottleFrameAndDrawFps(), Title_Sequence(), UpdateRoomMenuCursor(), UpdateTitleMenuCursor(), UpdateTrainSimMenuCursor(), and WarpMouseTo().
| unsigned short wCurrentInputModifiers |
Definition at line 18 of file strdos.c.
Referenced by player_input().