Commit Graph

346 Commits

Author SHA1 Message Date
Louis Gombert
672a82ec6f Merge pull request #544 from winterheart/reactivate-editor
Reactivate editor
2024-08-26 22:17:12 +02:00
Azamat H. Hackimov
1de5da7777 Remove external symbols from GL renderer
Remove unused linux_permit_gamma variable. Remove d3SDLEventFilter() as it initialized earlier.
2024-08-21 14:52:58 +03:00
Azamat H. Hackimov
39e971504e DDIO: implement mouse grab state functions
Hide global variable ddio_mouseGrabbed.
2024-08-21 12:29:28 +03: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
739409a653 MODULE: rewrite mod_GetRealModuleName()
Drop DDIO dependency.
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
Thomas Roß
db7584ea1a [Multiplayer] Removed unused global variable. 2024-08-20 20:03:02 +02:00
Thomas Roß
fdcc348b9c [Cleanup] Fixed mismatch between function declarations and implementations. 2024-08-20 20:03:02 +02:00
Thomas Roß
7b71873a69 [Cleanup] Removed function declarations that are not implemented. 2024-08-20 20:03:02 +02:00
Thomas Roß
69945e93a8 [Misc] Deleted leftover empty logging code. 2024-08-20 20:03:02 +02:00
Azamat H. Hackimov
1026a6e80b Merge pull request #527 from tophyr/pr/modernize-renderer
Modernize Renderer
2024-08-20 19:00:43 +03:00
Chris Sarbora
a5081982f6 Always use Multitexture 2024-08-18 03:26:06 -05:00
Chris Sarbora
fb2dbe8c92 Delete empty method 2024-08-18 02:49:07 -05:00
Azamat H. Hackimov
0e0e7c9409 menu.cpp: simplify count mission functions
There no .msn files in distribution, just count .mn3 files.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
b45197fe4b Fix directory iteration on new disk
If disk was changes, update working path too before updating file list.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
842ef19bfd Implement root mount points (drives) in DoPathFileDialog()
List root mount points / drives in separate listbox.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
9b2571f52a Update DoPathFileDialog() to use std::fs::path 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
6cbf4c9d20 Remove unused DemoPlayAutoDemo() 2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
8f48c183aa Cleanup pilot.cpp
Fix warnings, remove unused code.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
fa1b35a1dc Rewrite pilot.cpp for custom graphics handling
Simplify code regarding file discovery (ddio_DoForeachFile) and memory allocations.
2024-08-15 11:50:36 +03:00
Azamat H. Hackimov
6f94d4073f Make MercInstalled() function available from header 2024-08-15 11:50:32 +03:00
Azamat H. Hackimov
01e6b1c915 Rewrite pilot.cpp for audiotaunts handling
Simplify code regarding file discovery (ddio_DoForeachFile) and memory allocations.
2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
c9dbdc12db Major rewrite pilot.cpp around file discovery
Replace ddio_FindFileStart() with ddio_DoForeachFile(). Replace linked list with std::vector for discovered pilot files. Cleanup related code.
2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
227b76a079 Convert CRC functions in pilot.cpp to use std::fs::path 2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
fb45918b95 Refactor DoPathFileDialog()
Rewrite DoPathFileDialog() to use std::fs::path.
2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
233dc8bb39 Cleanup newui
Remove some code related to unused DoFileDialog().
2024-08-15 11:48:16 +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
7a3f46ad4c Change SimpleStartLevel() to use std::fs::path 2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
4bf097d0ff Use std::fs::path in demofiles 2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
c6919f93b0 Rework GetDirectoriesInPath() to use std::fs::directory_iterator
Probably there need more deep refactor... This function uses twice - for counting directories and then fetching actual list!
2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
d5127fd9ff Use ddio_DoForeachFile() in multi_ui.cpp
Replace ddio_FindFileStart() with ddio_DoForeachFile().
We don't support HEAT.NET anymore, so removing it from sorting order. Now "Parallax Online" is first entry in multiplayer list.
2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
db627322e6 Properly cleanup tmp files in multi_dll_mgr.cpp
ddio_DeleteFlie() can't handle globbed paths (at least on Linux), replace it with ddio_DoForeachFile().
2024-08-15 11:48:16 +03:00
Azamat H. Hackimov
bd4cc1655a menu.cpp: replace ddio_FindFileStart() with ddio_DoForeachFile() 2024-08-15 11:48:14 +03:00
Azamat H. Hackimov
8a9b93acfd init.cpp: replace ddio_FindFileStart() with ddio_DoForeachFile() 2024-08-15 11:47:43 +03:00
Louis Gombert
bda97fc57a Merge pull request #523 from DescentDevelopers/windows-fix
Fixes for Windows build
2024-08-12 22:49:09 +02: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
C.W. Betts
0d9873a361 macOS: Fix netgames not looking for dylib.
replaces #522
2024-08-11 23:07:25 -06:00
Azamat H. Hackimov
f888a101ab Fix crash in Release mode for new pilot
During start of new game with new pilot (never played) game tries to inject to play level1.mve before training mission right in the middle of update UI frame. At same time, if game previously found mainmenu.mve, it will be looped in main menu screen. Since buffers for MVE playback already allocated fo mainmenu.mve, trying to start another movie will lead to crash.

Removed movie injection from playing, now new pilot will see this sequence:

New game -> Training mission -> level1.mve cutscene -> Level 1

Removed RELEASE #ifdef's on this part of code as this definitely masked issue until we caught it in preparation of release build.
2024-08-12 01:44:21 +03:00
Thomas Roß
1809f48ca9 [Misc] Removed some leftover debug stuff that does nothing anymore. 2024-08-10 18:44:29 +02:00
Thomas Roß
33288916c2 Replaced the old and now unused code for manunal callstack parsing with the creation of a crashdump file aka MiniDump. Together with the matching debug symbols from the previous commit, we can analyse these crashdumps to fix the problem. 2024-08-10 18:41:48 +02:00
Thomas Roß
0d01d3c84c [Build] Enable the generation of debug symbols in all build configurations and install them to be available in our GitHub workflow artifacts. This prepares us to create crashdumps on user systems even from release builds that we will than be able to analyse on a dev machine. 2024-08-10 18:40:24 +02: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
1384aa62af Quiet warnings about uninitialized values. 2024-07-31 15:40:16 -06:00
Louis Gombert
ae5840f314 Merge pull request #502 from winterheart/modules-split
Splitting submodules of project
2024-07-30 23:17:47 +02:00
Azamat H. Hackimov
5b80408450 Merge pull request #503 from Lgt2x/main-cleanup
Cleanup sdlmain.cpp
2024-07-31 00:11:25 +03:00
Azamat H. Hackimov
4b192f8960 Merge pull request #500 from Lgt2x/cache-dir
Use standard temporary directory instead of custom/cache
2024-07-28 22:10:34 +03:00
Louis Gombert
a0a4195a3a SDLMain: remove unused defines, superfluous logging 2024-07-28 17:52:01 +02:00