Louis Gombert
0ff98a7d07
Merge pull request #402 from GravisZro/fix/whitespace
...
Fix whitespace issues in Descent3/object_external_struct.h
2024-05-29 07:12:56 +00:00
Louis Gombert
81951a121e
Merge pull request #401 from GravisZro/fix/flags
...
Fix -nomousegrab flag
2024-05-29 07:12:27 +00:00
GravisZro
a1732014bd
Fix whitespace issues
2024-05-28 17:27:17 -04:00
GravisZro
a6f4b5c115
Fix -nomousegrab flag
...
HardwareOpenGL incorrectly has "-nomousecap" instead of "-nomousegrab"
2024-05-28 17:13:06 -04:00
Louis Gombert
e74ba03986
Merge pull request #394 from winterheart/ddio-update-crossplatform
...
Use chrono steady_clock for time measurement
2024-05-28 17:13:43 +00:00
Azamat H. Hackimov
599c1f759e
Merge pull request #399 from Lgt2x/socket-fix
...
Fix non-blocking socket creation on Linux
2024-05-28 00:33:51 +03:00
Louis Gombert
5f6c9f599d
Fix non-blocking socket creation on Linux
2024-05-28 01:18:23 +02:00
Azamat H. Hackimov
683cac5ea5
Remove unused lorestimer arg option
...
lorestimer was required only for Windows (9x, I guess?), and now with chrono library, that can provide any resolution, it's redundant. Removing related field of ddio_init_info struct.
2024-05-27 10:31:45 +03:00
Azamat H. Hackimov
24e0c315e1
Use chrono steady_clock for time measurement
...
Implementing static ChronoTimer class based on C++11 chrono library that replaces platform dependent time measurement implementation.
2024-05-27 10:31:42 +03:00
Louis Gombert
baab65b6b3
Merge pull request #388 from GravisZro/fix/mprintf
...
Make mprintf and mprintf_at a proper variadic macro
2024-05-27 06:40:36 +00:00
bperris
cf02a763db
Merge pull request #356 from GravisZro/fix/ioctl
...
Replace ioctl with fcntl, fix ioctlsocket calls (64-bit fix)
2024-05-26 20:27:38 -04:00
GravisZro
644cb177ce
Clean up mono functions
2024-05-24 20:58:35 -04:00
GravisZro
9cf9781369
Properly format/use variadic macros
2024-05-24 20:57:17 -04:00
GravisZro
4ac9b9c22f
Replace ioctl with fcntl, fix ioctlsocket calls (64-bit fix)
...
`ioctl` and `ioctlsocket` take two different types of arguments but worked in the past due to
long being 32-bit. However, ioctl functionality is non-standard and should not be used in
code written after **1997** in order to make sockets non-blocking. This functionality was
standardized as part of fcntl.
* Using the new function `make_nonblocking` to make socket nonblocking
2024-05-24 18:24:40 -04:00
Azamat H. Hackimov
8485cb0c4d
Merge pull request #383 from winterheart/ddio-merge
...
Merging ddio modules
2024-05-24 22:30:28 +03:00
Azamat H. Hackimov
a0929aefe2
Rename ddio_common to ddio
2024-05-24 22:18:14 +03:00
Azamat H. Hackimov
01c43cc0b4
ddio_common: cleanup headers
2024-05-24 22:18:12 +03:00
Azamat H. Hackimov
6bc3c71a83
Reordering ddio_common module
...
Merge ddio_lnx and ddio_win into ddio_common module.
2024-05-24 22:17:44 +03:00
Louis Gombert
4723d363ff
Merge pull request #378 from GravisZro/cleanup
...
Several small cleanups
2024-05-24 19:16:36 +00:00
GravisZro
dc91b22635
Fix rebase breakage
2024-05-24 09:13:36 -04:00
GravisZro
22ab0c6d37
Fix include statements using '\' deliminator
2024-05-24 08:53:03 -04:00
GravisZro
d0be4f81bb
Move _stat
macro to linux_fix.h
...
This is a fix for linux, so move it to correct location.
2024-05-24 08:53:03 -04:00
GravisZro
ec73d3fe1f
Remove excess stricmp
definitions
2024-05-24 08:53:02 -04:00
GravisZro
6a9ddd8736
Replace _vsnprintf
/vsnprintf
with std::vsnprintf
2024-05-24 08:52:59 -04:00
GravisZro
13ed05cf6c
Remove unused macros
2024-05-24 08:50:59 -04:00
GravisZro
f46a0b642c
Move controller macros to Controller.h
...
Also copy one to winjoy.cpp
2024-05-24 08:50:59 -04:00
GravisZro
582970d9ef
Replace SWAP
with std::swap
2024-05-24 08:50:59 -04:00
GravisZro
88d1dfa948
Replace SET_MIN
with std::min
2024-05-24 08:50:56 -04:00
GravisZro
76e86fed8c
Replace strcmpi
with stricmp
2024-05-24 08:49:04 -04:00
Louis Gombert
a77fdd7426
Merge pull request #268 from GravisZro/use/stdint
...
Refactor to fixed width integer types: proven to be free of errors
2024-05-24 11:00:28 +00:00
GravisZro
5e5e0c99c3
Replace "short" with "int16_t" and fix missing headers
2024-05-23 23:49:31 -04:00
GravisZro
aebe1bbbb6
Replace "ushort" with "uint16_t" and fix missing includes
2024-05-23 23:16:40 -04:00
GravisZro
fe855cf85e
Fix missing header includes/restore third-party files
2024-05-23 23:14:40 -04:00
GravisZro
26b7776f43
Replace "ubyte" with "uint8_t"
2024-05-23 23:07:26 -04:00
GravisZro
9d3e361a35
Replace "sbyte" with "int8_t"
2024-05-23 23:05:05 -04:00
GravisZro
cc67b9230a
Replace "signed short" with "int16_t"
2024-05-23 23:04:15 -04:00
GravisZro
3dcd21b717
Replace "unsigned short" with "uint16_t"
2024-05-23 23:03:29 -04:00
GravisZro
cf0c51c8dd
Replace "sint8" with "int8_t"
2024-05-23 23:02:27 -04:00
GravisZro
961d7060c2
Replace "uint8" with "uint8_t"
2024-05-23 23:01:58 -04:00
GravisZro
38f82ab9fd
Replace "sint32" with "int32_t"
2024-05-23 23:01:16 -04:00
GravisZro
4bde77bc28
Replace "uint32" with "uint32_t"
2024-05-23 23:00:36 -04:00
GravisZro
a00639be24
Replace "signed char" with "int8_t"
2024-05-23 22:59:50 -04:00
GravisZro
1618040db5
Replace "unsigned char" with "uint8_t"
2024-05-23 22:58:46 -04:00
GravisZro
a3a3797067
Replace "uint" with "uint32_t"
2024-05-23 22:57:25 -04:00
GravisZro
0556786c12
Replace "signed int" with "int32_t"
2024-05-23 22:55:41 -04:00
GravisZro
2147cfa68b
Replace "unsigned int" with "uint32_t"
2024-05-23 22:51:16 -04:00
bperris
9c039e6d2c
Merge pull request #387 from GravisZro/fix/randmax
...
Fix RAND_MAX overflow warnings
2024-05-23 21:04:21 -04:00
GravisZro
fb74b66bdf
Fix RAND_MAX overflow errors
...
In `psrand.h` it attempts to undefine RAND_MAX and then redefine it.
This may work on some compilers but G++/Clang. To resolve this error
RAND_MAX was renamed to D3_RAND_MAX but **only** in files that
included `psrand.h`. The code behavior should restored to that of the
official release.
2024-05-23 20:51:25 -04:00
Louis Gombert
a1a8056afc
Merge pull request #355 from GravisZro/fix/64bit
...
64-bit fixes
2024-05-23 07:21:36 +00:00
Louis Gombert
c28fc06758
Merge pull request #357 from GravisZro/refactor/wincode
...
Utilize Windows types
2024-05-23 05:59:31 +00:00