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
Louis Gombert
ae5840f314
Merge pull request #502 from winterheart/modules-split
...
Splitting submodules of project
2024-07-30 23:17:47 +02:00
Louis Gombert
fc2268d629
DMFC: declare external DMCFStringTable, DMFCStringTableSize, _DMFCErrorString, basethis and DMFCGetString only when needed
2024-07-28 17:52:01 +02:00
Azamat H. Hackimov
b9da6b59ff
Isolate physics module
...
Update physics module, minor cleanups, remove unused code.
2024-07-28 16:50:42 +03:00
Azamat H. Hackimov
7b31572d05
Isolate grtext submodule
...
Isolate grtext from rest of the project, minor cleanups.
2024-07-28 16:50:42 +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
de6deea5b8
Fixup only remaining non-comment __LINUX__ reference in srcs
2024-07-12 18:18:39 -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
Azamat H. Hackimov
45aa389f68
Move content from dmfcdllinit.h
...
Simplify code.
2024-07-08 11:15:18 +03:00
Azamat H. Hackimov
0bae89dd05
Fix runtime error on creating multiplayer game
...
Update dll typedefs to reflect cfile API changes.
2024-07-08 11:15:18 +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
Thomas Roß
9b8d61d16a
[Netgames] Use size_t when catching strlen() return type and other buffer calculations.
...
This fixes alot of warnings of type C4267 '=': conversion from 'size_t' to 'int', possible loss of data.
2024-06-29 21:58:34 +02:00
Thomas Roß
85dce8bef1
[DMFC] Fixed wrong type in forward declaration.
...
This fixes alot of warnings of type C4099 'PInfo': type name first seen using 'struct' now seen using 'class'.
2024-06-29 21:55:09 +02:00
Azamat H. Hackimov
59487976f6
Isolate misc module
...
Isolate misc module for better dependency handling.
2024-06-27 01:26:35 +03:00
Thomas Roß
113e7eaaaa
[DMFC] Removed preprocessor definition DMFC_DLL and related code, because we build DMFC as static lib and don't need any of that dllexport/import stuff anymore.
2024-06-16 16:56:20 +02:00
GravisZro
4e599257a0
Replace _finite with std::isfinite
...
A simple drop in replacement that is multiplatform which means the
defintion in `linux_fix.h` is no longer required.
2024-06-02 14:50:51 -04:00
GravisZro
f7ae658fe2
Modernize struct/enum/unions type declarations
2024-05-30 03:35:17 -04:00
GravisZro
9cf9781369
Properly format/use variadic macros
2024-05-24 20:57:17 -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
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
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
2147cfa68b
Replace "unsigned int" with "uint32_t"
2024-05-23 22:51:16 -04:00
Azamat H. Hackimov
45ac1cc78a
Cleanup headers in sndlib
...
Moving common macros into ssl_lib.h
2024-05-22 22:03:46 +03: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
Louis Gombert
e66c359947
Merge pull request #340 from MaddTheSane/visibility
...
Hide module symbols by default
2024-05-22 17:39:11 +00:00
Thomas Roß
56288c819e
Merge branch 'main' into win-x64
2024-05-21 00:54:53 +02:00
Jeod
23868a7c72
Merge pull request #297 from Jayman2000/revamp-usage-instructions
...
Revamp usage instructions
2024-05-20 15:18:49 -04:00
Jason Yundt
e973dc1734
Automatically create netgames/ directory
...
Before this change, users would have to jump through hoops in order to
make sure that they’re using the .d3m files from this repo (as opposed
to the .d3m files that came with their version of Descent 3).
Specifically, users would have to remove or backup Descent 3’s original
netgames/ directory, create a new one, hunt down TCP_IP.d3c and copy it
to the new netgames/ directory.
This change makes it easier for users to use the latest version of
working by creating a netgames/ directory for them. All they have to do
is replace the old one with the new one.
Fixes #369 .
2024-05-20 09:02:01 -04:00
Thomas Roß
0c09eed1b7
[Win,x64] Replaced inline assembly for int3 with debug_break() to fix compile errors in x64 builds.
2024-05-15 19:55:45 +02:00
Louis Gombert
72c0a46dcc
Fix -Wnull-conversion using explicit false
2024-05-15 00:18:44 +02:00
Louis Gombert
c1db7c70de
Fix double extern qualifier warning in idmfc.h
...
Functions declared in idmfc.h were prefixed by both macros `EXTERN` and `DLLEXPORT`. `EXTERN` expands to `extern "C"` for C++ code, and `DLLEXPORT` expands to `extern "C"` for C++ or `extern` for C code, making up two `extern` qualifiers for C++ code. We now only use DLLEXPORT macro.
2024-05-14 23:51:08 +02:00
Louis Gombert
f1d46017f5
Fix compiler warning -Wimplicit-const-int-float-conversion using explicit casts
2024-05-14 23:33:17 +02: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
Louis Gombert
9cb68c2e74
Merge pull request #305 from Arcnor/deadcode-removal3
...
remove unused code (Software renderer, unused macos d3m netgames)
2024-05-08 14:59:52 +02:00
C.W. Betts
8d3b2f8877
C++ Algorithm pokes ( #304 )
...
* Use std::max and std::min, with an initializer_list where possilbe.
* Use std::clamp where appropriate.
* Missed a couple of them.
* Remove clamp specializations at @Lgt2x suggestion.
2024-05-08 11:04:52 +02:00
Edu García
aaecc4a5a3
remove unused code (Software renderer, unused macos d3m netgames)
2024-05-07 23:22:05 +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
C.W. Betts
c534c1be1d
Also make net games and internet plug-ins also be MODULES.
2024-05-04 12:05:15 -06:00
Jacob Coby
b64f17fb17
Merge branch '64bit-fixes' of github.com:jcoby/Descent3 into jcoby-64bit-fixes
2024-05-03 16:46:11 -04:00
Ryan C. Gordon
0e55dee0de
x86-64 supports the int $3
opcode to trigger a breakpoint.
...
This architecture obviously didn't exist in 1999. :)
2024-05-02 14:56:11 -04:00
Jacob Coby
a6a6869a7e
64 Bit-Safe Updates
...
Imported Icculus' 64-bit changes.
Changes `[un]signed long` data types to `[un]signed int`.
2024-04-29 14:10:09 -04:00
C.W. Betts
61e9a42a73
Add virtual default destructors on a few abstract classes.
2024-04-29 15:28:30 +00:00