C.W. Betts
7d5b51e8f8
macOS: Make sure the netcon modules end with dylib.
2024-08-05 15:54:38 -06:00
C.W. Betts
1384aa62af
Quiet warnings about uninitialized values.
2024-07-31 15:40:16 -06:00
Azamat H. Hackimov
87882c9976
Isolate ui submodule
...
Isolate ui from rest of the project, minor cleanups.
2024-07-28 16:50:41 +03:00
Azamat H. Hackimov
91354d5b9a
Merge pull request #492 from tophyr/pr/posix-defines
...
Use `POSIX` instead of `__LINUX__` for general OS checks
2024-07-15 23:33:10 +03:00
Chris Sarbora
d6c43610fc
Fixup platform defines to be positive tests instead of negative ones
2024-07-12 18:31:05 -05:00
Chris Sarbora
3da53e567f
Programmatically replace all __LINUX__
with POSIX
...
Steps:
```sh
srcs=$(mktemp)
find . -name "*.cpp" -or -name "*.c" -or -name "*.h" -or -name "*.hpp" -or -name "*.cc" -or -name "*.hh" > $srcs
xargs sed -i 's/ifndef __LINUX__/if !defined(POSIX)/' < $srcs
xargs sed -i 's/ifdef __LINUX__/if defined(POSIX)/' < $srcs
xargs sed -i 's/defined(__LINUX__)/defined(POSIX)/' < $srcs
```
2024-07-12 18:11:54 -05:00
Azamat H. Hackimov
1ae023a13b
Enumerate all DLL functions manually
...
Enumerate DLL functions to ease tying functions in main and DLL sides in code.
2024-07-09 02:08:25 +03:00
Thomas Roß
12ec7c50c7
[CMake] Enabled the CMake property USE_FOLDERS to provide a more structured project list in IDEs with the help of set(CMAKE_FOLDER "...") calls.
2024-07-03 19:55:04 +02:00
Azamat H. Hackimov
59487976f6
Isolate misc module
...
Isolate misc module for better dependency handling.
2024-06-27 01:26:35 +03:00
Louis Gombert
e6a2774a06
Merge pull request #463 from tophyr/single-line-genex
...
keep windows-specific generator expressions on one line
2024-06-24 19:24:34 +00:00
Chris Sarbora
94a0c52cdf
keep windows-specific generator expressions on one line
2024-06-24 02:07:48 -05:00
Azamat H. Hackimov
db8aa64d2f
Make mem module isolated from project
...
Properly define MEM_USE_RTL definition only for mem library. Link other dependant modules with mem.
2024-06-20 00:43:51 +03:00
C.W. Betts
90c34c8006
Better fix for pcount.
2024-06-16 16:09:23 -06:00
C.W. Betts
2122d719e1
Remove some unused variables.
2024-06-13 14:38:17 -06:00
C.W. Betts
33b2030364
Fix compile failure.
2024-06-13 14:38:17 -06:00
C.W. Betts
f79e6cfe50
More const char* conversion.
2024-06-13 14:38:17 -06:00
Taylor Richards
ed0ff23cee
remove unnecessary return value test
2024-06-11 14:58:45 -04:00
Taylor Richards
03b729e318
fix PXO chat lobby connection failure on Linux/Mac
2024-06-10 21:55:35 -04:00
C.W. Betts
09b91fb6df
Fix 64-to-32 integer truncating.
...
This is a bit more of a problem with byte-swapping than just reading/writing.
2024-06-04 15:08:36 -06:00
C.W. Betts
7f2091db1b
Quiet most const char* warnings.
2024-06-04 15:05:31 -06:00
C.W. Betts
8a678822a3
Add snprintfs to the PXO module.
2024-06-04 15:03:29 -06:00
Azamat H. Hackimov
a295b047f0
Fix compilation on Windows
2024-06-03 22:45:51 +03:00
Azamat H. Hackimov
6057694b56
Replace non-functional PXO server with new one
...
Replacing ut.parallaxonline.com with tracker.pxo.nottheeye.com.
2024-06-03 22:45:51 +03:00
Azamat H. Hackimov
7a9f2e2e19
Minor fixes to PXO module
...
Removing unused headers, code cleanup and enhancements.
2024-06-03 16:20:42 +03:00
Azamat H. Hackimov
6972b649bb
Make PXO module buildable and runnable
...
Fix compilation and runtime errors.
2024-06-03 14:08:45 +03:00
Azamat H. Hackimov
f1a77cfe99
Reactivate mtclient for PXO online support
2024-06-02 23:43:38 +03:00
GravisZro
f7ae658fe2
Modernize struct/enum/unions type declarations
2024-05-30 03:35:17 -04: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
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
a0929aefe2
Rename ddio_common to ddio
2024-05-24 22:18:14 +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
GravisZro
76e86fed8c
Replace strcmpi
with stricmp
2024-05-24 08:49:04 -04: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
26b7776f43
Replace "ubyte" with "uint8_t"
2024-05-23 23:07:26 -04:00
GravisZro
3dcd21b717
Replace "unsigned short" with "uint16_t"
2024-05-23 23:03:29 -04:00
GravisZro
1618040db5
Replace "unsigned char" with "uint8_t"
2024-05-23 22:58:46 -04:00
GravisZro
2147cfa68b
Replace "unsigned int" with "uint32_t"
2024-05-23 22:51:16 -04:00
Louis Gombert
cdec632f28
Merge pull request #318 from winterheart/install-targets
...
Introducing installation steps
2024-05-22 18:55:36 +00:00
Louis Gombert
f5d5ea947b
Merge pull request #367 from winterheart/lnxcontroller
...
Reordering linux modules, cleanup code
2024-05-22 18:37:18 +00:00
Azamat H. Hackimov
08b906fcc3
Introducing installation steps
...
Added installation steps for all built targets. Added FORCE_PORTABLE_INSTALL cmake option that controls portable installation (only supported for now).
2024-05-22 21:35:52 +03:00
Azamat H. Hackimov
3fa32ff386
Reorder headers related to linux module
2024-05-19 12:21:43 +03:00
C.W. Betts
446ead20d6
Make plug-ins and modules only export select symbols.
2024-05-13 01:22:40 -06:00
JeodC
a4ab78192c
Join license header with historical commentrs
...
Join the license header with historical comments using a separator so IDEs can correctly parse the initial header.
Also use .gitattributes to ensure all files are LF.
2024-05-08 14:41:19 -04:00
Jeod
bfb3fc1980
Merge pull request #302 from winterheart/hog-tcp-ip
2024-05-08 14:21:13 -04:00
Louis Gombert
fe6bf7bf32
Merge pull request #303 from Arcnor/deadcode-removal2
...
remove unused code (mainly windows.h)
2024-05-08 14:49:53 +02:00
Edu García
3440667e93
remove unused code (mainly windows.h)
2024-05-07 23:45:33 +01:00
C.W. Betts
c6da74b069
Mark functions and variables as static ( #185 )
...
* Begin by marking functions and variables as static when needed.
* More work.
* More work.
* More pokes.
* More work.
* More work.
* Initial work on the netgames.
* Revert changes to the license header on source files.
* clutter.cpp poke.
* One final poke.
* Move some declarations to headers:
Move paged_in_count and paged_in_num to gamesequence.h
Move DoneLightInstance and StartLightInstance to polymodel.h
* Look over the AI script/plug-ins.
* Going over the changes one last time.
* Fix rebase errors.
* More migration from bare statics to static inlines.
2024-05-07 23:35:28 +02:00
Azamat H. Hackimov
280dd43636
Fix search paths on Hog generation
...
Replaced CMAKE_BINARY_DIR with target's directory expression generator.
2024-05-07 21:18:40 +03:00