diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-08-05 05:51:56 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | a5fdb9f7c852743d2d3c29d2db8862249929e3a0 (patch) | |
| tree | baa6ed008700b2669becbb7d75a22e1f8b109657 /src/fixer.h | |
| parent | f2c6ac73625670a1a99b665b75b1757e8bf4d3ec (diff) | |
Now in the Data loading phase.
Converted many '\\' to '/'. Partially implemented win32 file routines.
Got texture code to work OK for now (still needs to be reimplemented).
Partially implemented the main loop.
Diffstat (limited to 'src/fixer.h')
| -rw-r--r-- | src/fixer.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/src/fixer.h b/src/fixer.h index 1c714fe..ee99063 100644 --- a/src/fixer.h +++ b/src/fixer.h @@ -45,6 +45,8 @@ size_t _mbclen(const unsigned char *s); #define MAX_PATH PATH_MAX +void FixFilename(char *str); + /* windows junk */ typedef int GUID; typedef int DPID; @@ -90,20 +92,21 @@ typedef struct SYSTEMTIME } SYSTEMTIME; #define INVALID_HANDLE_VALUE -1 -#define GENERIC_WRITE 1 -#define CREATE_ALWAYS 2 -#define FILE_FLAG_RANDOM_ACCESS 3 -#define GENERIC_READ 4 -#define OPEN_EXISTING 5 -#define FILE_ATTRIBUTE_READONLY 6 -#define FILE_CURRENT 7 -#define FILE_BEGIN 8 -#define FILE_END 9 -#define FILE_SHARE_READ 10 -#define FILE_ATTRIBUTE_DIRECTORY 11 -#define FILE_SHARE_WRITE 12 -#define OPEN_ALWAYS 13 -#define FILE_ATTRIBUTE_NORMAL 14 +#define GENERIC_WRITE 0x0001 +#define CREATE_ALWAYS 0x0002 +#define FILE_FLAG_RANDOM_ACCESS 0x0004 +#define GENERIC_READ 0x0008 +#define OPEN_EXISTING 0x0010 +#define FILE_ATTRIBUTE_READONLY 0x0020 +#define FILE_CURRENT 0x0040 +#define FILE_BEGIN 0x0080 +#define FILE_END 0x0100 +#define FILE_SHARE_READ 0x0200 +#define FILE_ATTRIBUTE_DIRECTORY 0x0400 +#define FILE_SHARE_WRITE 0x0800 +#define OPEN_ALWAYS 0x1000 +#define FILE_ATTRIBUTE_NORMAL 0x2000 + HANDLE CreateFile(const char *file, int write, int x, int y, int flags, int flags2, int z); HANDLE CreateFileA(const char *file, int write, int x, int y, int flags, int flags2, int z); |
