Commit Graph

388 Commits

Author SHA1 Message Date
Ryan C. Gordon
93fdd1ac97
Remove renderer/opengl_ryan.cpp
This was debug/testing code from Loki Software, and is unused.
2024-04-26 09:49:55 -04:00
Azamat H. Hackimov
5c63dec1a5 Customize name of build job
Creates eye-candy look in GitHub CI UI
2024-04-26 10:21:53 +03:00
Azamat H. Hackimov
cab27f3018 Rearrange Build and Unittest steps
Simplify workflow with additional matrix.build_type items.
2024-04-26 10:21:50 +03:00
Azamat H. Hackimov
2af2728d74 Enable unittests on CI
Added additional dependency GTest for all platforms.
2024-04-26 10:19:41 +03:00
Thomas Otto
9f87771338 README: 32-bit Linux and other distributions mentioned 2024-04-26 00:54:08 +02:00
Jeod
351a145149
Update pull_request_template.md 2024-04-25 17:55:58 -04:00
JeodC
bec9f5fd30 Create pull_request_template.md 2024-04-25 17:54:05 -04:00
Jeod
5f9e3c3a9b
Merge pull request #182 from th1000s/osnames 2024-04-25 17:21:47 -04:00
Thomas Otto
a0a247a117 CI: give OSes pretty names
And name the resulting zip file Descent3_<OS>.zip
2024-04-25 23:06:10 +02:00
Azamat H. Hackimov
a1e71ddaeb Convert all Osiris bound types to stdint
This unifies (somehow) all structures for scripting system. Checksum for 64-bit systems was decreased by 32 (ulong -> uint32_t in object.).
2024-04-25 23:03:20 +03:00
Azamat H. Hackimov
4b9ecd66de Add unittest for Osiris checksum calculation
Checking that -DCHECKSUM is correct with actual data structures.
2024-04-25 23:03:20 +03:00
Azamat H. Hackimov
47ff6e52cd
Merge pull request #178 from jcoby/64bit-checksum
Update script CHECKSUM for 64 bit platforms
2024-04-25 19:31:40 +03:00
Jacob Coby
e21b8a3d51 Update script CHECKSUM for 64 bit platforms
Osiris_CreateGameChecksum computes a different checksum on 64 bit
architectures due to the game structures being larger, mostly from
pointers being 8 bytes instead of 4.

