mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-09 16:10:27 -04:00
trying to debug, additional rewrites
This commit is contained in:
parent
378b5586ab
commit
42f780a729
87 changed files with 1771 additions and 529 deletions
|
@ -1,77 +0,0 @@
|
|||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef _SKELDAL_PLATFORM_HEADER_
|
||||
#define _SKELDAL_PLATFORM_HEADER_
|
||||
|
||||
#define BGSWITCHBIT 0x0020
|
||||
|
||||
#define SKELDALINI "WSKELDAL.INI"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
|
||||
#define _KEYBRD_READY 0
|
||||
#define _KEYBRD_READ 1
|
||||
|
||||
#define TIMERSPEED 20;
|
||||
|
||||
uint32_t _bios_keybrd(int mode);
|
||||
|
||||
|
||||
//LRESULT GameMainWindowWindowProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
|
||||
void CheckMessageQueue();
|
||||
|
||||
//void DSReportWindowCreation(HWND hWindow);
|
||||
char *AutodetectWinAmp();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#define RGB888(r,g,b) ((unsigned short)((((r)<<8)&0xF800) | (((g)<<3) & 0x7C0) | ((b)>>3)))
|
||||
#define RGB555(r,g,b) ((unsigned short)(((r)<<11) | ((g)<<6) | (b)))
|
||||
|
||||
#pragma warning (disable : 4244 4761 4133)
|
||||
|
||||
|
||||
void *LoadDefaultFont();
|
||||
void *LoadResourceFont(const char *name);
|
||||
void *map_file_to_memory(const char *name, size_t *sz);
|
||||
void unmap_file(void *ptr, size_t sz);
|
||||
|
||||
void ShareCPU();
|
||||
void SetWheelMapping(char up, char down);
|
||||
|
||||
char get_control_key_state();
|
||||
char get_shift_key_state();
|
||||
void display_error(const char *text);
|
||||
|
||||
int stricmp(const char *a, const char *b);
|
||||
#define MIN(a, b) ((a)<(b)?(a):(b))
|
||||
#define MAX(a, b) ((a)>(b)?(a):(b))
|
||||
void strupr(char *c);
|
||||
const char * itoa(int i, char *c, int radix);
|
||||
|
||||
uint32_t get_game_tick_count();
|
||||
void sleep_ms(uint32_t);
|
||||
|
||||
//------------- BGRAPH DX wrapper -------------------
|
||||
#include "BGraph2Dx.h"
|
||||
|
||||
#define WM_RELOADMAP (WM_APP+215)
|
||||
#define E_RELOADMAP 40
|
||||
|
||||
typedef struct _ReloadMapInfo {
|
||||
const char *fname;
|
||||
int sektor;
|
||||
} ReloadMapInfo;
|
||||
|
||||
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue