Peter Nelson
f1e831233a
Codefix: Mark destructors override. ( #14925 )
...
Remove some empty destructors.
2025-12-19 18:14:29 +00:00
Rito12
859b56a066
Doc: Correct file descriptions to match coding style and doxygen.
2025-12-15 17:31:00 +01:00
Peter Nelson
9695de9e1c
Fix #14889 : [FluidSynth] Don't try to load a soundfont that doesn't exist.
2025-12-08 23:30:06 +00:00
Peter Nelson
2162983054
Codechange: Auto-reformat fluidsynth.cpp.
2025-12-08 23:30:06 +00:00
Cyprian Klimaszewski
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Rubidium
7c0f69a8fe
Codefix: typos in comments and strings
2025-08-31 10:30:37 +02:00
glx22
1d18b4a80b
Codechange: remove core/mem_func.hpp
2025-05-08 09:33:18 +02:00
glx22
aba5e1258e
Codechange: use assignment over MemCpyT
2025-05-08 09:33:18 +02:00
glx22
6356311fbc
Codechange: use std::copy_n over MemCpyT
2025-05-08 09:33:18 +02:00
glx22
a013f81120
Codechange: use std::array's fill over memset
2025-05-08 09:33:18 +02:00
glx22
82244779eb
Codechange: use C++ initialisation over MemSetT
2025-05-08 09:33:18 +02:00
Rubidium
0ffdc86a2c
Codechange: use std::ranges::equal over memcmp
2025-05-06 21:29:21 +02:00
Rubidium
0d922c9d62
Codechange: use std::array's fill over memset
2025-05-06 20:03:35 +02:00
Peter Nelson
f7db4938ce
Fix #14098 : Use 64-bit type for MIDI realtime information. ( #14144 )
2025-05-02 22:20:44 +01:00
Rubidium
f2a32c6d13
Codechange: use std::byte instead of char for calculating arbitrary byte offsets
2025-05-02 23:12:43 +02:00
frosch
316279f4b4
Codechange: Use more std::string_view.
2025-04-30 19:33:56 +02:00
frosch
9cf36dac39
Codechange: Use data() instead of c_str(), if no NUL termination is needed.
2025-04-30 19:33:56 +02:00
Peter Nelson
356b0159c7
Fix 261e09a549: Compilation failure with Fluidsynth enabled. ( #14167 )
2025-04-30 07:27:57 +01:00
Rubidium
261e09a549
Codechange: remove char* from base driver code
2025-04-29 21:09:18 +02:00
frosch
afe3dfb3a4
Codechange: Use format instead of to_string.
2025-04-29 20:26:23 +02:00
Rubidium
365eed533d
Codechange: use std::string_view for console commands
2025-04-26 14:15:10 +02:00
frosch
461b73e21b
Codefix: stdafx.h and safeguards.h should be the first and last include in every source file, and not appear in any header file.
2025-04-20 22:06:18 +02:00
Michael Lutz
68ff7e5209
Fix #13921 , d95422561b: [Win32] Don't try close an already closed event handle during destruction.
2025-03-30 19:01:45 +02:00
Michael Lutz
56af0b29f5
Fix #13921 , a908c7bed0: Don't reject MIDI files with a valid file magic value.
2025-03-30 19:01:45 +02:00
Peter Nelson
d95422561b
Codechange: Use unique_ptr to manage drivers.
2025-03-28 17:44:07 +00:00
Peter Nelson
6914d99778
Codechange: Split baseset type definitions into separate files.
2025-03-27 18:57:53 +00:00
Peter Nelson
42eb513897
Codechange: Make use of emplace_back's return value. ( #13879 )
2025-03-23 18:34:04 +00:00
Peter Nelson
2909a14374
Codechange: Include table/strings.h in files that use StringIDs.
...
Be consistent with how and where the file is incldued.
2025-03-21 12:53:40 +00:00
Rubidium
a908c7bed0
Codechange: remove uses of MemCmpT (and MemMoveT)
2025-03-18 21:18:37 +01:00
Rubidium
dae788e2e3
Codefix: do not trust allocation sizes coming from a file
2025-03-15 21:44:40 +01:00
Rubidium
f794ee028b
Codefix: potential division by zero in midi reader
2025-03-15 21:44:18 +01:00
Rubidium
2000cea235
Codechange: initialise instance members
2025-03-09 20:41:03 +01:00
Rubidium
02f040b22a
Codechange: remove unused alloc_func.hpp includes
2025-02-24 20:00:19 +01:00
Peter Nelson
afc0745aa2
Codechange: Specify underlying type for all enums excluding those exposed to scripts. ( #13383 )
2025-01-28 22:17:34 +00:00
Rubidium
f8566c3ff1
Codechange: use std::unique_ptr over calloc
2025-01-26 17:59:56 +01:00
Peter Nelson
c0edbe0d37
Change: Remove support for SDL1.2. ( #13298 )
...
Our SDL2 driver is now 5 years old.
2025-01-09 20:43:52 +00:00
Peter Nelson
b653f875b0
Codechange: Space between template and < ( #13278 )
...
Make it all consistent so it matches CODINGSTYLE.
2025-01-04 17:56:14 +00:00
Peter Nelson
059a4b22f7
Codechange: Use projection-based std::range::find where possible.
...
This simplifies matching by class members and avoids wordy lambdas.
2024-11-24 10:36:03 +00:00
Peter Nelson
14e2839087
Codechange: Let's use this new emplace_back() thing. ( #13081 )
2024-11-15 20:28:17 +00:00
Peter Nelson
908ee7292b
Codechange: Replace all FILE * with FileHandle RAII class. ( #12718 )
...
This removes the need to manually ensure all files are closed.
2024-09-16 08:45:26 +01:00
Peter Nelson
e2a796dbcd
Codefix: Potential unterminated string returned from convert_to_fs.
...
Converting from UTF-8 to UTF-16 could have resulted in a buffer overflow if the buffer size was exactly the length of the converted string.
Pass string_view/span to convert_from/to_fs instead, and ensure the buffer is terminated. This replaces passing a pointer to the buffer and the buffer size as separate parameters, allowing the compiler to pass both in one parameter.
Removes use of `lengthof()`.
2024-07-10 20:57:02 +01:00
Peter Nelson
733284cc16
Codechange: Return std::vector from GetMusicCatEntryData.
...
Return std::vector instead of pointer to array with manual memory management.
2024-05-11 02:10:41 +01:00
Peter Nelson
731d46beb5
Change: Don't include midi file processing in dedicated server build. ( #12632 )
2024-05-08 00:57:52 +01:00
rubidium42
442daf58da
Codechange: replace lengthof with std::size in Windows specific code
2024-04-10 23:17:13 +02:00
Peter Nelson
332cbca36e
Codechange: Pass std::string_view from drivers instead of char *.
2024-04-10 22:02:04 +01:00
Patric Stout
a3cfd23cf9
Codechange: rename byte to uint8_t ( #12308 )
2024-03-16 23:59:32 +01:00
Peter Nelson
de8a840db5
Codefix: Fully initialise MidiFile::DataBlock to avoid gcc warning. ( #12240 )
2024-03-09 17:01:39 +00:00
frosch
b1718478c8
Codechange: Replace old non-standard attributes with C++17/20 standard attributes.
2024-02-02 22:29:28 +01:00
Peter Nelson
9cf47af490
Change: Invalidate music volume when restarting music playback on Windows. ( #11836 )
2024-01-19 17:01:36 +00:00
Rubidium
e3f49ee7a0
Codechange: coding style fixes
2024-01-04 16:23:54 +01:00