Fixes #160
2024-04-25 09:39:41 -04:00
Jeod
8770ea4626
Merge pull request #158 from DanielGibson/fix-141
Fix crash in hlsSystem::ComputePlayInfo(), #141
2024-04-24 19:49:51 -04:00
Daniel Gibson
923bf4bbbf Debug version of TERRAIN_REGION() that checks for invalid values
and improved comments in Play2dSound and ComputePlayInfo()
2024-04-24 22:28:26 +02:00
Jeod
41c64f9444
Merge pull request #177 from DescentDevelopers/JeodC-patch-1
Allow manual triggering if needed
2024-04-24 15:58:00 -04:00
Jeod
d46f61cca3
Allow manual triggering if needed 2024-04-24 15:57:52 -04:00
Jeod
5b2b4f2f5d
Merge pull request #131 from pzychotic/fix-release-build
Fixed Release build
2024-04-24 14:45:57 -04:00
Jeod
a597f43635
Merge pull request #175 from th1000s/readmefix
README: cmake defines must be passed to --preset
2024-04-24 14:40:36 -04:00
Jeod
3daf5b2060
Merge branch 'main' into fix-release-build 2024-04-24 14:37:13 -04:00
Thomas Otto
00a847ef9f README: cmake defines must be passed to --preset
cmake --build will ignore them
2024-04-24 20:36:40 +02:00
Jeod
155211ba52
Merge pull request #174 from DescentDevelopers/JeodC-patch-1
Update README.md - consistency
2024-04-24 14:18:50 -04:00
Jeod
d3312b7f57
Update README.md - consistency 2024-04-24 14:18:40 -04:00
Oskar Strengbohm
b54d22614d misc: Remove endian.cpp and lib/psendian.h
They were not used, and a better alternative is now lib/byteswap.h
2024-04-24 17:27:21 +02:00
Louis Gombert
aab8fbb3c9
Merge pull request #170 from eslutz/readme-update
Fix typo in README
2024-04-24 07:49:58 +00:00
Louis Gombert
e41e275436
Merge pull request #137 from Nakhr11n/unzip
Use system zlib instead of bundled.
2024-04-24 07:30:13 +00:00
Oskar Strengbohm
132a725daa unzip: Link against real zlib. 2024-04-24 08:22:13 +02:00
Eric Slutz
ac9d81d27a
Update README.md 2024-04-24 00:59:03 -04:00
Edu Garcia
a4f6405cea
Merge pull request #165 from winterheart/64bit-tests
Implementing C++ byteswap functions
2024-04-23 22:49:18 +01:00
Edu Garcia
15ac86d889
Merge pull request #91 from winterheart/cfile-update-v2
Re-apply cfile-update with fix regression
2024-04-23 22:47:55 +01:00
Azamat H. Hackimov
4826c37a69 Add BUILD_INTERFACE to cfile module
Other modules that depends on it, can reuse includes on linking.
There some files formally not belonging any packages (lib directory), as workaround there temporary include_directories(cfile) on root of project. After migrating all modules this can be removed.
2024-04-24 00:41:02 +03:00
Azamat H. Hackimov
63b4284658 Fix float reading in cfile
Whoah, big surprise float_t and double_t may have different length. Still waiting float32_t and float64_t types from C++23...
2024-04-24 00:40:41 +03:00
Azamat H. Hackimov
16464ee81a Fix regression in cf_ReadByte()
cfgetc returns int on success read, but if cast it to int8_t too early, 255 will become -1, or EOF.
2024-04-24 00:40:41 +03:00
Azamat H. Hackimov
c275d359c7 Reapply "Cfile module update"
This reverts commit 066b436fd9.
2024-04-24 00:40:39 +03:00
Jeod
9ff3bd2e53
Merge pull request #166 from Kreeblah/descent3_macos_build_label
Update build label for appropriate *NIX platform
2024-04-23 17:18:09 -04:00
Kreeblah
0bcbf93d54
Update build label for appropriate *NIX platform 2024-04-23 14:11:22 -07:00
Daniel Gibson
41c4578f5c Fix crash in hlsSystem::ComputePlayInfo(), #141
sound_seg was -1, which crashes in BOA_INDEX(sound_seg) on 64bit
platforms (by pure luck it doesn't seem to crash on 32bit platforms)

It makes sense to catch this problem much earlier in Play3dSound(),
to avoid executing all the superfluous
2024-04-23 22:32:04 +02:00
Thomas Roß
a03489c8fb [WindowMode] Temporary disabled window mode in Release builds until it's ready for shipping. 2024-04-23 21:12:35 +02:00
Thomas Roß
94657a5233 Revert "[Windows] Temporary workaround to keep the window resolution as it was before the changes to fix the preprocessor defines for the Release build."
This reverts commit fabcdcd84d.
2024-04-23 21:07:27 +02:00
Thomas Roß
acd727710a Merge branch 'main' into fix-release-build
# Conflicts:
#	CMakeLists.txt
2024-04-23 20:41:34 +02:00
Azamat H. Hackimov
c3e0102a4f Implementing C++ byteswap functions
Implementing byteswap functions by using "backported" from C++23 std::byteswap.
Adding unittests based on GoogleTests. To enable it add `-DBUILD_TESTING=ON` to cmake.
2024-04-23 21:18:07 +03:00
Louis Gombert
959a45394d
Merge pull request #159 from jcoby/enable-console-logging
Enable console logging if MONO or LOGGER is defined
2024-04-23 18:10:45 +00:00
Jacob Coby
96ce6d2c73 Logging updates:
* Adds CMake Option
 * Adds LOGGER to the README
 * Removes MONO define in favor of LOGGER
2024-04-23 13:53:00 -04:00
Jacob Coby
9753f8367f Enable console logging if MONO or LOGGER is defined
Re-enable console logging on linux and mac builds with the -DMONO
option.

Rename overloaded Debug_ConsolePrintf function to
Debug_ConsolePrintfAt to fix macro expansion.

Adds -DLOGGER alias for -DMONO.

Implements #157
2024-04-23 09:07:20 -04:00
Jeod
86a6c139ee
Merge pull request #156 from DescentDevelopers/JeodC-patch-1
Update README.md
2024-04-22 17:54:15 -04:00
Jeod
c0fb3a3f02
Update README.md 2024-04-22 17:54:07 -04:00
Azamat H. Hackimov
28df52f17f
Merge pull request #72 from GravisZro/fix/stdcall
Ensure STDCALL/STDCALLPTR is only invoked on x86
2024-04-23 00:33:35 +03:00
Jeod
bb070a5dad
Merge pull request #155 from DescentDevelopers/JeodC-patch-1
Don't run the workflow on specific file changes
2024-04-22 17:33:11 -04:00
Jeod
b274be59b7
Update build.yml 2024-04-22 17:31:41 -04:00
Jeod
79db2b75f6
Merge pull request #154 from DescentDevelopers/JeodC-patch-1
Add logo to readme
2024-04-22 17:27:45 -04:00