Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
docs: update signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Nov 16, 2023
1 parent d6f5c05 commit 1b6dd20
Show file tree
Hide file tree
Showing 6 changed files with 299 additions and 287 deletions.
292 changes: 146 additions & 146 deletions docs/progress.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
152 changes: 79 additions & 73 deletions docs/progress.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/game/text.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

void __cdecl Text_Init(void)
{
DisplayModeInfo(0);
Overlay_DisplayModeInfo(0);
for (int i = 0; i < TEXT_MAX_STRINGS; i++) {
g_TextstringTable[i].flags.all = 0;
}
Expand Down
134 changes: 67 additions & 67 deletions src/global/funcs.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,18 @@
#define InitialiseHair ((void __cdecl (*)(void))0x00420EA0)
#define HairControl ((void __cdecl (*)(int32_t in_cutscene))0x00420F20)
#define DrawHair ((void __cdecl (*)(void))0x00421920)
#define FlashIt ((int32_t __cdecl (*)(void))0x004219A0)
#define DrawAssaultTimer ((void __cdecl (*)(void))0x004219D0)
#define DrawGameInfo ((void __cdecl (*)(int32_t timed))0x00421B20)
#define DrawHealthBar ((void __cdecl (*)(int32_t flash_state))0x00421B70)
#define DrawAirBar ((void __cdecl (*)(int32_t flash_state))0x00421C20)
#define MakeAmmoString ((void __cdecl (*)(char *string))0x00421CC0)
#define DrawAmmoInfo ((void __cdecl (*)(void))0x00421CF0)
#define InitialisePickUpDisplay ((void __cdecl (*)(void))0x00421E40)
#define DrawPickups ((void __cdecl (*)(int32_t timed))0x00421E60)
#define AddDisplayPickup ((void __cdecl (*)(int16_t obj_num))0x00421F60)
#define DisplayModeInfo ((void __cdecl (*)(char* string))0x00421FD0)
#define DrawModeInfo ((void __cdecl (*)(void))0x00422050)
#define Overlay_FlashCounter ((int32_t __cdecl (*)(void))0x004219A0)
#define Overlay_DrawAssaultTimer ((void __cdecl (*)(void))0x004219D0)
#define Overlay_DrawGameInfo ((void __cdecl (*)(int32_t timed))0x00421B20)
#define Overlay_DrawHealthBar ((void __cdecl (*)(int32_t flash_state))0x00421B70)
#define Overlay_DrawAirBar ((void __cdecl (*)(int32_t flash_state))0x00421C20)
#define Overlay_MakeAmmoString ((void __cdecl (*)(char *string))0x00421CC0)
#define Overlay_DrawAmmoInfo ((void __cdecl (*)(void))0x00421CF0)
#define Overlay_InitialisePickUpDisplay ((void __cdecl (*)(void))0x00421E40)
#define Overlay_DrawPickups ((void __cdecl (*)(int32_t timed))0x00421E60)
#define Overlay_AddDisplayPickup ((void __cdecl (*)(int16_t obj_num))0x00421F60)
#define Overlay_DisplayModeInfo ((void __cdecl (*)(char* string))0x00421FD0)
#define Overlay_DrawModeInfo ((void __cdecl (*)(void))0x00422050)
#define Display_Inventory ((int32_t __cdecl (*)(int32_t inventory_mode))0x00422080)
#define Construct_Inventory ((void __cdecl (*)(void))0x00423310)
#define SelectMeshes ((void __cdecl (*)(struct INVENTORY_ITEM *inv_item))0x00423470)
Expand Down Expand Up @@ -605,22 +605,22 @@
#define GetZBufferDepth ((DWORD __cdecl (*)(void))0x004488F0)
#define CreateRenderBuffer ((void __cdecl (*)(void))0x00448920)
#define CreatePictureBuffer ((void __cdecl (*)(void))0x004489D0)
#define ClearBuffers ((void __cdecl (*)(DWORD flags, DWORD fillColor))0x00448A40)
#define ClearBuffers ((void __cdecl (*)(DWORD flags, DWORD fill_color))0x00448A40)
#define RestoreLostBuffers ((void __cdecl (*)(void))0x00448BF0)
#define UpdateFrame ((void __cdecl (*)(bool needRunMessageLoop, LPRECT rect))0x00448D30)
#define UpdateFrame ((void __cdecl (*)(bool need_run_message_loop, LPRECT rect))0x00448D30)
#define WaitPrimaryBufferFlip ((void __cdecl (*)(void))0x00448E00)
#define RenderInit ((bool __cdecl (*)(void))0x00448E40)
#define RenderStart ((void __cdecl (*)(bool isReset))0x00448E50)
#define RenderFinish ((void __cdecl (*)(bool needToClearTextures))0x00449200)
#define ApplySettings ((bool __cdecl (*)(struct APP_SETTINGS *newSettings))0x004492F0)
#define RenderStart ((void __cdecl (*)(bool is_reset))0x00448E50)
#define RenderFinish ((void __cdecl (*)(bool need_to_clear_textures))0x00449200)
#define ApplySettings ((bool __cdecl (*)(struct APP_SETTINGS *new_settings))0x004492F0)
#define FmvBackToGame ((void __cdecl (*)(void))0x00449500)
#define GameApplySettings ((void __cdecl (*)(struct APP_SETTINGS *newSettings))0x00449610)
#define GameApplySettings ((void __cdecl (*)(struct APP_SETTINGS *new_settings))0x00449610)
#define UpdateGameResolution ((void __cdecl (*)(void))0x00449850)
#define DecodeErrorMessage ((LPCTSTR __cdecl (*)(DWORD errorCode))0x004498C0)
#define DecodeErrorMessage ((LPCTSTR __cdecl (*)(DWORD error_code))0x004498C0)
#define ReadFileSync ((BOOL __cdecl (*)(HANDLE handle, LPVOID lpBuffer, DWORD nBytesToRead, LPDWORD lpnBytesRead, LPOVERLAPPED lpOverlapped))0x004498D0)
#define LoadTexturePages ((BOOL __cdecl (*)(HANDLE handle))0x00449920)
#define LoadRooms ((BOOL __cdecl (*)(HANDLE handle))0x00449AB0)
#define AdjustTextureUVs ((void __cdecl (*)(bool resetUvAdd))0x00449E50)
#define AdjustTextureUVs ((void __cdecl (*)(bool reset_uv_add))0x00449E50)
#define LoadObjects ((BOOL __cdecl (*)(HANDLE handle))0x00449EF0)
#define LoadSprites ((BOOL __cdecl (*)(HANDLE handle))0x0044A470)
#define LoadItems ((BOOL __cdecl (*)(HANDLE handle))0x0044A5B0)
Expand All @@ -632,36 +632,36 @@
#define LoadAnimatedTextures ((BOOL __cdecl (*)(HANDLE handle))0x0044AC90)
#define LoadCinematic ((BOOL __cdecl (*)(HANDLE handle))0x0044ACF0)
#define LoadDemo ((BOOL __cdecl (*)(HANDLE handle))0x0044AD70)
#define LoadDemoExternal ((void __cdecl (*)(LPCTSTR levelName))0x0044AE00)
#define LoadDemoExternal ((void __cdecl (*)(LPCTSTR level_name))0x0044AE00)
#define LoadSamples ((BOOL __cdecl (*)(HANDLE handle))0x0044AEA0)
#define ChangeFileNameExtension ((void __cdecl (*)(char *fileName, const char *fileExt))0x0044B110)
#define GetFullPath ((LPCTSTR __cdecl (*)(LPCTSTR fileName))0x0044B150)
#define ChangeFileNameExtension ((void __cdecl (*)(char *file_name, const char *file_ext))0x0044B110)
#define GetFullPath ((LPCTSTR __cdecl (*)(LPCTSTR file_name))0x0044B150)
#define SelectDrive ((BOOL __cdecl (*)(void))0x0044B180)
#define LoadLevel ((BOOL __cdecl (*)(LPCTSTR fileName, int32_t levelID))0x0044B260)
#define S_LoadLevelFile ((BOOL __cdecl (*)(LPCTSTR fileName, int32_t levelID, GF_LEVEL_TYPE levelType))0x0044B4B0)
#define LoadLevel ((BOOL __cdecl (*)(LPCTSTR file_name, int32_t level_num))0x0044B260)
#define S_LoadLevelFile ((BOOL __cdecl (*)(LPCTSTR file_name, int32_t level_num, GF_LEVEL_TYPE level_type))0x0044B4B0)
#define S_UnloadLevelFile ((void __cdecl (*)(void))0x0044B4D0)
#define S_AdjustTexelCoordinates ((void __cdecl (*)(void))0x0044B500)
#define S_ReloadLevelGraphics ((BOOL __cdecl (*)(BOOL reloadPalettes, BOOL reloadTexPages))0x0044B520)
#define Read_Strings ((BOOL __cdecl (*)(DWORD dwCount, char **stringTable, char **stringBuffer, LPDWORD lpBufferSize, HANDLE handle))0x0044B5F0)
#define S_LoadGameFlow ((BOOL __cdecl (*)(LPCTSTR fileName))0x0044B6C0)
#define PlayFMV ((bool __cdecl (*)(LPCTSTR fileName))0x0044BDA0)
#define WinPlayFMV ((void __cdecl (*)(LPCTSTR fileName, bool isPlayback))0x0044BE10)
#define WinStopFMV ((void __cdecl (*)(bool isPlayback))0x0044C0F0)
#define IntroFMV ((bool __cdecl (*)(LPCTSTR fileName1, LPCTSTR fileName2))0x0044C140)
#define S_ReloadLevelGraphics ((BOOL __cdecl (*)(BOOL reload_palettes, BOOL reload_tex_pages))0x0044B520)
#define Read_Strings ((BOOL __cdecl (*)(DWORD count, char **string_table, char **string_buf, LPDWORD buf_size, HANDLE handle))0x0044B5F0)
#define S_LoadGameFlow ((BOOL __cdecl (*)(const char *file_name))0x0044B6C0)
#define PlayFMV ((bool __cdecl (*)(const char *file_name))0x0044BDA0)
#define WinPlayFMV ((void __cdecl (*)(const char *file_name, bool is_playback))0x0044BE10)
#define WinStopFMV ((void __cdecl (*)(bool is_playback))0x0044C0F0)
#define IntroFMV ((bool __cdecl (*)(const char *file_name1, const char *file_name2))0x0044C140)
#define S_COLOUR ((uint16_t __cdecl (*)(int32_t red, int32_t green, int32_t blue))0x0044C1D0)
#define S_DrawScreenLine ((void __cdecl (*)(int32_t x, int32_t y, int32_t z, int32_t x_len, int32_t y_len, BYTE color_idx, D3DCOLOR *gour, uint16_t flags))0x0044C200)
#define S_DrawScreenBox ((void __cdecl (*)(int32_t sx, int32_t sy, int32_t z, int32_t width, int32_t height, BYTE color_idx, const struct GOURAUD_OUTLINE *gour, uint16_t flags))0x0044C240)
#define S_DrawScreenFBox ((void __cdecl (*)(int32_t sx, int32_t sy, int32_t z, int32_t width, int32_t height, BYTE color_idx, const struct GOURAUD_FILL *gour, uint16_t flags))0x0044C360)
#define S_FinishInventory ((void __cdecl (*)(void))0x0044C390)
#define S_FadeToBlack ((void __cdecl (*)(void))0x0044C3A0)
#define S_Wait ((void __cdecl (*)(int32_t timeout, BOOL inputCheck))0x0044C3F0)
#define S_PlayFMV ((bool __cdecl (*)(LPCTSTR fileName))0x0044C450)
#define S_IntroFMV ((bool __cdecl (*)(LPCTSTR fileName1, LPCTSTR fileName2))0x0044C460)
#define StartGame ((int16_t __cdecl (*)(int32_t levelID, GF_LEVEL_TYPE levelType))0x0044C480)
#define GameLoop ((int32_t __cdecl (*)(BOOL demoMode))0x0044C5D0)
#define S_Wait ((void __cdecl (*)(int32_t timeout, BOOL input_check))0x0044C3F0)
#define S_PlayFMV ((bool __cdecl (*)(const char *file_name))0x0044C450)
#define S_IntroFMV ((bool __cdecl (*)(const char *file_name1, const char *file_name2))0x0044C460)
#define StartGame ((int16_t __cdecl (*)(int32_t level_num, GF_LEVEL_TYPE level_type))0x0044C480)
#define GameLoop ((int32_t __cdecl (*)(BOOL demo_mode))0x0044C5D0)
#define LevelCompleteSequence ((int32_t __cdecl (*)(void))0x0044C670)
#define LevelStats ((int32_t __cdecl (*)(int32_t levelID))0x0044C680)
#define GameStats ((int32_t __cdecl (*)(int32_t levelID))0x0044C850)
#define LevelStats ((int32_t __cdecl (*)(int32_t level_num))0x0044C680)
#define GameStats ((int32_t __cdecl (*)(int32_t level_num))0x0044C850)
#define GetValidLevelsList ((void __cdecl (*)(REQUEST_INFO *req))0x0044C9D0)
#define GetSavedGamesList ((void __cdecl (*)(REQUEST_INFO *req))0x0044CA20)
#define DisplayCredits ((void __cdecl (*)(void))0x0044CA70)
Expand All @@ -672,30 +672,30 @@
#define HWR_ResetTexSource ((void __cdecl (*)(void))0x0044D110)
#define HWR_ResetColorKey ((void __cdecl (*)(void))0x0044D140)
#define HWR_ResetZBuffer ((void __cdecl (*)(void))0x0044D170)
#define HWR_TexSource ((void __cdecl (*)(HWR_TEX_HANDLE texSource))0x0044D1D0)
#define HWR_TexSource ((void __cdecl (*)(HWR_TEX_HANDLE tex_source))0x0044D1D0)
#define HWR_EnableColorKey ((void __cdecl (*)(bool state))0x0044D200)
#define HWR_EnableZBuffer ((void __cdecl (*)(bool z_write_enable, bool z_enable))0x0044D250)
#define HWR_BeginScene ((void __cdecl (*)(void))0x0044D2E0)
#define HWR_DrawPolyList ((void __cdecl (*)(void))0x0044D310)
#define HWR_LoadTexturePages ((void __cdecl (*)(int32_t pagesCount, LPVOID pagesBuffer, RGB888 *palette))0x0044D490)
#define HWR_LoadTexturePages ((void __cdecl (*)(int32_t pages_count, void *pages_buf, RGB888 *palette))0x0044D490)
#define HWR_FreeTexturePages ((void __cdecl (*)(void))0x0044D520)
#define HWR_GetPageHandles ((void __cdecl (*)(void))0x0044D570)
#define HWR_VertexBufferFull ((bool __cdecl (*)(void))0x0044D5B0)
#define HWR_Init ((bool __cdecl (*)(void))0x0044D5E0)
#define S_InitialiseSystem ((BOOL __cdecl (*)(void))0x0044D610)
#define GameBuf_Shutdown ((void __cdecl (*)(void))0x0044D670)
#define init_game_malloc ((void __cdecl (*)(void))0x0044D690)
#define game_malloc ((void *__cdecl (*)(DWORD allocSize, DWORD bufIndex))0x0044D6C0)
#define game_free ((void __cdecl (*)(DWORD freeSize))0x0044D740)
#define game_malloc ((void *__cdecl (*)(uint32_t alloc_size, uint32_t buf_index))0x0044D6C0)
#define game_free ((void __cdecl (*)(uint32_t free_size))0x0044D740)
#define CalculateWibbleTable ((void __cdecl (*)(void))0x0044D780)
#define RenderErrorBox ((int32_t __cdecl (*)(int32_t errorCode))0x0044E4E0)
#define RenderErrorBox ((int32_t __cdecl (*)(int32_t error_code))0x0044E4E0)
#define WinMain ((int32_t __stdcall (*)(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int32_t nShowCmd))0x0044E520)
#define GameInit ((int32_t __cdecl (*)(bool skipCDInit))0x0044E700)
#define GameInit ((int32_t __cdecl (*)(bool skip_cd_init))0x0044E700)
#define Shell_Cleanup ((void __cdecl (*)(void))0x0044E770)
#define WinGameStart ((int32_t __cdecl (*)(void))0x0044E7A0)
#define Shell_Shutdown ((void __cdecl (*)(void))0x0044E820)
#define ScreenShotPCX ((void __cdecl (*)(void))0x0044E8E0)
#define CompPCX ((DWORD __cdecl (*)(BYTE *bitmap, DWORD width, DWORD height, RGB888 *palette, BYTE **pcxData))0x0044E9F0)
#define CompPCX ((DWORD __cdecl (*)(BYTE *bitmap, DWORD width, DWORD height, RGB888 *palette, BYTE **pcx_data))0x0044E9F0)
#define EncodeLinePCX ((DWORD __cdecl (*)(BYTE *src, DWORD width, BYTE *dst))0x0044EAA0)
#define EncodePutPCX ((DWORD __cdecl (*)(BYTE value, BYTE num, BYTE *buffer))0x0044EB80)
#define ScreenShot ((void __cdecl (*)(LPDDS screen))0x0044EBC0)
Expand All @@ -712,34 +712,34 @@
#define S_RemoveCtrlText ((void __cdecl (*)(void))0x00450AA0)
#define GetRenderHeight ((int32_t __cdecl (*)(void))0x00450AE0)
#define GetRenderWidth ((int32_t __cdecl (*)(void))0x00450AF0)
#define S_InitialisePolyList ((void __cdecl (*)(BOOL clearBackBuffer))0x00450B00)
#define S_InitialisePolyList ((void __cdecl (*)(BOOL clear_back_buffer))0x00450B00)
#define S_DumpScreen ((DWORD __cdecl (*)(void))0x00450BF0)
#define S_ClearScreen ((void __cdecl (*)(void))0x00450C30)
#define S_InitialiseScreen ((void __cdecl (*)(GF_LEVEL_TYPE levelType))0x00450C40)
#define S_InitialiseScreen ((void __cdecl (*)(GF_LEVEL_TYPE level_type))0x00450C40)
#define S_OutputPolyList ((void __cdecl (*)(void))0x00450C80)
#define S_GetObjectBounds ((int32_t __cdecl (*)(int16_t *bPtr))0x00450CC0)
#define S_GetObjectBounds ((int32_t __cdecl (*)(int16_t *obj_ptr))0x00450CC0)
#define S_InsertBackPolygon ((void __cdecl (*)(int32_t x0, int32_t y0, int32_t x1, int32_t y1))0x00450F30)
#define S_PrintShadow ((void __cdecl (*)(int16_t radius, int16_t *bPtr, ITEM_INFO *item))0x00450F80)
#define S_PrintShadow ((void __cdecl (*)(int16_t radius, int16_t *obj_ptr, ITEM_INFO *item))0x00450F80)
#define S_CalculateLight ((void __cdecl (*)(int32_t x, int32_t y, int32_t z, int16_t room_num))0x00451180)
#define S_CalculateStaticLight ((void __cdecl (*)(int16_t adder))0x00451480)
#define S_CalculateStaticMeshLight ((void __cdecl (*)(int32_t x, int32_t y, int32_t z, int32_t shade1, int32_t shade2, ROOM_INFO *room))0x004514C0)
#define S_LightRoom ((void __cdecl (*)(ROOM_INFO *room))0x004515F0)
#define S_DrawHealthBar ((void __cdecl (*)(int32_t percent))0x00451800)
#define S_DrawAirBar ((void __cdecl (*)(int32_t percent))0x004519D0)
#define AnimateTextures ((void __cdecl (*)(int32_t nTicks))0x00451BD0)
#define AnimateTextures ((void __cdecl (*)(int32_t ticks))0x00451BD0)
#define S_SetupBelowWater ((void __cdecl (*)(BOOL underwater))0x00451C90)
#define S_SetupAboveWater ((void __cdecl (*)(BOOL underwater))0x00451CF0)
#define S_AnimateTextures ((void __cdecl (*)(int32_t nTicks))0x00451D20)
#define S_DisplayPicture ((void __cdecl (*)(LPCTSTR fileName, BOOL isTitle))0x00451DE0)
#define S_AnimateTextures ((void __cdecl (*)(int32_t ticks))0x00451D20)
#define S_DisplayPicture ((void __cdecl (*)(const char *file_name, BOOL is_title))0x00451DE0)
#define S_SyncPictureBufferPalette ((void __cdecl (*)(void))0x00451EF0)
#define S_DontDisplayPicture ((void __cdecl (*)(void))0x00451F70)
#define ScreenDump ((void __cdecl (*)(void))0x00451F80)
#define ScreenPartialDump ((void __cdecl (*)(void))0x00451F90)
#define FadeToPal ((void __cdecl (*)(int32_t fadeValue, RGB888 *palette))0x00451FA0)
#define ScreenClear ((void __cdecl (*)(bool isPhdWinSize))0x00452170)
#define FadeToPal ((void __cdecl (*)(int32_t fade_value, RGB888 *palette))0x00451FA0)
#define ScreenClear ((void __cdecl (*)(bool is_phd_win_size))0x00452170)
#define S_CopyScreenToBuffer ((void __cdecl (*)(void))0x004521A0)
#define S_CopyBufferToScreen ((void __cdecl (*)(void))0x00452250)
#define DecompPCX ((BOOL __cdecl (*)(LPCBYTE pcx, DWORD pcxSize, LPBYTE pic, RGB888 *pal))0x004522A0)
#define DecompPCX ((BOOL __cdecl (*)(const uint8_t *pcx, size_t pcx_size, LPBYTE pic, RGB888 *pal))0x004522A0)
#define OpenGameRegistryKey ((bool __cdecl (*)(LPCTSTR key))0x004523C0)
#define CloseGameRegistryKey ((LONG __cdecl (*)(void))0x00452410)
#define SE_WriteAppSettings ((bool __cdecl (*)(APP_SETTINGS *settings))0x00452420)
Expand Down Expand Up @@ -779,27 +779,27 @@
#define CheckCheatMode ((void __cdecl (*)(void))0x00454D60)
#define S_SaveSettings ((void __cdecl (*)(void))0x004550C0)
#define S_LoadSettings ((void __cdecl (*)(void))0x00455140)
#define CopyBitmapPalette ((void __cdecl (*)(RGB888 *srcPal, BYTE *srcBitmap, int32_t bitmapSize, RGB888 *destPal))0x004557A0)
#define FindNearestPaletteEntry ((BYTE __cdecl (*)(RGB888 *palette, int32_t red, int32_t green, int32_t blue, bool ignoreSysPalette))0x004558E0)
#define SyncSurfacePalettes ((void __cdecl (*)(void *srcData, int32_t width, int32_t height, int32_t srcPitch, RGB888 *srcPalette, void *dstData, int32_t dstPitch, RGB888 *dstPalette, bool preserveSysPalette))0x004559B0)
#define CopyBitmapPalette ((void __cdecl (*)(RGB888 *src_pal, BYTE *src_bitmap, int32_t bitmap_size, RGB888 *dest_pal))0x004557A0)
#define FindNearestPaletteEntry ((BYTE __cdecl (*)(RGB888 *palette, int32_t red, int32_t green, int32_t blue, bool ignore_sys_palette))0x004558E0)
#define SyncSurfacePalettes ((void __cdecl (*)(void *src_data, int32_t width, int32_t height, int32_t src_pitch, RGB888 *src_palette, void *dst_data, int32_t dst_pitch, RGB888 *dst_palette, bool preserve_sys_palette))0x004559B0)
#define CreateTexturePalette ((int32_t __cdecl (*)(RGB888 *pal))0x00455A60)
#define GetFreePaletteIndex ((int32_t __cdecl (*)(void))0x00455AF0)
#define FreePalette ((void __cdecl (*)(int32_t paletteIndex))0x00455B10)
#define SafeFreePalette ((void __cdecl (*)(int32_t paletteIndex))0x00455B40)
#define FreePalette ((void __cdecl (*)(int32_t palette_idx))0x00455B10)
#define SafeFreePalette ((void __cdecl (*)(int32_t palette_idx))0x00455B40)
#define CreateTexturePage ((int32_t __cdecl (*)(int32_t width, int32_t height, bool alpha))0x00455B90)
#define GetFreeTexturePageIndex ((int32_t __cdecl (*)(void))0x00455C00)
#define CreateTexturePageSurface ((bool __cdecl (*)(TEXPAGE_DESC *desc))0x00455C20)
#define TexturePageInit ((bool __cdecl (*)(TEXPAGE_DESC *page))0x00455CC0)
#define Create3DTexture ((LPDIRECT3DTEXTURE2 __cdecl (*)(LPDDS surface))0x00455E40)
#define SafeFreeTexturePage ((void __cdecl (*)(int32_t pageIndex))0x00455E70)
#define FreeTexturePage ((void __cdecl (*)(int32_t pageIndex))0x00455E90)
#define SafeFreeTexturePage ((void __cdecl (*)(int32_t page_idx))0x00455E70)
#define FreeTexturePage ((void __cdecl (*)(int32_t page_idx))0x00455E90)
#define TexturePageReleaseVidMemSurface ((void __cdecl (*)(TEXPAGE_DESC *page))0x00455ED0)
#define FreeTexturePages ((void __cdecl (*)(void))0x00455F10)
#define LoadTexturePage ((bool __cdecl (*)(int32_t pageIndex, bool reset))0x00455F40)
#define LoadTexturePage ((bool __cdecl (*)(int32_t page_idx, bool reset))0x00455F40)
#define ReloadTextures ((bool __cdecl (*)(bool reset))0x00455FF0)
#define GetTexturePageHandle ((HWR_TEX_HANDLE __cdecl (*)(int32_t pageIndex))0x00456030)
#define AddTexturePage8 ((int32_t __cdecl (*)(int32_t width, int32_t height, BYTE *pageBuffer, int32_t palIndex))0x00456070)
#define AddTexturePage16 ((int32_t __cdecl (*)(int32_t width, int32_t height, BYTE *pageBuffer))0x00456170)
#define GetTexturePageHandle ((HWR_TEX_HANDLE __cdecl (*)(int32_t page_idx))0x00456030)
#define AddTexturePage8 ((int32_t __cdecl (*)(int32_t width, int32_t height, BYTE *page_buf, int32_t pal_idx))0x00456070)
#define AddTexturePage16 ((int32_t __cdecl (*)(int32_t width, int32_t height, BYTE *page_buf))0x00456170)
#define EnumTextureFormatsCallback ((HRESULT __stdcall (*)(LPDDSDESC lpDdsd, LPVOID lpContext))0x00456310)
#define EnumerateTextureFormats ((HRESULT __cdecl (*)(void))0x00456430)
#define CleanupTextures ((void __cdecl (*)(void))0x00456460)
Expand Down
5 changes: 5 additions & 0 deletions src/global/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ typedef enum GF_LEVEL_TYPE {
GFL_MIDSTORY,
} GF_LEVEL_TYPE;

typedef struct PICKUP_INFO {
int16_t timer;
int16_t sprite;
} PICKUP_INFO;

typedef struct INVENTORY_ITEM {
char *string;
int16_t obj_num;
Expand Down
1 change: 1 addition & 0 deletions src/global/vars.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
#define g_NextItemActive (*(int16_t*)0x005207C8)
#define g_NextEffectActive (*(int16_t*)0x005207CA)
#define g_PrevItemActive (*(int16_t*)0x005207CC)
#define g_Pickups (*(struct PICKUP_INFO(*)[12])0x00521CA0)
#define g_GameFlow (*(struct GAME_FLOW*)0x00521DE0)
#define g_SoundFxCount (*(int32_t*)0x00521FDC)
#define g_Objects (*(struct OBJECT_INFO(*)[265])0x00522000)
Expand Down

0 comments on commit 1b6dd20

Please sign in to comment.