Jan Engelhardt
5f0bdf8184
Fix spello "it's"
2024-09-03 13:26:51 +02:00
Azamat H. Hackimov
79db9aa3e2
Move platform-specific defines and macros to own file crossplat.h
2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
22829e5e43
netcon: replace DLLddio_MakePath with std::fs::path
2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
58fe55605d
netcon: remove Mastertracker update check
...
This part of code unreachable - we don't have mtav.dll anymore, and MTUpdateURL is empty. Simplify code related version check.
2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
c6d31f3820
MODULE: rewrite mod_LoadModule() to use std::fs::path
2024-08-20 23:09:27 +03:00
Azamat H. Hackimov
54f9d75e62
Reduce linux_fix.h usage in project
2024-08-20 23:08:10 +03:00
Azamat H. Hackimov
16a6866885
DDIO: new crossplatform SleepMS() function
...
Use C++ chrono and thread for crossplatform sleep function.
2024-08-20 23:08:10 +03:00
Azamat H. Hackimov
306db747cc
Change signature of ddio_DoForeachFile()
...
There no return value usage across the project, change return type of function to void.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
7c4a4d2566
DDIO: remove DLLddio_FindFileStart functions as unused
...
Cleanup code in core and netcon.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
c76fc45fda
NETCON: replace DLLddio_FindFileStart() with DLLddio_DoForeachFile()
...
Refactor code, related to game type and mission file discovery and UI representation.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
b30597ae90
Change Multi*Settings() to use std::fs::path
2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
73373205e5
Merge pull request #517 from Lgt2x/cmake-headers
...
CMake: add all headers to target sources
2024-08-12 15:58:05 +03:00
Louis Gombert
60c5dbf1fe
CMake: add all headers to target sources
...
This can help with CMake IDE integration and file indexing.
2024-08-09 17:09:14 +02:00
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